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 2103
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 expresses the same sentence in Indirect/Direct speech.

The teacher said, "The Earth revolves around the sun."

A) The teacher said that the Earth is being revolving around the sun. B) The teacher said that the Earth revolves around the sun.
C) The teacher said that the Earth revolved around the sun. D) The teacher said that the Earth had been revolving around the sun.
 
Answer & Explanation Answer: B) The teacher said that the Earth revolves around the sun.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2103
Q:

Select the word with the correct spelling.

A) arobics B) chosers
C) batered D) eternity
 
Answer & Explanation Answer: D) eternity

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2103
Q:

Cross Contamination is prevented by

Answer

Cross Contamination ::


Cross Contamination is nothing but a contamination in a cross way i.e, when a bacteria on a kitchen tool transfers to food via direct contact. Two of the most common kitchen tools usually tend to be a knife or a cutting board. However, it is not just bacteria that gets carried from one place to another — it could also be a virus also.


Cross Contamination is prevented by the following tips ::


1. Use separate equipment


2. Clean and sanitize all work surfaces


3. Remind employees to wash their hands


4. Purchase prepared food


5. Implement a personal hygiene program.

Report Error

View answer Workspace Report Error Discuss

Subject: Biology Exam Prep: AIEEE
Job Role: Analyst

13 2103
Q:

Which one of the following may be the true characteristic of cyclones?

A) Temperate cyclones move from west to east with westerlies whereas tropical cyclones follow trade winds B) The front side of cyclone is known as the 'eye of cyclone'.
C) Cyclones possess a centre of high pressure surrounded by closed isobars D) Hurricanes are well known tropical cyclones which develop over mid latitudes.
 
Answer & Explanation Answer: A) Temperate cyclones move from west to east with westerlies whereas tropical cyclones follow trade winds

Explanation:

Temperate Cyclones are cyclones of mid-latitudes and hence are primarily under influence of permanent winds of mid-latitudes i.e. westerlies. Their movement is therefore eastwards of their origin with average velocity of 32km per hour in summers and 48km per hour in winters.

Movement of Tropical CyclonesNormally, they move from east to west under the influence of trade winds because trade winds are permanent winds of tropical latitudes. The general direction is therefore westwards from their origin. They advance with varying velocities. Weak cyclones move at the speed of about 32km per hour while hurricanes attain the velocity of 180km per hour or more.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

2 2102
Q:

Which gases in the atmosphere absorb ultraviolet radiation?

A) Ozone B) Carbondi oxide
C) Oxygen D) Helium
 
Answer & Explanation Answer: A) Ozone

Explanation:

The ozone gas present in the atmosphere absorb ultraviolet radiation. It is spread as a ozone layer throughout the stratosphere.

Report Error

View Answer Report Error Discuss

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

4 2102
Q:

A passage is given with 5 questions following it. Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.


My brother, David, was always close to our grandmother. Both of them shared a love of Mother Nature and of food that they had grown themselves. Whenever his schedule permitted, he would drop in for a short visit and a cup of coffee. One day, when he found no one home, he left a chunk of dirt on her porch. This started what was later to be known as his "calling card". Grandmother would come home occasionally and instantly know that Dave had been by when she spotted the chunk of dirt on her porch.

Although Grandmother had a poor upbringing in Italy, she managed to do well in the United States. She was always healthy and independent and enjoyed a fulfilling life. Recently she had a stroke and died. Everyone was saddened by her death. David was disconsolate. His life­long friend was now gone.

Grandmother enjoyed a _____ life.

A) healthy but sickly B) good and healthy
C) rich but sickly D) poor and healthy
 
Answer & Explanation Answer: B) good and healthy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2102
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.


Ants have been living on the earth for more than 100 million years and can be found almost anywhere on the planet. It is estimated that there are about 20000 different species of ants. For this reason ants have been called Earth's most successful species. If you watch ants for any length of time you will see that they really do communicate with each other and very effectively too. Ants communicate by touching each other with their antennae. Ants also use chemicals called pheromones to leave scent trails for other ants to follow. Ants build many different types of homes. Many ants build simple little mounds out of dirt or sand. Other ants use small sticks mixed with dirt and sand to make a stronger mound that offers protection from rain. Western Harvester ants make a small mound on top, but then tunnels up to 15 feet straight down to hibernate during winter. Ant mounds consist of many chambers connected by tunnels. Different chambers are used for nurseries, food storage, and resting places for the worker ants. Some ants live in wood like termites. Army ants don't make a home at all but travel in a large groups searching for food. Ants are social insects which means they live in large colonies or groups. Some colonies consist of millions of ants. There are three types of ants in each species, the queen, the sterile female workers and males. The male ants only serve one purpose, to mate with future queen ants and do not live very long. The queen grows to adulthood, mates, and then spends rest of her life laying eggs. A colony may have only one queen, or there may be many queens depending on the species. Ants go through four stages of development: egg, larva, pupa and adult.

 

Antennae are used by ants to

A) leave a trail for other ants B) communicate
C) find direction D)  touch and feel each other
 
Answer & Explanation Answer: B) communicate

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2102