Interview Questions

Q:

What is the correct JavaScript syntax to write “Hello World”?

A) System.out.println( B) println (
C) document.write( D) response.write(
 
Answer & Explanation Answer: C) document.write(

Explanation:

document.write() is a JavaScript command that literally writes out whatever you place between the opening and closing parentheses.

 

 

What_is_the_correct_JavaScript_syntax_to_write_“Hello_World”1556279922.jpg image 

Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

15 28618
Q:

What is IMS (DB/DC)?

Answer

IMS (Information Management System) is IBMs hierarchical database management system. It has mainly two components: IMS DB and IMS DC (Also know as IMS TM)


IMS DB - IMS/Database Manager as the name implies manages the IMS databases. It is used for physical storage creation and management and data retrieval.


IMS DC / IMS TM - IMS/Data Communications or IMS/Transaction Manager handles online transaction processing system.

Report Error

View answer Workspace Report Error Discuss

9 27771
Q:

try { int x = Integer.parseInt("two"); }

Which could be used to create an appropriate catch block?

A) ClassCastException B) IllegalStateException
C) NumberFormatException D) None
 
Answer & Explanation Answer: C) NumberFormatException

Explanation:

C is correct. 'Integer.parseInt' can throw a NumberFormatException, and IllegalArgumentException is its superclass 

Report Error

View Answer Report Error Discuss

Filed Under: Java

3 27615
Q:

What is DHTML? What are the features of DHTML?

Answer

DHTML stands for Dynamic HTML. The first thing that we need to clear about DHTML is that it is neither a language like HTML, JavaScript etc. nor a web standard. It is just a combination of HTML, JavaScript and CSS. It just uses these languages features to build dynamic web pages. DHTML is a feature of Netscape Communicator 4.0, and Microsoft Internet Explorer 4.0 and 5.0 and is entirely a "client-side" technology.  


Features of DHTML:


- Simplest feature is making the page dynamic.


- Can be used to create animations, games, applications, provide new ways of navigating through web sites.


- DHTML use low-bandwidth effect which enhance web page functionality.


- Dynamic building of web pages is simple as no plug-in is required.


- Facilitates the usage of events, methods and properties and code reuse. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

35 26716
Q:

How much time needs to pass for an A/R account to be considered delinquent?

Answer

After 90 days of the due date

Report Error

View answer Workspace Report Error Discuss

17 25344
Q:

Which of the following is a properly defined structure?

A) struct {int a;} B) struct a_struct {int a;}
C) struct a_struct int a; D) struct a_struct {int a;};
 
Answer & Explanation Answer: D) struct a_struct {int a;};

Explanation:

The a_struct is declared as structure name and its data element is a.

Report Error

View Answer Report Error Discuss

Filed Under: C++

11 23666
Q:

public abstract class Shape {

private int x;

private int y;

public abstract void draw();

public void setAnchor(int x, int y) {

this.x = x;

this.y = y;

}

}

Which two classes use the Shape class correctly?

A) public class Circle implements Shape { private int radius; B) public abstract class Circle extends Shape { private int radius; }
C) public class Circle extends Shape { private int radius; public void draw(); D) None
 
Answer & Explanation Answer: B) public abstract class Circle extends Shape { private int radius; }

Explanation:

Only B is true

Report Error

View Answer Report Error Discuss

Filed Under: Java

0 23080
Q:

void waitForSignal() {

Object obj = new Object();

synchronized (Thread.currentThread()) {

obj.wait();

obj.notify();

}

}

Which statement is true?

A) This code can throw an InterruptedException. B) This code can throw an IllegalMonitorStateException.
C) This code can throw a TimeoutException after ten minutes D) All the above
 
Answer & Explanation Answer: B) This code can throw an IllegalMonitorStateException.

Explanation:

It will throw  IllegalMonitorStateException.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: IT Trainer

6 23069