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:

If A denotes −, C denotes ×, D denotes ÷, E denotes +, then 14C3A12E4D2=?

A) 6 B) 17
C) 28 D) 32
 
Answer & Explanation Answer: D) 32

Explanation:
Report Error

View Answer Report Error Discuss

2 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 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:

In the following question, a sentence has been given in Active/Passive voice. Out of the four alternatives suggested, select the one which best expresses the same sentence in Passive/Active voice.

 

The authorities are mistreating the prisoners.

A) The prisoners will be mistreated by the authorities. B) The authorities mistreat the prisoners.
C) The prisoners are being mistreated by the authorities. D) Mistreating of the prisoners will be done by the authorities.
 
Answer & Explanation Answer: C) The prisoners are being mistreated by the authorities.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2089
Q:

In each of the questions given below, a passage has been given which are either situational based or describes a scenario. Below each passage, a question has been given which is framed to make you to infer something out of it. Mark out the correct inference as your answer.
India's leading and most popular food delivery start-up, Swiggy landed in a soup on Wednesday, after four people claiming to be current and former employees allegedly revealed fraudulent
and unethical means practiced at the company, in a blog post.
Which of the following can be said about the allegations?

A) Defragmented B) Ambiguous
C) Definitive D) Anecdotal
 
Answer & Explanation Answer:

Explanation:

Defragmented means to run a process that collects fragments of files and sorts them into contiguous sections on one or more hard disks or hard disk partitions, thus speeding up file
management.
Ambiguous means to be of uncertain nature or significance.
Definitive means clearly defined or formulated.
Anecdotal means to have the character of an anecdote.
Speculative means not based on fact or investigation.
Hence, the correct answer is 5.

Report Error

View Answer Report Error Discuss

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

0 2089
Q:

Four statements are given below at A, B, C and D. There may be some errors in the given statement(s). The incorrect statement is your answer.

A) A. The war of succession ultimately boiled over to who had more power. B) B. The war of succession ultimately boiled below to who had more power.
C) C. The war of succession ultimately boiled upon to who had more power. D) D. The war of succession ultimately boiled down for who had more power.
 
Answer & Explanation Answer:

Explanation:

Ans. E.
In the given sentences, boiled down is the phrasal verb that should have been used which means summarizing something, to reduce or simplify
(something) to the most basic, essential, or fundamental element(s). In this context it means that the one who had more power succeeded. 'Boiled down' should be followed by 'to' and not 'for', hence option D is incorrect.

Report Error

View Answer Report Error Discuss

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

0 2089