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 3492
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 3491
Q:

What was the northwestern border of the Mughal Empire during the reign of Akbar?

A) Punjab B) Hindukush
C) Kabul D) Sindh
 
Answer & Explanation Answer: B) Hindukush

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

0 3491
Q:

The project life cycle can be broken into five phases that tend to overlap with each other frm one phase to another;however ,the control phase does not overlap with a specific phase. why?

A) Change control management is seperate from the other phases B) Change control management has a plan that can be usede throughout the initiation, planning, execution, and closeout of the project
C) Because the project sponsor is responsible for change control management , the project manager is not involved with that phase of the project D) Change control extends throughout the entire project from initiation to closeout
 
Answer & Explanation Answer: D) Change control extends throughout the entire project from initiation to closeout

Explanation:

Change control management is utilized from the begining to the end of the project in order to keep it focused with an emphasis on the time and budget. Answer A is incorrect because change control management is not seperate from the other phases. Answer B is incorrect because the control plan must be throughout the other phases of a project. Its usage is not optional, and consistent utilization is imperative to managing scope creep and other scope expansions. Answer C is incorrect because the project sponsors is generally not responsible for the change control documentation, although it should be involved in the buy-in and approval process.

Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

0 3490
Q:

If people sleep in closed rooms where charcoal fire is burning , they die due to 

A) carbon monoxide B) carbon dioxide
C) methane D) phosgene
 
Answer & Explanation Answer: A) carbon monoxide

Explanation:

A closed room is aplace where charcoal is burnt in limited supply of air. There is every chance for the formation of the deadly poisonous carbon monoxide, which when inhaled, reacts with the iron in haemoglobin of blood and prevents the supply of oxygen. It is said to be treacherous as there can be no previous warning of its presence because it is an odourless and colourless gas.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

2 3490
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 3490
Q:

Which of the following is a Heterogeneous Mixture?

A) Air B) Table salt
C) Soda D) Brass
 
Answer & Explanation Answer: C) Soda

Explanation:

Here Soda is a Heterogenous Mixture.

 

A Heterogeneous Mixture is a mixture having a non-uniform composition i.e, the mixture contains components in different phases. Using various means, the parts in the mixture can be separated from one another.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank PO

9 3489
Q:

In electro - magnetic radiation, which of the following has greater wave - length than visible light

A) Ultra -violet rays B) Infra - red rays
C) Cosmic rays D) x-rays
 
Answer & Explanation Answer: B) Infra - red rays

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

7 3488