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

Select the synonym of

proximity

A) futile B) preposterous
C) absurd D) imminent
 
Answer & Explanation Answer: D) imminent

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

1 13132
Q:

Cultural transmission refers to the process of ______

 

 

A) cultural patterns moving from one society to another B) using the oral tradition
C) passing cultural patterns from one generation to another D) using writing to enshrine cultural patterns
 
Answer & Explanation Answer: C) passing cultural patterns from one generation to another

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

1 13132
Q:

Choose the antonym of

 

stun

 

A) petrify B) calm
C) flabbergast D) stupefy
 
Answer & Explanation Answer: B) calm

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13127
Q:

Select the synonym of

 

ascetic

 

A) spree B) austere
C) bacchanal D) binge
 
Answer & Explanation Answer: B) austere

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 13122
Q:

Crack the Detectives code and Find the criminal's Name ?

17629868_1256539077786527_1613927902568118890_n1500008133.jpg image

A) Bill B) John
C) Todd D) None
 
Answer & Explanation Answer: A) Bill

Explanation:

Bill.

From the detectives code 0415 7140 7718

Each 4 digits may represent one name

Here 7718 mirror image represent BILL.

Report Error

View Answer Report Error Discuss

Filed Under: Logic Puzzles

49 13121
Q:

Which of the following statements are CORRECT?

 


I. The soap molecules form structures called micelles.


II Soap micelles cannot scatter light.


III. Oily dirt gets collected in the center of the micelle.

 

A) Both I and II B) Both I and III
C) Both II and III D) All I, II and III
 
Answer & Explanation Answer: B) Both I and III

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 13115
Q:

Crop rotation helps to

 

A) eliminate parasites which have selective hosts B) lessen use of pesticides
C) produce a greater choice of plant products D) yield more crops
 
Answer & Explanation Answer: A) eliminate parasites which have selective hosts

Explanation:

Crop rotation is the technique of planting crops in a different area of the garden so that no single crop will be planted in the same place two—or more—years in a row.

 

Crop rotation helps to maintain soil structure and nutrient levels and to prevent soilborne pests from getting a foothold in the garden.

 

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

1 13103