Technical Questions

Q:

There is a mistake in the following code. Add a statement in it to remove it.

main()

{

     int a;

     a = f (10, 3.14) ;

     printf ( " %d ", a );

}

f (int aa, float bb)

{

    return ( ( float ) aa + bb );

}

Answer

Add the following function prototype in main ():


float f ( int, float );

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2897
Q:

Differentiate between Complier and Interpreter?

Answer

An interpreter reads one instruction at a time and carries out the actions implied by that instruction. It does not perform any translation. But a compiler translates the entire instructions

Report Error

View answer Workspace Report Error Discuss

0 2896
Q:

Point out the error, if any, in the while loop.

main()

{

  int i = 1;

  while ()

  {

     printf ( "%d", i++);

     if (i >10) 

     break ;

   }

}

Answer

The condition in the while loop is a must.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2894
Q:

The no of entities participating in a relation is called

A) Relation B) Degree of relationship
C) Recursive relationship D) None of the above
 
Answer & Explanation Answer: B) Degree of relationship

Explanation:

The no of entities participating in relation is called Degree of relationship

Report Error

View Answer Report Error Discuss

Filed Under: Database
Job Role: Database Administration

0 2892
Q:

SNOBOL is mainly used for

A) Text Operation B) String operations
C) List operations D) Numerical operations
 
Answer & Explanation Answer: B) String operations

Explanation:

SNOBOL is a high-level computer programming language used especially in manipulating textual data. It is mainly used for string operations and was developed between 1962 and 1967.

Report Error

View Answer Report Error Discuss

11 2862
Q:

Which among the following is the disadvantage of circular list?

A) An info field that contains the information stored in the node B) Can’t traverse the list backward
C) A pointer to the node is given we cannot delete the node D) Both 2 and 3
 
Answer & Explanation Answer: D) Both 2 and 3

Explanation:

Both 2 and 3 are clearly the diadvantages of circular list

Report Error

View Answer Report Error Discuss

Filed Under: Database
Job Role: Database Administration

0 2834
Q:

What is Tri-state logic?

Answer

Three Logic Levels are used and they are High, Low, HIgh impedance state. The high and low are normal logic levels & high impedance state is electrical open circuit conditions. Tri-state logic has a third line called enable line.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2828
Q:

Have you studied buses? What types?

Answer

There are three types of buses.


Address bus: This is used to carry the Address to the memory to fetch either Instruction or Data.


Data bus: This is used to carry the Data from the memory.


Control bus: This is used to carry the Control signals like RD/WR, Select etc.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2824