Interview Questions

Q:

Which keyword is used to declare the min and max functions?

A) iostream B) string
C) algorithm D) None of these
 
Answer & Explanation Answer: C) algorithm

Explanation:

Algorithm header file contain the supporting files needed for the execution of these functions.

Report Error

View Answer Report Error Discuss

Filed Under: C++

1 7628
Q:

How do you check the syntax of a JCL without running it?

Answer

TYPERUN=SCAN on the JOB card or use JSCAN.


TYPERUN=HOLD on the job card.


it is used for syntatical checks and direct job to spool and hold it.

Report Error

View answer Workspace Report Error Discuss

3 7624
Q:

Which among the following are not access Specifiers in C++?

A) Public B) Protected
C) Default D) Private
 
Answer & Explanation Answer: C) Default

Explanation:

Default is the access specifier in java not in C++

Report Error

View Answer Report Error Discuss

Filed Under: C++

4 7624
Q:

What’s the difference between md5( ), crc32( ) and sha1( ) crypto on PHP?

Answer The major difference is the length of the hash generated. CRC32 is, evidently, 32 bits, while sha1() returns a 128 bit value, and md5() returns a 160 bit value. This is important when avoiding collisions.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP

1 7569
Q:

Productivity is the combination of

A) efficiency and energy B) efficiency and effectiveness
C) efficiency and attitude D) effectiveness and resources
 
Answer & Explanation Answer: B) efficiency and effectiveness

Explanation:

Productivity is a result of the way that a business operates – the result of the way that its people, business processes, different functional units and suppliers come together to meet the needs and wants of its customers.

Productivity is the combination of intelligent planning and focused efforts and hence, it is a combination of Efficiency and Effectiveness.

Efficiency :


Efficiency is an internal measure of performance for companies that shows how well the company converts inputs into outputs. The more the ratio of outputs to inputs approaches 100 percent, the better the efficiency of the process will be. In simple terms, it is “doing things right” and comes from proper harnessing of time, cost and efforts.

Effectiveness :


Organizational effectiveness is an external measure of performance and indicates how well an organization fulfills the demands of various organizational stakeholders. Simply put, it is “doing the right things."

Report Error

View Answer Report Error Discuss

Filed Under: Marketing and Sales
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 7539
Q:

How to handle error in the destructor?

A) throwing B) terminate
C) both a & b D) none of the mentioned
 
Answer & Explanation Answer: B) terminate

Explanation:

It will not throw an exception from the destructor but it will the process by using terminate() function.

Report Error

View Answer Report Error Discuss

Filed Under: C++

3 7492
Q:

Diversification is important in investing because

A) It ensures that you only make low-risk investments. B) It helps you to balance your risk across different types of investments.
C) It helps you gain the highest rate of return despite any risks. D) It increases your overall risk, which guarantees that you will make more money.
 
Answer & Explanation Answer: B) It helps you to balance your risk across different types of investments.

Explanation:
Report Error

View Answer Report Error Discuss

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

2 7443
Q:

How many ways are there to initialize int with a constant?

A) 1 B) 2
C) 3 D) 4
 
Answer & Explanation Answer: B) 2

Explanation:

There are two formats for initializers in C++ as shown in the example that follows. The first format uses the traditional C notation. The second format uses constructor notation.

int foo = 123;

 

int bar (123);

Report Error

View Answer Report Error Discuss

Filed Under: C++
Job Role: Software Architect

1 7436