Technical Questions

Q:

What is the resident set and working set of a process?

Answer

Resident set is that portion of the process image that is actually in real-memory at a particular instant. Working set is that subset of resident set that is actually needed for execution. (Relate this to the variable-window size method for swapping techniques.)

Report Error

View answer Workspace Report Error Discuss

1 6507
Q:

We want to round off x, a Float to an Int value. The correct way to do so would be

A) Y = ( int ) ( x + 0.5 ) ; B) Y = int ( x + 0.5) ;
C) Y = ( int ) x + 0.5; D) Y = ( int ) ( ( int ) x + 0.5 )
 
Answer & Explanation Answer: A) Y = ( int ) ( x + 0.5 ) ;

Explanation:

Rounding off a value means replacing it by a nearest value that is approximately equal or smaller or greater to the given number.

 

y = (int)(x + 0.5); here x is any float value. To roundoff, we have to typecast the value of x by using (int)

 

Example:

 

#include

 

int main ()

 

{

 

  float x = 2.6;

 

  int y = (int)(x + 0.5);

 

  printf ("Result = %d\n", y );

 

  return 0;

 

}

 

Result : 3

Report Error

View Answer Report Error Discuss

Filed Under: Programming

3 6429
Q:

Which physical connection is the fastest?

A) Coaxial cable B) Infrared
C) Microwave D) Fiber-optic
 
Answer & Explanation Answer: D) Fiber-optic

Explanation:

Fiber-optic physical or wired connection is the fastest communication connection.

Report Error

View Answer Report Error Discuss

4 6376
Q:

What is process spawning?

Answer

When the OS at the explicit request of another process creates a process, this action is called process spawning.

Report Error

View answer Workspace Report Error Discuss

4 6340
Q:

 A reason for using an SQL view to hide columns is:

A) to simplify a result only. B) to prevent the display of sensitive data only.
C) to accomplish both of the above. D) None of the above are reasons for using an SQL view.
 
Answer & Explanation Answer: C) to accomplish both of the above.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

1 6289
Q:

What is busy waiting?

Answer

The repeated execution of a loop of code while waiting for an event to occur is called busy-waiting. The CPU is not engaged in any real productive activity during this period, and the process does not progress toward completion.

Report Error

View answer Workspace Report Error Discuss

9 6274
Q:

The PS command prints the process status for only some of the running processes.

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

Explanation:

The PS command prints the process status for some or all of the running processes

Report Error

View Answer Workspace Report Error Discuss

Subject: Operating Systems
Exam Prep: GATE

1 6248
Q:

The list of coded instructions is called

A) Algorithm B) Flowchart
C) Utility programs D) Computer program
 
Answer & Explanation Answer: D) Computer program

Explanation:


A computer program is a collection of instructions that performs a specific task when executed by a computer

Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems
Exam Prep: GRE , TOEFL
Job Role: Database Administration , IT Trainer

46 6043