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

Which subatomic particle has a positive charge?

 

A) Proton B) Neutron
C) Electron D) Ion
 
Answer & Explanation Answer: A) Proton

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

1 17509
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 17494
Q:

Read the passage carefully and choose the best answer to each question out of the four alternatives.


Eight north Indian Ocean countries, namely, Bangladesh, India, the Maldives, Myanmar, Oman, Pakistan, Sri Lanka and Thailand, were asked to contribute names so that a combined list could be compiled. Each country gave eight names and a combined list of 64 names was prepared. This list is currently in use, and all cyclones arising in the north Indian Ocean are named from this list, with one name from each country being used in turn. Almost 38 or 39 names from the list have been used up, but since many cyclones dissipate long before they hit land, their names rarely figure in the papers or other media. The names that people do know about, and remember are, naturally, those that were most destructive ones, or very recent. Aila, in 2009 is remembered with a shudder for the enormous destruction it caused in West Bengal and Bangladesh; Phaillin, also for the damage it caused when it hit the Odisha coast in 2013. Two harmless cyclones, which also might remain in people’s memory, are the more recent ones of 2014 — Hudhud, which threatened the east coast of India and Nilofar, which was expected to, but did not, devastate the western coast. The names in the cyclone list are usually words one associates with storms; words which mean water or wind or lightning in various national languages. Sometimes they are names of other things — birds or flowers or precious stones. The name ‘Aila’, contributed by the Maldives means ‘fire’, the name ‘Phaillin’ from Thailand means sapphire, the name ‘Hudhud’ from Oman is the name of a bird, probably the hoopoe, and the name ‘Nilofar’, given by Pakistan, is the Urdu name of the lotus or water lily. The eight names suggested by India, and which are in the list of 64, are Agni, Akaash, Bijli, Jal, Leher, Megh, Sagar and Vayu, meaning in that order, fire, sky, lightning, water, wave, cloud, sea and wind. Five of these names (that is, up to Leher) have been used so far.


Which name suggested by India has not been used so far?

A) Leher B) Agni
C) Bijli D) Vayu
 
Answer & Explanation Answer: D) Vayu

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 17486
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.

When I (go) to Paris, I shall visit the Eiffel Tower.

A) shall go B) will be going
C) have to go 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 17462
Q:

Rearrange the parts of the sentence in correct order.

 

P: This discipline is characterized by several concepts and approaches that are used by psychologists in understanding human behavior.
Q: The field of psychology can be described as a discipline that focuses on the study of mind and behavior.
R: Some of the most common psychological concepts that are used to modify or change an individual’s behavior include operant conditioning, positive and negative punishment, and positive and negative reinforcement.
S: Since psychology is a broad field, psychologists not only use these concepts and approaches but also conduct scientific research that enables them to understand
human behavior.

A) QPSR B) PQRS
C) RSQP D) SRPQ
 
Answer & Explanation Answer: A) QPSR

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 17455