Questions

Q:

main()

{

float me = 1.1;

double you = 1.1;

if(me==you)

printf("yes");

else

printf("No");

}

A) Yes B) No
C) Both D) Compilation error
 
Answer & Explanation Answer: B) No

Explanation:

For floating point numbers (float, double, long double) the values cannot be predicted exactly. Depending on the number of bytes, the precession with of the value represented varies. Float takes 4 bytes and long double takes 10 bytes. So float stores 0.9 with less precision than long double.

Report Error

View Answer Report Error Discuss

Filed Under: Software Testing
Job Role: Software Architect

10 13218
Q:

Ball bearings are used in cycles, scooters etc to

A) Increase the friction between the wheel and the axle B) Reduce the friction between the wheel and the axle
C) Reduce the friction between ground and the whee D) None of the above
 
Answer & Explanation Answer: B) Reduce the friction between the wheel and the axle

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics

47 13218
Q:

An electron loses potential energy when it

 

A) shifts to a more electronegative atom. B) increases its kinetic energy.
C) shifts to a less electronegative atom. D) increases its activity as an oxidizing agent.
 
Answer & Explanation Answer: A) shifts to a more electronegative atom.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 13217
Q:

The most reactive of the following metals is

 

A) Al B) Ca
C) Ni D) Pb
 
Answer & Explanation Answer: B) Ca

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 13215
Q:

If the following program (myprog) is run from the command line as 

myprog 1 2 3 

what would be the output?

main(int argc, char *argv[])

{

    int i, j = 0;

    for (i = 0; i < argc ; i++)

           j = j + atoi ( argv[i]);

    printf ("%d", j);

}

A) 123 B) 6
C) Error D) "123"
 
Answer & Explanation Answer: B) 6

Explanation:

When atoi() tries to convert argv[0] to a number it cannot do so (argv[0] being a file name) and hence returns a zero.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

2 13214
Q:

Rearrange the parts of the sentence in correct order.

Your absence has

P-gone through me
Q-through a needle
R-like thread

A) PRQ B) PQR
C) QPR D) RPQ
 
Answer & Explanation Answer: A) PRQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13212
Q:

The gland that is present close to Trachea

A) Pancreas B) Liver
C) Adrrenal D) Thyroid
 
Answer & Explanation Answer: D) Thyroid

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

93 13209
Q:

The capacity of a stream is directly related to its

 

 

A) Velocity B) Gradient
C) Discharge D) Meandering
 
Answer & Explanation Answer: C) Discharge

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

0 13206