Interview Questions

Q:

I want to print "Hello" even before main() is executed. How will you acheive that?

Answer Print the statement inside a static block of code. Static blocks get executed when the class gets loaded into the memory and even before the creation of an object. Hence it will be executed before the main() method. And it will be executed only once.
Report Error

View answer Workspace Report Error Discuss

Subject: Java

6 8162
Q:

What is the importance of having an emulator within the Android environment?

Answer

The emulator lets developers “play” around an interface that acts as if it were an actual mobile device. They can write and test codes, and even debug. Emulators are a safe place for testing codes especially if it is in the early design phase.

Report Error

View answer Workspace Report Error Discuss

4 8013
Q:

What are the mandatory part to present in function pointers?

A) & B) retrun values
C) data types D) none of these
 
Answer & Explanation Answer: C) data types

Explanation:

The data types are mandatory for declaring the variables in the function pointers.

Report Error

View Answer Report Error Discuss

Filed Under: C++

1 8011
Q:

To which type of class, We can apply RTTI?

A) Encapsulation B) Polymorphic
C) Derived D) None of these
 
Answer & Explanation Answer: B) Polymorphic

Explanation:

RTTI is available only for classes which are polymorphic, which means they have at least one virtual method.

Report Error

View Answer Report Error Discuss

Filed Under: C++

0 7846
Q:

Suppose you are in a situation where deadlines and priorities change frequently and rapidly. How would you handle it?

Answer

Deadlines are set in several ways some are artificial while others are real. In a situation where deadlines change frequently and rapidly it is important to be able to tell which are real and which are artificial. One must be flexible and agile with the ability to adapt to the needs of the office. A good attitude would be to imagine you are a juggler who must keep several balls in the air at one time. This would enable you to focus quickly on the job at hand and move on to the next without hesitation or stress. 

Report Error

View answer Workspace Report Error Discuss

11 7829
Q:

Difference between DDE and OLE?

Answer

DDE (Dynamic Data Exchange) a communication protocol that let applications call each other.


OLE was the first protocol that enabled users and programmers to create compound documents?that is documents that contain data from different applications (for example an Excel worksheet inside a Word document).

Report Error

View answer Workspace Report Error Discuss

2 7751
Q:

What is PHP's configuration file called?

Answer

PHP’s configuration file is called php.ini.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

1 7708
Q:

How to perform incremental load in DataStage?

Answer

-Daily loading is known as incremental load.


-When data is selected from source, selected records are loaded between timestamp of last load and the current time 


-The parameter that are passed to perform are last loaded date and current date


-The first parameter is the stored last run date is read through job parameters


-The second parameter is the current date

Report Error

View answer Workspace Report Error Discuss

1 7677