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

Improve the bracketed part of the sentence.

 

Even after putting his body and soul, if he fails to achieve victory he will not have (any authority above others).

A) any authority on others B) any authority over others
C) any authority to others D) No improvement
 
Answer & Explanation Answer: B) any authority over others

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 17518
Q:

The _____ controls communications for the entire computer system

A) arithmetic-logic unit B) semiconductor
C) motherboard D) coprocessor
 
Answer & Explanation Answer: C) motherboard

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

69 17505
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 17498
Q:

Improve the bracketed part of the sentence.

We (has finished) our lunch half an hour ago.

A) finished B) will have finished
C) had finished D) No improvement
 
Answer & Explanation Answer: A) finished

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English

0 17479
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:

Rearrange the parts of the sentence in correct order.

 

It is a good sign

P-­that the ratio remains the same despite

Q-­the revenue base coming down because

R-­of increased devolution to States

A) QRP B) RPQ
C) PRQ D) PQR
 
Answer & Explanation Answer: D) PQR

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 17449
Q:

Improve the bracketed part of the sentence.

Venezuelans (were being) deprived of food and medicines for the past year.

A) were B) are
C) have been D) no improvement
 
Answer & Explanation Answer: C) have been

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 17444