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 2486
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 2486
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 2485
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 2484
Q:

Which of the following is a type of savings vehicle?

A) Checking Account B) Certificate of Deposit
C) Money Market Account D) Both B & C
 
Answer & Explanation Answer: D) Both B & C

Explanation:

Which_of_the_following_is_a_type_of_savings_vehicle1558588145.jpg image

 

A savings vehicle is a bank account that's used to hold your savings.

 

The basic saving vehicles include :

Savings accounts,

Money market accounts,

Certificates of deposit, and

Stock market.

Report Error

View Answer Report Error Discuss

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

0 2482
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 2479
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 2477
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 2477