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

Contaminated rags are recommended for disposal in landfills.

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:
Report Error

View Answer Workspace Report Error Discuss

Subject: Physics
Exam Prep: Bank Exams

2 2196
Q:

Which country has launched the longest bullet train line covering a distance of 2252 kilometers in January, 2017?

A) Japan B) China
C) Afghanistan D) Myanmar
 
Answer & Explanation Answer: B) China

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

8 2196
Q:

The design principle that is based on repetition is called

A) Rhythm B) Texture
C) Color D) None of the above
 
Answer & Explanation Answer: A) Rhythm

Explanation:

The design principle that is based on repetition is called Rhythm.

Report Error

View Answer Report Error Discuss

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

1 2196
Q:

Soil having high content of aluminum and iron oxide is also known as _____.

A) meadow soil B) pedalfer soil
C) chernozen soil D) podzol soil
 
Answer & Explanation Answer: B) pedalfer soil

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

3 2196
Q:

The major objective of INSAT series of satellites is to facilitate.

A) TV relay to remote areas B) Mobile network in remote areas
C) Internet services D) Mapping locations through GPS
 
Answer & Explanation Answer: A) TV relay to remote areas

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

6 2196
Q:

In the following question, some part of the sentence may have errors. Find out which part of the sentence has an error and select the appropriate option. If a sentence is free from error, select 'No Error'.

There was already a sizable(A)/ gap between her car and(B)/the one front of her.(C)/No error(D)

 

A) A B) B
C) C D) D
 
Answer & Explanation Answer: C) C

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2196
Q:

In the following question, out of the four alternatives, select the alternative which best expresses the meaning of the idiom/phrase.

Smell a rat

A) To sense that events will not be in one's favour B) To begin to suspect trickery or deception
C) To be forewarned of danger to oneself D) To prevent calamity by chance
 
Answer & Explanation Answer: B) To begin to suspect trickery or deception

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2196