Interview Questions

Q:

Which of the following is not the member of class?

A) Virtual function B) Static function
C) Friend function D) Const function
 
Answer & Explanation Answer: C) Friend function

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: C++
Job Role: Analyst , Database Administration , IT Trainer

19 10625
Q:

Which design patterns benefit from the multiple inheritance?

A) Adapter and observer pattern B) Code pattern
C) Glue pattern D) None of these
 
Answer & Explanation Answer: A) Adapter and observer pattern

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: C++

5 10561
Q:

What type of inheritance that PHP supports? Provide an example.

Answer

PHP supports single level inheritance.


Inheriting a class would mean creating a new class with all functionality of the existing class in addition to some more. The created class is called as a subclass of the parent class. Parent is a keyword which we use to access members of a parent class. Inheritance is usually defined by using the keyword “Extend”. $this is used a reference to the calling object. Inheritance avoids redundancy of code.


Example:


Class employee extends manager : Here Employee is a subclass of manager.


Echo $this->name can be used to echo variable name of the parent class.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

13 10558
Q:

A UNION query is which of the following?

A) Combines the output from multiple queries and does not include the same number of columns. B) Combines the output from multiple queries and must include the same number of columns.
C) Combines the output from no more than two queries and does not include the same number of columns. D) Combines the output from no more than two queries and must include the same number of columns.
 
Answer & Explanation Answer: B) Combines the output from multiple queries and must include the same number of columns.

Explanation:

A UNION query combines the output from multiple queries and must include the same number of columns.

Report Error

View Answer Report Error Discuss

Filed Under: SQL
Job Role: Analyst , Database Administration , IT Trainer

2 10532
Q:

What is the Standard Template Library?

Answer

A library of container templates approved by the ANSI committee for inclusion in the standard C++ specification. A programmer who then launches into a discussion of the generic programming model, iterators, allocators, algorithms, and such, has a higher than average understanding of the new technology that STL brings to C++ programming

Report Error

View answer Workspace Report Error Discuss

Subject: C++
Job Role: Software Architect

2 10512
Q:

Which of the following type of data member can be shared by all instances of its class?

A) Public B) Inherited
C) Static D) None
 
Answer & Explanation Answer: C) Static

Explanation:

Static members are shared by all the instances of the class

Report Error

View Answer Report Error Discuss

Filed Under: C++

2 10511
Q:

What is a KPO? What Is the difference between call center and a KPO?

Answer

KPO stands for Knowledge Process Outsourcing. It is a subset of call centers. The ways in which a KPO differs from a call center are :


1. In KPO knowledge and information related work is carried out.


2. Staff requirement is for highly skilled people.


3. Is mainly related to support and not sales.


4. Carries out works mainly for research and analysis process besides support.

Report Error

View answer Workspace Report Error Discuss

Subject: Call Center

12 10502
Q:

What are the difference between call screen and leave screen?

Answer

Call Screen: Calling a single screen is a special case of embedding a screen sequence. If you want to prevent the called screen from covering the current screen completely, you can use the CALL SCREEN statement with the STARTING AT and ENDING AT


CALL SCREEN 1000.


CALL SCREEN 1000 STARTING AT 10 10 ENDING AT 20 20.


LEAVE SCREEN statement ends the current screen and calls the subsequent screen.


LEAVE SCREEN.


LEAVE TO SCREEN 2000.


Report Error

View answer Workspace Report Error Discuss

Subject: ABAP

5 10451