Technical Questions

Q:

Rewrite the following set of statements using conditional operators.

int a =1, b ;

if ( a > 10 )

b = 20; 

Answer

int a = 1, b , dummy;


a > 10 ? b = 20 : dummy =1;


 


Note that the following would not have worked:


a > 10 ? b = 20 : ;;


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

3 5030
Q:

Gateway-to-Gateway protocol is a protocol formerly used to exchange routing information between Internet core routers.

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

Explanation:

It is a protocol formerly used to exchange routing information between Internet core routers.

Report Error

View Answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

1 5029
Q:

 A composite attribute is which of the following?

A) An attribute that can be broken into components B) An attribute that cannot be broken into components
C) Multiple attributes D) An identifier
 
Answer & Explanation Answer: A) An attribute that can be broken into components

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 5005
Q:

How are the wait/signal operations for monitor different from those for semaphores?

Answer

If a process in a monitor signal and no task is waiting on the condition variable, the signal is lost. So this allows easier program design. Whereas in semaphores, every operation affects the value of the semaphore, so the wait and signal operations should be perfectly balanced in the program.

Report Error

View answer Workspace Report Error Discuss

1 5000
Q:

 To drop a column that is used as a foreign key, first:

A) drop the primary key. B) drop the table containing the foreign key..
C) drop the foreign key constraint. D) All of the above must be done.
 
Answer & Explanation Answer: C) drop the foreign key constraint.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 4991
Q:

Which among the following is not aprocess state in unix?

A) Running B) Runnable
C) Zombie D) Stopped
 
Answer & Explanation Answer: B) Runnable

Explanation:

The process states of unix are running,Zombie,stopped,Waiting.

Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems
Exam Prep: GATE

7 4952
Q:

Which processor structure is pipe lined?

Answer

All x86 processors have pipelined structure.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

5 4937
Q:

What's the difference between the functions rand(), random(), srand() and randomize()?

Answer

rand()  returns a random number


random()  returns a random number in a specified range


srand()  initialise a random number generator with a given seed value


randomize()   initializes a random number generator with a random value based o time.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

2 4894