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

Permanent Hardness of water can be removed by adding

A) Bleaching powder B) Chlorine
C) Wasshing soda D) Potassium permanganate
 
Answer & Explanation Answer: C) Wasshing soda

Explanation:

Hardness can be removed by adding sodium carbonate (washing soda) or by passing the water through an ion-exchange column.

 

Hardness in water is caused by dissolved magnesium ions and calcium ions. These can get into the water when it comes into contact with limestone and other rocks that contain calcium compounds. This can happen, for example, when rainwater flows over these rocks on its way to a reservoir.

 

Hardness in water is of two types. They are :

1. Temporary hardness

2. Permanent hardness

 

1. Temporary hardness:: Temporary hardness is caused by dissolved calcium hydrogen carbonate.


2. Permanent hardness:: Permanent hardness is caused by dissolved calcium sulfate. Unlike temporary hardness, it is not removed by boiling the water.

Report Error

View Answer Report Error Discuss

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

25 22878
Q:

Name the blood cells in which nucleus is absent

A) Lymphocytes B) Blood Platelets
C) Monocytes D) Eosinophils
 
Answer & Explanation Answer: B) Blood Platelets

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

237 22863
Q:

Against which team did Virender Sehwag make his one day international debut

A) New Zealand B) Sri lanka
C) Pakistan D) South Africa
 
Answer & Explanation Answer: C) Pakistan

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

109 22829
Q:

Select the related word/letters/numbers from the given alternatives:

Words : Sentence :: Paragraph: ?

A) TYPING B) Essay
C) Letters D) Phrase
 
Answer & Explanation Answer: B) Essay

Explanation:
Report Error

View Answer Report Error Discuss

0 22758
Q:

Who among the following writers won the 2017 Sahitya Academy Award for Hindi literature?

 

A) Niranjan Mishra B) Ramesh Kuntal Megh
C) Uday Narayana Singh D) Shrikant Deshmukh
 
Answer & Explanation Answer: B) Ramesh Kuntal Megh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: Bank Exams

1 22744
Q:

Who founded in Pataliputra

A) Udayin B) Ashoka
C) Bimbisar D) Mahapadmananda
 
Answer & Explanation Answer: A) Udayin

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

66 22736
Q:

If (a+c+1) = 0, then find the value of a3 + c3 + 1 - 3ac

 

 

A) -1 B) 1
C) 2 D) 0
 
Answer & Explanation Answer: D) 0

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: Bank Exams

0 22735