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

What is cycle stealing?

Answer

We encounter cycle stealing in the context of Direct Memory Access (DMA). Either the DMA controller can use the data bus when the CPU does not need it, or it may force the CPU to temporarily suspend operation. The latter technique is called cycle stealing. Note that cycle stealing can be done only at specific break points in an instruction cycle.

Report Error

View answer Workspace Report Error Discuss

0 2060
Q:

What is an idle thread?

Answer

The special thread a dispatcher will execute when no ready thread is found.

Report Error

View answer Workspace Report Error Discuss

1 2060
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".

Practically every part of the coconut tree is used by man

A) each B) most
C) any D) No improvement
 
Answer & Explanation Answer: D) No improvement

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2060
Q:

Which city is located on the banks of the river Brahmaputra?

A) Kanpur B) Srinagar
C) Dibrugarh D) Lucknow
 
Answer & Explanation Answer: C) Dibrugarh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

3 2060
Q:

In the given question, an idiom/phrase highlighted in bold is given in a sentence. Choose the most suitable meaning of the idiom/phrase.


You must not waste your leisure time doing nothing, rather you should engage yourself in such activities that will blow off steam and recharge you for the future endeavours.

A) Release surplus energy B) Take steam bath
C) To make someone fidgety D) To exercise the brain
 
Answer & Explanation Answer: A) Release surplus energy

Explanation:

The idiom “blow off steam” means to express one’s anger, usually noisily and harmlessly, thereby relieving one’s tension. The above sentence states that one should not waste one’s time and utilise it in releasing negative energies to get charged up. Only option 1 goes with this meaning, hence option 1 is correct.

Report Error

View Answer Report Error Discuss

Filed Under: English

0 2059
Q:

Which of the following is not connective tissue?

A) Bone B) Cartilage
C) Blood D) Skeletal muscle
 
Answer & Explanation Answer: D) Skeletal muscle

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

3 2059
Q:

What are java threads?

Answer

Java is one of the small number of languages that support at the language level for the creation and management of threads. However, because threads are managed by the java virtual machine (JVM), not by a user-level library or kernel, it is difficult to classify Java threads as either user- or kernel-level.

Report Error

View answer Workspace Report Error Discuss

1 2059