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

Swap two variables without using third variable.

Answer

#include<stdio.h>
int main(){
    int a=5,b=10;
    a=b+a;
    b=a-b;
    a=a-b;
    printf("a= %d  b=  %d",a,b);
}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2079
Q:

Which airport is the busiest airport in the world?

A) Hyderabad B) London
C) Newyork D) Dubai
 
Answer & Explanation Answer: D) Dubai

Explanation:

Dubai airport is the busiest airport in the world.

Report Error

View Answer Report Error Discuss

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

0 2079
Q:

Which city was the venue of 'ParmanuTech 2019'?

A) Kolkata B) Pune
C) New Delhi D) Hyderabad
 
Answer & Explanation Answer: C) New Delhi

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2079
Q:

In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?

Answer

For load-time dynamic linking: Load module to be loaded is read into memory. Any reference to a target external module causes that module to be loaded and the references are updated to a relative address from the start base address of the application module.


With run-time dynamic loading: Some of the linking is postponed until actual reference during execution. Then the correct module is loaded and linked.

Report Error

View answer Workspace Report Error Discuss

0 2078
Q:

Southerners who were for redemption wanted which of the following?

A) remove blacks from politics B) remove republicans from politics
C) hold political power D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2078
Q:

Volcanoes occur at tectonic plate boundaries that are

A) Convergent B) Divergent
C) Both A & B D) Destructive
 
Answer & Explanation Answer: C) Both A & B

Explanation:

Tectonic plates are pieces of Earth's crust and uppermost mantle, together referred to as the lithosphere. These plates which float on and travel independently over the mantle and much of the earth's seismic activity occurs at the boundaries of these plates.

volcanoes_occur_at_tectonic_plate_boundaries_that_are1561010029.jpg image

The seven major plates are the African plate, Antarctic plate, Eurasian plate, Indo-Australian plate, North American plate, Pacific plate and South American plate.

Volcanoes usually form along plate boundaries , where tectonic plates are either moving towards or away from one another. They may be convergent or divergent.

Report Error

View Answer Report Error Discuss

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

1 2078
Q:

Administered prices refer to

Answer

Administered prices are prices set by government or firms which are not determined by regular market forces. They do not vary in response to short-run fluctuations in demand and supply conditions.


Examples include price controls and rent controls.

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Economy Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

0 2078