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

Who among the following repealed the Vernacular Press Act?

A) Lord Dufferin B) Lord Lytton
C) Lord Lansdowne D) Lord Ripon
 
Answer & Explanation Answer: B) Lord Lytton

Explanation:
Report Error

View Answer Report Error Discuss

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

5 2089
Q:

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

The use of irony to mock or convey contempt

A) Sanction B) Flatter
C) Compliment D) Sarcasm
 
Answer & Explanation Answer: D) Sarcasm

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2089
Q:

Four words are given, out of which only one word is spelt correctly. Choose the correctly spelt word and click the button corresponding to it.

A) Desorientation B) Disorientetion
C) Dysorientation D) Disorientation
 
Answer & Explanation Answer: D) Disorientation

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2089
Q:

In the following question, out of the four alternatives, select the word opposite in meaning to the word given.

Sentience

A) Disregard B) Appreciation
C) Consciousness D) Perception
 
Answer & Explanation Answer: A) Disregard

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2089
Q:

Read the following passage carefully and choose the most appropriate answer to the question out of the four alternatives.

 


When I think of my family's history on the land. I experience a pang of regret. Unlike much of the arid West, where the land has gone virtually unchanged for centuries, my place of origin, western Kansas, has been torn up by agriculture. The flat plains, excellent soil, and sparse but just adequate rainfall permitted farming; therefore farming prevailed, and a good 90% of the original sod prairie is gone. The consequence, in human terms, is that our relationship to our place has always felt primarily mercantile. We used the land and denied, or held at bay, its effect on us. Yet from my earliest childhood, when the most of the Kansas prairie was still intact, I 've known that the land also had a romantic quality. I've felt moved by the expanse of it , enthralled by size. I take pride in my identity as a plains daughter.

 

From the passage, it may be determined that the word "mercantile" has something to do with

A) practicality B) danger
C) America D) spirituality
 
Answer & Explanation Answer: A) practicality

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2089
Q:

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

 

One who runs away from justice.

A) Plaintive B) Fugitive
C) Accretive D) Adventives
 
Answer & Explanation Answer: B) Fugitive

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2088
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 2088