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 17541
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 17540
Q:

You can use the tab key to ________

A) move a cursor across the screen B) indent a paragraph
C) move the cursor down the screen D) both (a) and (b)
 
Answer & Explanation Answer: D) both (a) and (b)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

58 17540
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:

Which blood type contains the a antigen only?

 

A) Blood type B B) Blood type A
C) Blood type O D) All blood types
 
Answer & Explanation Answer: B) Blood type A

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: Bank Exams

0 17495
Q:

Improve the given sentence if necessary.

He wanted my permission to taking part in sports.

A) to take part in  B) for to take part in
C) for to taking part in D) No improvement
 
Answer & Explanation Answer: A) to take part in 

Explanation:

‘To’ is always followed by the first form of the verb. So, the phrase ‘to taking part in’ needs to be replaced with ‘to take part in’. Thus, the correct formation would be, ‘He wanted my permission to take part in sports’.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

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