Questions

Q:

What will output when you compile and run the following code?

#include <stdio.h>
struct student
{

int roll;
int cgpa;
int sgpa[8];

};

void main()
{

struct student s = { 12,8,7,2,5,9 };
int *ptr;
ptr = (int *)&s;
clrscr();
printf( "%d", *(ptr+3) );
getch();

}

A) 8 B) 7
C) 2 D) Compiler error
 
Answer & Explanation Answer: C) 2

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Programming

1 17494
Q:

What resources are used when a thread is created? How do they differ from those when a process is created?

Answer

When a thread is created the threads does not require any new resources to execute the thread shares the resources like memory of the process to which they belong to. The benefit of code sharing is that it allows an application to have several different threads of activity all within the same address space. Whereas if a new process creation is very heavyweight because it always requires new address space to be created and even if they share the memory then the inter process communication is expensive when compared to the communication between the threads.

Report Error

View answer Workspace Report Error Discuss

19 17492
Q:

Improve the bracketed part of the sentence.

 

Perhaps a greater challenge they face is (improving the wounds of the civil war), Iraq is a divided country today.

A) counting the effects of the civil war B) curing the aftermaths of the civil war
C) healing the wounds of the civil war D) No improvement
 
Answer & Explanation Answer: C) healing the wounds of the civil war

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 17488
Q:

Rearrange the parts of the sentence in correct order.

The NSG

P- of nuclear trade, spelt out in its guidelines and trigger-lists
Q- covering every aspect
R- has already made its rules,

A) QRP B) QPR
C) PRQ D) RQP
 
Answer & Explanation Answer: D) RQP

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 17484
Q:

The famous Saint Chaitanya of Bengal was a contemporary of which of the following?

 

A) Alauddin Husain Shah B) Azamshah
C) Sikandar Shah D) Mohammad Shah
 
Answer & Explanation Answer: A) Alauddin Husain Shah

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

2 17484
Q:

Pashmina shawl is made from the hair of 

A) Sheep B) Goat
C) Rabbit D) Yak
 
Answer & Explanation Answer: B) Goat

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds

204 17468
Q:

Improve the bracketed part of the sentence.

 

(It is been seen) as a "prestige battle" for the PM and a litmus test for the president of the opposition party.

 

A) It have been seen B) It is being seen
C) It had being seen D) No improvement
 
Answer & Explanation Answer: B) It is being seen

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 17468
Q:

Syadvada was the fundamental basis of which religion?

 

A) Buddhism B) Jainism
C) Vaishnavism D) Shaivism
 
Answer & Explanation Answer: B) Jainism

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 17464