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

Among the components of the dermis are:

a. sweat glands

b. hair follicles

c. collagen fibers

d. sensory- nerve endings

e. arrestor pill muscles

A) a, b, d B) a, b, c, d, e
C) a, b, c, e D) a, c, d
 
Answer & Explanation Answer: B) a, b, c, d, e

Explanation:

The dermis is a layer of the skin of the integumentary system. The dermis lies deep to the superficial epidermis which is also the most superficial layer of the skin. The dermis lies superficial to the underlying hypodermis which is also referred to as subcutaneous tissue.

Among the components of the dermis are: sweat glands, hair follicles, collagen fibers, sensory- nerve endings and arrestor pill muscles.

 

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

1 12622
Q:

Rearrange the parts of the sentence in correct order.

 

But while the defeat made

P-­as it was no longer in currency.
Q-­news, the issue on which
R-­it was based failed to resonate

 

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 12614
Q:

Which of the following is based on the principle of nuclear fusion?

 

A) Atomic bomb B) Hydrogen bomb
C) Both Atomic and Hydrogen bomb D) No option is correct
 
Answer & Explanation Answer: B) Hydrogen bomb

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams , CAT

1 12589
Q:

Improve the bracketed part of the sentence.

Woodrow Wilson was referring to the liberal idea of the economic market when he said that the free enterprise system is the (much) efficient economic system.

A) most B) many
C) mere D) No improvement
 
Answer & Explanation Answer: A) most

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English

0 12585
Q:

Jivaka, the royal physician of Rajgrih, was the son of the Ganika named as

A) Salavati B) Ramaniya
C) Basantsena D) Amrapali
 
Answer & Explanation Answer: A) Salavati

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

26 12563
Q:

Who was the last Mughal Emperor of India?

A) Akbar II B) Bahadur Shah II
C) Alamgir II D) Shah Alam II
 
Answer & Explanation Answer: B) Bahadur Shah II

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

41 12562
Q:

Select the synonym of

clasp

A) grip B) commute
C) clemency D) acquittal
 
Answer & Explanation Answer: A) grip

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 12554