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:

In the following question, out of the four alternatives, choose the word which best expresses the meaning of the given word and click the button corresponding to it.
OMINOUS

A) OFFICIOUS B) PLEASANT
C) CONVENIENT D) THREATENING
 
Answer & Explanation Answer: D) THREATENING

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2108
Q:

Which of the following phrases (i), (ii), and (iii) given below each sentence should replace the phrase printed in bold letters to make the sentence grammatically correct? Choose the best option among the five given alternatives that reflect the correct use of phrase in the context of the grammatically correct sentence. If the sentence is correct as it is, mark (E) i.e., "No correction required" as the answer.
Insurance is a contract, represented for a policy, in which an individual or entity receives financial protection.
i. Represented in a policy
ii. Represented by a policy
iii. Represented with a policy

A) A. Only i B) B. Only ii
C) C. Only iii D) D. i and ii
 
Answer & Explanation Answer: B) B. Only ii

Explanation:

Ans. B.
The correct preposition here would be 'by'. By follows 'represented' when something takes the place of and refers to something bigger. With follows 'represented' when an attribute with which something or someone is depicted. A contract is not represented in a policy but stated in a policy.

Report Error

View Answer Report Error Discuss

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

0 2108
Q:

Which of the following state receives rainfall due to western disturbances?

A) Punjab B) West Bengal
C) Kerala D) Gujarat
 
Answer & Explanation Answer: A) Punjab

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

5 2108
Q:

In the following question, out of the four alternatives, select the alternative which best expresses the meaning of the idiom/phrase.

 

On a wing and a prayer

 

A) A prayer can move mountains. B) A prayer has the strength to make you achieve great heights just like wings do.
C) The more one gets into prayer the closer one feels to God. D) With only the slightest chance of success.
 
Answer & Explanation Answer: D) With only the slightest chance of success.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2108
Q:

In the following question, out of the four alternatives, select the alternative which is the best substitute of the words/sentence.

 

Preserve a right, tradition, or idea in a form that ensures it will be protected and respected

A) Profane B) Sacrilege
C) Enshrine D) Blaspheme
 
Answer & Explanation Answer: C) Enshrine

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2108
Q:

A sentence/a part of the sentence is underlined. Four alternatives are given to the underlined part which will improve the sentence. Choose the correct alternative and click the button corresponding to it. In case no improvement is needed, click the button corresponding to "No improvement".

He dislikes the word, isn't he?

A) doesn't he? B) didn't he?
C) does he? D) No improvement
 
Answer & Explanation Answer: A) doesn't he?

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.

Curtail

A) Prolong B) Downsize
C) Lengthen D) Extend
 
Answer & Explanation Answer: B) Downsize

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2107