Questions

Q:

What will be output of following c code?

#include <stdio.h>
int main()

{
    int i;
    for(i=10;i<=15;i++){
         while(i){
             do{
                 printf("%d ",1);
                 if(i>1)
                      continue;
             }while(0);
             break;
         }
    }
    return 0;
}

Answer

Output: 1 1 1 1 1 1
For loop will execute six times.


 


 


 


Note: continue keyword in do-while loop bring the program its while condition (while(0)) which is always false.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2108
Q:

Which is the first Harry Potter Book?

A) HP and the Philosopher's Stone B) HP and The Chamber Of Secrets
C) HP and Goblet of Fire D) None of the above
 
Answer & Explanation Answer: A) HP and the Philosopher's Stone

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

1 2107
Q:

Which of the following statements with regard to the speech of Mahatma Gandhi at the opening of the Banaras Hindu University are correct?

1.he charged the Indian elite with a lack of concern for the laboring poor.

2.He asserted that our salvation can come only through the farmers.

3.He highlighted the plight of the untouchables.

4.He promised to take up the cause of the mill owners of Ahmedabad.

Select the correct answer using the code given below.

A) 1, 2, 3 and 4 B) 1 and 2 only
C) 1, 2 and 3 only D) 3 and 4 only
 
Answer & Explanation Answer: B) 1 and 2 only

Explanation:

Only   1   and   2   are   correct,   as Mahatma  Gandhi’s  speech  in  BHU on 4 February,1916 did not include plight  of  untouchables  and  there was no issue of the mill owners on Ahmedabad in 1916.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 2107
Q:

Why does water tank appear shallower when viewed from the top?

A) Due to reflection B) Due to refraction
C) Due to diffraction D) Due to total internal reflection
 
Answer & Explanation Answer: B) Due to refraction

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

0 2107
Q:

India is the ______ largest country in the world.

A) 3rd B) 5th
C) 7th D) 9th
 
Answer & Explanation Answer: C) 7th

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

3 2107
Q:

In the following question, a sentence / a part of sentence is underlined. Below are given alternatives to the underlined part which may improve the sentence. Choose the correct alternative. In case no improvement is required, choose "No Improvement" option.

 

My parents will reach Delhi by Monday next.

A) are reaching B) will have reached
C) were reaching D) No improvement
 
Answer & Explanation Answer: B) will have reached

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2107
Q:

In the following question, out of the given four alternatives, select the one which best expresses the meaning of the given word.

Clandestine

 

A) Truthful B) Secret
C) Frank D) Upright
 
Answer & Explanation Answer: B) Secret

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2107
Q:

In the following question, out of the given four alternatives, select the one which best expresses the meaning of the given word.

 

Hound

 

A) Critic B) Migrate
C) Beagle D) Variable
 
Answer & Explanation Answer: C) Beagle

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2107