Questions

Q:

In the context of memory management, what are placement and replacement algorithms?

Answer

Placement algorithms determine where in available real-memory to load a program. Common methods are first-fit, next-fit, best-fit. Replacement algorithms are used when memory is full, and one process (or part of a process) needs to be swapped out to accommodate a new program. The replacement algorithm determines which are the partitions to be swapped out.

Report Error

View answer Workspace Report Error Discuss

3 3509
Q:

What will be output of following c code?

void main()
{
struct bitfield
{
unsigned a:5;
unsigned c:5;
unsigned b:6;

}bit;
char *p;
struct bitfield *ptr,bit1={1,3,3};
p=&bit1;
p++;
clrscr();
printf("%d",*p);
getch();
}

Answer

Output: 12

Explanation:
Binary value of a=1 is 00001 (in 5 bit)
Binary value of b=3 is 00011 (in 5 bit)
Binary value of c=3 is 000011 (in 6 bit)

In memory it is represented as:
Let address of bit1 is 500 which initialize to char pointer p. Since can is one byte data type so p++ will be 501. *p means content of memory location 501 which is (00001100) and its binary equivalent is 12. Hence output is 12.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3508
Q:

Who is the First Indian to win a medal in badminton at the Olympics ?

Answer

Saina Nehwal

Report Error

View answer Workspace Report Error Discuss

16 3508
Q:

Radio waves sent out by a radio stations are reflected by

A) troposphere B) stratosphere
C) mesosphere D) ionosphere
 
Answer & Explanation Answer: D) ionosphere

Explanation:

This is a layer of atmosphere about 60 to 70 km above the earth and extends to about 400km. It contains ionised particles which can reflect radio waves making radio communication round the world possible.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

2 3507
Q:

The average salinity of seawater is

A) 35% B) 3.5%
C) 3% D) 2.5%
 
Answer & Explanation Answer: B) 3.5%

Explanation:

Seawater or salt water is water from a sea or ocean.

On average, seawater in the world's oceans has a salinity of approximately 3.5% or 35 parts per thousand. This means that for every 1 litre (1000 mL) of seawater there are 35 grams of salts dissolved in it.

 

Hence, The average salinity of seawater is 3.5%.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

5 3506
Q:

The United Nation declared 2005-2015 as the International Decade for

A) Water for Life Decade B) Bone and Joint Decade
C) Second International Decade for the Eradication of colonialism D) International Decade for Natural Disaster Rreduction
 
Answer & Explanation Answer: A) Water for Life Decade

Explanation:
Report Error

View Answer Report Error Discuss

0 3506
Q:

Who is the author of the book "The Alchemist"?

A) Agatha Christie B) Paulo Ceolho
C) Frankenstien D) None
 
Answer & Explanation Answer: B) Paulo Ceolho

Explanation:

Paulo Ceolho is the author of The Alchemist

Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3506
Q:

National Dairy Research Institute is located at

A) Ludhiana B) Karnal
C) Pantnagar D) Hyderabad
 
Answer & Explanation Answer: B) Karnal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

4 3505