Questions

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 12861
Q:

The core of an electromagnet is made of soft iron because soft iron has 

A) small susceptibility and small retentivity B) large susceptibility and small retentivity
C) large density and large retentivity D) small density and large retentivity
 
Answer & Explanation Answer: B) large susceptibility and small retentivity

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics

75 12860
Q:

Select the synonym of

thrashing

 

A) edifice B) prefabrication
C) bashing D) contour
 
Answer & Explanation Answer: C) bashing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 12858
Q:

Improve the bracketed part of the sentence.

 

Through the practice of repeated affirmations, we can make great progress on our chosen path and (increasing) our magnetism to succeed in anything.

A) increased B) have increased
C) increase D) No improvement
 
Answer & Explanation Answer: C) increase

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 12858
Q:

Rearrange the parts of the sentence in correct order.

I am raising these questions

P-­are early warning signs
Q­-of a deeper crisis
R­-because such events

 

A) RQP B) PQR
C) RPQ D) QRP
 
Answer & Explanation Answer: C) RPQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 12836
Q:

The value of acceleration due to gravity (g) ____.

 

A) is greater at the poles than at the equator B) is lesser at the poles than at the equator
C) is greater at the North pole than at the South pole D) is greater at the South pole than at the North pole
 
Answer & Explanation Answer: A) is greater at the poles than at the equator

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 12830
Q:

How does an organization use Resources and Capabilities in creating value?

A) They are used to create value in the form of goods and services B) They are used to create value to the IT organization for Service Support
C) They are used to create value to the IT organization for Service Delivery D) They are used to create value in the form of output for production management
 
Answer & Explanation Answer: A) They are used to create value in the form of goods and services

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: ITIL Certification

0 12830
Q:

Choose the word which is nearest in meaning to the given word:-

Anathema

A) Religious Chant B) Pun
C) Musical Subject D) Curse
 
Answer & Explanation Answer: D) Curse

Explanation:

Anathema means hateful, Pun means double meaning, Curse means imprecation. Anathema is nearest in meaning to curse.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 12826