Interview Questions

Q:

Echo vs print statement

Answer

echo() and print() are language constructs in PHP, both are used to output strings. The speed of both statements is almost the same.


echo() can take multiple expressions whereas print cannot take multiple expressions.


Print return true or false based on success or failure whereas echo doesn't return true or false.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2489
Q:

How can record locking be achieved in those DB2 versions which do not support it?

Answer

It can be done by setting the record length’s size to more than half of the page’s size.

Report Error

View answer Workspace Report Error Discuss

0 2488
Q:

Which function would you use to insert a record into a database?

Answer

The dba_insert() function adds a record to a database.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2488
Q:

Can a class be declared as protected?

Answer A class can't be declared as protected. only methods can be declared as protected.
Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2488
Q:

I do not want my class to be inherited by any other class. What should i do?

Answer You should declared your class as final. But you can't define your class as final, if it is an abstract class. A class declared as final can't be extended by any other class.
Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2486
Q:

Select the correct statement regarding fixed costs.

A) Because they do not change, fixed costs should be ignored in decision making. B) The fixed cost per unit decreases when volume increases.
C) The fixed cost per unit does not change when volume decreases. D) The fixed cost per unit increases when volume increases.
 
Answer & Explanation Answer: B) The fixed cost per unit decreases when volume increases.

Explanation:

The fixed cost per unit decreases when volume increases is the correct statement regarding fixed costs.

Report Error

View Answer Report Error Discuss

Filed Under: Accounts Payable
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2481
Q:

A tank-full petrol in Veeru’s Car last for 20 days. If he starts using 25% more every day, how many days will the tank-full petrol last?

A) 18 days B) 12 days
C) 14 days D) 16 days
 
Answer & Explanation Answer: D) 16 days

Explanation:

The analogy here is like this: Veeru has 20 lt of petrol and he uses 1 lt per each day and consumes it in 20 days. If he uses 1.25 lt every day, in how many days it will be consumed?
We considered 1.25 lt here because it’s 25% more than 1 lt.

The answer would be  20/1.25=16 days.

Report Error

View Answer Report Error Discuss

Filed Under: Team Work
Exam Prep: CAT , Bank Exams
Job Role: Bank PO , Bank Clerk

18 2480
Q:

What is DCLGEN?

Answer

DeCLarations GENerator : used to create the host language copy books for the table    definitions. Also creates the DECLARE table.

Report Error

View answer Workspace Report Error Discuss

0 2480