Questions

Q:

Which error are you likely to get when you run the following program?

main()

{

  struct emp

  {

      char name[20];

      float sal;

  };

  struct emp e[10];

  int i;

  for ( i = 0 ; i <= 9; i++)

        scanf ( "%s %f" , e[i].name, &e[i].sal );

}

Answer

Floating point formats not linked

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2073
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:

Most catches in test cricket by wicket keeper?

A) MV. Boucher B) M.S Dhoni
C) Gilchrist D) IA. Healy
 
Answer & Explanation Answer: A) MV. Boucher

Explanation:
Report Error

View Answer Report Error Discuss

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

4 2072
Q:

When was Zoroastrianism founded?

A) 4th century BCE B) 6th century BCE
C) 8th century BCE D) 10th century BCE
 
Answer & Explanation Answer: B) 6th century BCE

Explanation:

Zoroastrianism is one of the world's oldest extant religions. It is the ancient pre-Islamic religion of Iran that survives there in isolated areas and, more prosperously, in India, where the descendants of Zoroastrian Iranian (Persian) immigrants are known as Parsis, or Parsees.

 

The Iranian prophet and religious reformer Zarathustra flourished before the 6th century BCE more widely known outside Iran as Zoroaster is traditionally regarded as the founder of the religion.

 

Zoroastrianism contains both monotheistic and dualistic features. It likely influenced the other major Western religions—Judaism, Christianity, and Islam.

Report Error

View Answer Report Error Discuss

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

1 2072
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.

It's nothing short of a revolution in how we eat, and it's getting closer every day. Yes, a lot of people are obese, and yes, the definition of "healthy eating" seems to change all the time. But in labs and research centres around the world, scientists are racing to match our genes and our taste buds, creating the perfect diet for each of us, a diet that will fight disease, increase longevity, boost physical and mental performance, and taste great to boot. As food scientist J.Bruce German says, "The foods we like the most will be the most healthy for us."

Is that going to be a great day, or what?

All this will come to pass, thanks to genomics, the science that maps and describes an individual's genetic code. In the future, personalized DNA chips will allow us to assess our own inherited predispositions for certain diseases, then adjust our diets accordingly. So, if you're at risk for heart disease, you won't just go on a generic low-fat diet. You'll eat foods with just the right amount and type of fat that's best for you. You'll even be able to track your metabolism day-to-day to determine what foods you should eat at any given time, for any given activity. "Since people differ in their genetics and metabolism, one diet won't fit all," says German. As complex as all this sounds, it could turn out to be relatively simple.

What will be possible in the future?

A) Personalised DNA chips for people to assess their own inherited predispositions B) You are at great risk for heart disease
C) You will not be able to determine what food you should eat D) You will be unable to adjust your diet
 
Answer & Explanation Answer: A) Personalised DNA chips for people to assess their own inherited predispositions

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2072