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

Read the passage carefully and select the best answer to each question out of the given four alternatives.

 

The conclusion of World Trade Organization’s 11th biennial ministerial conference at Buenos Aires was worrisome. From an Indian standpoint, there was no loss as status quo continues in the most important issue: the right to continue the food security programme by using support prices. But the inability of the negotiators to reach even one substantive outcome suggests that WTO’s efficacy is under question. As a 164-country multilateral organisation dedicated to crafting rules of trade through consensus, WTO represents the optimal bet for developing countries such as India. Strengthening WTO is in India’s best interest.

 

Perhaps the biggest threat to WTO’s efficacy today is the attitude of the US. The world’s largest economy appears to have lost faith in the organisation and has begun to undermine one of its most successful segments, the dispute redressal mechanism. This is significant as the US has been directly involved in nearly half of all cases brought to WTO. Separately, large groups of countries decided to pursue negotiations on e-commerce, investment facilitation and removal of trade obstacles for medium and small scale industries. By itself this should not weaken WTO. But it comes at a time when there is growing frustration with gridlock at WTO.

 

India did well to defend its position on its food security programme. The envisaged reform package which will see a greater use of direct cash transfers to beneficiaries will be in sync with what developed countries do. But it’s important for India to enhance its efforts to reinvigorate WTO. In this context, India’s plan to organise a meeting of some countries early next year is a step in the right direction. WTO represents the best available platform to accommodate interests of a diverse set of nations. Therefore, India should be at the forefront of moves to fortify it.

 

Which of the following nation is keen to fortify its interest on WTO platform?

 

A) USA B) Japan
C) Russia D) India
 
Answer & Explanation Answer: D) India

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2107
Q:

Soil that forms on unconsolidated deposits is called

A) humus B) bedrock
C) transported soil D) residual soil
 
Answer & Explanation Answer: C) transported soil

Explanation:

Transported soils form from weathered material deposits, which are transported by natural forces to a new site, away from the site of origin.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

3 2107
Q:

Between a tiger and an monkey, which of the following is different?

A) Kingdom B) phylum
C) order D) class
 
Answer & Explanation Answer: C) order

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

0 2107
Q:

A passage is given with five questions following it. Read the passage carefully and select the best answer to each question out of the given four alternatives.

 

He wasn't the first, nor would he be the last, but the wiry, bespectacled man from Gujarat is certainly the most famous of the world's peaceful political dissidents. Mohandas Gandhi – also affectionately known as Mahatma – led India's independence movement in the 1930s and 40s by speaking softly without carrying much of a big stick, facing down the British colonialists with stirring speeches and non-violent protest. More than anything else, historians say, Gandhi proved that one man has the power to take on an empire, using both ethics and intelligence.

 

Urges Britain to quit India

It is hard to imagine the thin, robed Gandhi working in the rough and tumble world of law, but Gandhi did get his start in politics as a lawyer in South Africa, where he supported the local Indian community's struggle for civil rights. Returning to India in 1915, he carried over his desire to improve the situation of the lower classes.

 

Gandhi quickly became a leader within the Indian National Congress, a growing political party supporting independence, and traveled widely with the party to learn about the local struggles of various Indian communities.

 

It was during those travels that his legend grew among the Indian people, historians say.

 

Gandhi was known as much for his wit and intelligence as for his piety. When he was arrested several more times over the years for his actions during the movement,  Gandhi calmly fasted in prison, believing that his death would embarrass the British enough to spur independence, which had become the focus of his politics by 1920.

 

Gandhi's non-cooperation movement, kicked off in the early 1920s, called for Indians to boycott British goods and traditions and become self-reliant. His most famous protest came in 1930, when Gandhi led thousands of Indians on a 250-mile march to a coastal town to produce salt, on which the British had a monopoly.

 

What led to the growth of legend of Mahatma Gandhi among the Indians?

A) He being a very promising lawyer returning from South Africa. B) His non-violent nature.
C) His travel to India with INC to learn about the local struggle of Indians. D) His support to local Indian communities in South Africa.
 
Answer & Explanation Answer: C) His travel to India with INC to learn about the local struggle of Indians.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2107
Q:

In the following question, out of the given four alternatives, select the one which is opposite in meaning of the given word.

Forgo

A) Forfeit B) Neglect
C) Conquer D) Pass
 
Answer & Explanation Answer: C) Conquer

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2106
Q:

Which of the following statements about taxes is false?

A) Some states don’t collect income tax B) Taxes at the local, state and federal level are all equal
C) Taxes are collected at the local, state and federal level D) Some states don’t collect sales tax
 
Answer & Explanation Answer: A) Some states don’t collect income tax

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

4 2106
Q:

A sales tax is a type of

A) aggressive B) regressive
C) both A & B D) None of the above
 
Answer & Explanation Answer: B) regressive

Explanation:

Sales tax is an additional amount of money you pay based on a percentage of the selling price of goods and services that are purchased.

 

For example, if you purchase a new laptop Rs. 40000 and live in an area where the sales tax is 6%, you would pay Rs.2400 in sales tax.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2106