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

The 'Blue Water Policy' was introduced by the Portugese leader_________

A) Franscisco-de-Almeida B) Alfonso de Albuquerque
C) Francis Caron D) Francis Martin
 
Answer & Explanation Answer: A) Franscisco-de-Almeida

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

3 2129
Q:

In case of a standard hydrogen electrode

A) absolute electrode potential is not zero B) absolute electrode potential is zero
C) both absolute and standard electrode potential values are zero D) electrode potential is zero only at 25 deg C
 
Answer & Explanation Answer: A) absolute electrode potential is not zero

Explanation:

The Standard hydrogen electrode (abbreviated SHE), is a redox electrode which forms the basis of the thermodynamic scale of oxidation-reduction potentials. Its absolute electrode potential is estimated to be 4.44 ± 0.02 V at 25 °C, but to form a basis for comparison with all other electrode reactions, hydrogen's standard electrode potential (E0) is declared to be zero volts only at 298.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 2129
Q:

In the following question, out of the four alternatives, select the alternative which best expresses the meaning of the idiom/Phrase.
To go through fire and water

A) To scold someone B) To experience many dangers in order to achieve something
C) To act without restraints D) Something which hurts
 
Answer & Explanation Answer: B) To experience many dangers in order to achieve something

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2128
Q:

What is Rafale deal?

Answer

India and France entered into an agreement for 36 Rafale fighter jets at a value of about Rs 59,000 crore. The agreement includes a 50 per cent offset obligation, the largest-ever offset contract in the history of India. The main point of the offset agreement is 74 per cent of it has to be imported from India, which means direct business worth around Rs 22,000 crore, according to PTI report.


 


Soon after the deal, Anil Ambani-led Reliance Group and Rafale maker Dassault Aviation had announced a joint venture (JV) that will be a 'key player' in fulfilling the offset contract.

Report Error

View answer Workspace Report Error Discuss

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

4 2128
Q:

Which of the following is known as thinnest layer of the earth?

A) Core B) Mantle
C) Crust D) None of the above
 
Answer & Explanation Answer: C) Crust

Explanation:

The thinnest layer is crust. It is about 100km. Where as mantle ranges upto 2900 km and the inner most core ranges upto 6300km.

Report Error

View Answer Report Error Discuss

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

2 2128
Q:

The white matter of the spinal cord contains

A) some have both myelinated and unmyelinated nerve fibers B) myelinated and unmyelinated nerve fibers
C) myelinated nerve fibers only D) unmyelinated nerve fibers only
 
Answer & Explanation Answer: B) myelinated and unmyelinated nerve fibers

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2128
Q:

What would be the output of the following program?

main()

{

    char a[] = "Visual C++";

    char *b = "Visual C++";

    printf ("\n%d %d", sizeof (a), sizeof (b));

    printf ("\n%d %d", sizeof (*a), sizeof (*b));

Answer

11  2


 1   1

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2128