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 3510
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 3509
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 3509
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 3508
Q:

Which of the following sports is most popular worldwide?

A) Football B) Hockey
C) Cricket D) Tennis
 
Answer & Explanation Answer: A) Football

Explanation:

Top five most popular games world wide are :

 

Game name              -      Estimated  fans     -    Popular Regions

 

1. Soccer / Football      -      3.5 Billion    -     Europe, Africa, Asia, America

2. Cricket                    -      2.5 Billion     -    Asia, Australia, UK

3. Basketball               -      2.2 Billion     -    US, Canada, China and Philippines

4. Field Hockey           -       2 Billion       -     Europe, Africa, Asia, Australia

5. Tennis                    -       1 Billion       -     Europe, Americas, and Asia.

Report Error

View Answer Report Error Discuss

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

1 3508
Q:

The act of formally approving something is known as Arbitration.

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:

The act of formally approving something is known as Ratification.

Report Error

View Answer Workspace Report Error Discuss

2 3508
Q:

Which type of simple sugar is found primarily in fruit?

A) Sucrose B) Fructose
C) Maltose D) Lactose
 
Answer & Explanation Answer: B) Fructose

Explanation:

The main simple sugar found in fruit is Fructose. Glucose is found naturally occurring in fruits and other plants. But fructose is sweeter than glucose and can give you more energy. That's why a piece of fruit in the morning will give you more energy than a cup of coffee!

 

Fructose is what gives most fruits that sweet flavor and in combination with the acids present in certain fruits can give a pleasantly tangy flavor.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

1 3508
Q:

Cortisol is secreted by

A) Thyroid gland B) Pituitary gland
C) Adrenal gland D) Parathyroid gland
 
Answer & Explanation Answer: C) Adrenal gland

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

6 3507