Questions

Q:

Why we use do-while loop in c?

Answer

It is also called as post tested loop. It is used when it is necessary to execute the loop at least one time. Syntax:

do {
Loop body
} while (Expression);

Example:

int main(){
    int num,i=0;  
    do{
         printf("To enter press 1\n");
         printf("To exit press  2");
         scanf("%d",&num);
         ++i;
         switch(num){
             case 1:printf("You are welcome\n");break;
             default : exit(0);
         }
    }
    while(i<=10);
    return 0;
}

Output: 3 3 4 4

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2113
Q:

Chandragupta Maurya was an ardent follower of __________.

A) Sikhism B) Jainism
C) Buddhism D) Jewism
 
Answer & Explanation Answer: B) Jainism

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 2113
Q:

In the following question, a sentence has been given in Direct/Indirect speech. Out of the four alternatives suggested, select the one which best express the same sentence in Indirect/Direct speech.

The coach said, "Bravo! Puneet, you have done well."

A) The coach applauded Puneet saying that he had done well. B) The coach said to Puneet Bravo, he had done well.
C) The coach congratulated Puneet, saying he did well. D) The coach said to Puneet, that he did well.
 
Answer & Explanation Answer: A) The coach applauded Puneet saying that he had done well.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2113
Q:

Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.

The first working steam­ powered vehicle was designed and most likely built by Ferdinand Verbies, a Flemish member of a Jesuit mission in China around 1672. It was a 65 cm long scale­ model toy for the Chinese Emperor, that was unable to carry a driver or a passenger. It is not known if Verbiest's model was ever built. Nicolas- Joseph Cugnot is widely credited with building the first full­ scale, self ­propelled mechanical vehicle or automobile in about 1769; he also created a steam­ powered tricycle. He constructed two steam tractors for the French Army, one of which is preserved in the French National Conservatory of Arts and Crafts. His inventions were however handicapped by problems of water supply and maintaining steam pressure. In 1801, Richard Trevithick built and demonstrated his Puffing Devil road locomotive, believed by many to be the first demonstration of a steam ­powered road vehicle. It was unable to maintain sufficient steam pressure for long periods. Sentiment against steam ­powered road vehicles led to the Locomotive Acts of 1865. In 1807 Nicephore Niepce and his brother Claude probably created the world's first internal combustion engine which they called Pyreolophore.

The Pyreolophore was ?

A) A self­propelled mechanical vehicle B) A steam-­powered tricycle
C) A steam tractor D) The name of the world's first internal combustion engine
 
Answer & Explanation Answer: D) The name of the world's first internal combustion engine

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2113
Q:

If a person moves a trolley for a distance of 10 m with a force of 50 N, then the work done is

A) 0.2 J B) 5 J
C) 20 J D) 500 J
 
Answer & Explanation Answer: D) 500 J

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

3 2113
Q:

Study the pie­chart given and answer the following questions.

If the miscellaneous charges are Rs. 6000, then the advertisement charges are

A) Rs.12000 B) Rs.27000
C) Rs.90000 D) Rs.25000
 
Answer & Explanation Answer: B) Rs.27000

Explanation:
Report Error

View Answer Report Error Discuss

0 2113
Q:

How CNG is a cleaner fuel?

I. It produces oxides of Sulphur and Nitrogen in very small amounts.
II. It makes environment less polluted.
III. It emits less greenhouse gases.

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

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science

3 2113
Q:

Which of the following are constituents of Indian Parliament?
(i) The President
(ii) The Council of States (Rajya Sabha)
(iii) The House of the People (Lok Sabha)

A) (ii) and (iii) B) (i) and (ii)
C) (i) and (iii) D) (i), (ii) and (iii)
 
Answer & Explanation Answer: D) (i), (ii) and (iii)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

0 2112