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

What would be the output of the following program?

main()

{

    int i = -3, j =2, k =0, m ;

    m = ++j && ++i || ++k ;

    Printf ( "\n%d%d%d%d", i , j , k , m );

}

Answer

-2  3  0  1

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 2072
Q:

What would be the output of the following program?

main()

{

    printf (" %d%d%d ", sizeof (3.14f), sizeof (3.14), sizeof (3. 141);

}

Answer

4  8  10

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2072
Q:

What would be the output of the following program?

main()

{

    float a = 0.7;

    if ( a < 0.7f )

          printf ( " C ");

    else 

          Printf ( " C++ ");

}

Answer

C++

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2072
Q:

Where's MBR located on the disk?

Answer

Main Boot Record is located is sector 0, track 0, head 0, cylinder 0 of the primary active partition.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2072
Q:

Project Scope Management - Processes

Describe the Inputs, Tools and Techniques , Outputs included in the Create WBS ?

Answer

I. Inputs



  • Organizational process assets

  • Project scope statement

  • Project scope management  plan

  • Approved Change requests


II. Tools and Techniques



  • Work breakdown structure templates

  • Decomposition


III. Outputs



  • Project scope statement(updates)

  • Work breakdown structure

  • WBS dictionary

  • Scope baseline

  • Project scope management plan(updates)

  • Requested changes

Report Error

View answer Workspace Report Error Discuss

0 2071
Q:

The functional connection between two neurons is a

A) Axon B) Synapse
C) Neuroglia D) Dendrites
 
Answer & Explanation Answer: B) Synapse

Explanation:

The functional connection between two neurons is a Synapse.

Report Error

View Answer Report Error Discuss

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

2 2071
Q:

In each of the questions, four alternatives are given for the Idiom/Phrase. Choose the alternative which best expresses the meaning of the Idiom/Phrase and click the button corresponding to it.

To pull a long face

A) Looked happily B)  Looked surprised
C)  Looked sad D)  Looked calm
 
Answer & Explanation Answer: C)  Looked sad

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2071