Questions

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

20 18033
Q:

How many members were Initially  there in the Constituent assembly of India

A) 300 B) 304
C) 308 D) 310
 
Answer & Explanation Answer: A) 300

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

42 18033
Q:

 For what purposes are views used?

A) To hide rows only B) To hide columns only
C) To hide complicated SQL statements only D) All of the above are uses for SQL views.
 
Answer & Explanation Answer: D) All of the above are uses for SQL views.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

13 18031
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 18016
Q:

In an economy , the sectors are classified into public and private on the basis of

A) employment conditions B) nature of economic activities
C) ownership of enterprises D) use of raw materials
 
Answer & Explanation Answer: C) ownership of enterprises

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

31 18008
Q:

Dr. M.S.Subbalakshmi has distinguished herself in the field of 

A) Kathak B) Bharathanatyam
C) Playing Violin D) Vocal Music
 
Answer & Explanation Answer: D) Vocal Music

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

61 18001
Q:

Tansen, a great musician of his time, was in the court of –

A) Akbar B) Shahjahan
C) Bahadur Shah D) Jahangir
 
Answer & Explanation Answer: A) Akbar

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

261 17980
Q:

What will be output when you will execute following c code?

#include <stdio.h>
enum actor

{
    SeanPenn=5,
    AlPacino=-2,
    GaryOldman,
    EdNorton
};
void main()

{
     enum actor a=0;
     switch(a)

      {
         case SeanPenn:  printf("Kevin Spacey");
                         break;
         case AlPacino:  printf("Paul Giamatti");
                         break;
         case GaryOldman:printf("Donald Shuterland");
                         break;
         case EdNorton:  printf("Johnny Depp");
      } 
}

A) Kevin Spacey B) Paul Giamatti
C) Donald Shuterland D) Johnny Depp
 
Answer & Explanation Answer: D) Johnny Depp

Explanation:

Default value of enum constant
GaryOldman = -2 +1 = -1
And default value of enum constant
EdNorton = -1 + 1 = 0
Note: Case expression can be enum constant.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

1 17974