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

Who invented ECG?

A) Hans Berger B) Einthoven
C) G. Bist D) None of the above
 
Answer & Explanation Answer: B) Einthoven

Explanation:
Report Error

View Answer Report Error Discuss

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

4 2081
Q:

The First battle of which war was the Battle of Alma?

A) Creek war B) Crimean war
C) Korean war D) Chinese war
 
Answer & Explanation Answer: B) Crimean war

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History

2 2081
Q:

The Shiites believed that the Umayyad

A) should pray more B) should not be in power
C) got special treatment D) should rule
 
Answer & Explanation Answer: B) should not be in power

Explanation:
Report Error

View Answer Report Error Discuss

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

3 2081
Q:

Molten rock inside the earth is called

A) Mantle B) Core
C) Magma D) Lava
 
Answer & Explanation Answer: C) Magma

Explanation:

Molten rock inside the earth is called Magma.

Report Error

View Answer Report Error Discuss

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

5 2081
Q:

The boy fell .... the bicycle.

A) from B) of
C) under D) off
 
Answer & Explanation Answer: D) off

Explanation:

The boy fell off the bicycle.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams , CAT , GRE , TOEFL

0 2081
Q:

Which is a homologous chromosome pair?

A) Tetrad B) Gamate
C) Chromatid D) Zygote
 
Answer & Explanation Answer: A) Tetrad

Explanation:

Tetrad is a homologous chromosome pair in the given options. A homologous chromosome pair is a pair of chromosomes one from father and one from mother that has same gene sequence after the process of meiosis.

Report Error

View Answer Report Error Discuss

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

1 2081
Q:

Dr. Babasaheb Ambedkar International Airport is located in which place?

A) Chennai B) Mumbai
C) New Delhi D) Nagpur
 
Answer & Explanation Answer: D) Nagpur

Explanation:

Dr. Babasaheb Ambedkar International Airport is located in Nagpur of Maharashtra state in India.

Report Error

View Answer Report Error Discuss

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

2 2080