Which of the following is a type of DBMS software?
All of these
Answer: Option D.
Consider the macro definitions: # define square(x) x*x and # define square(x) (x*x) when used in a program statement B = ++ square(C)
both macros will produce the same result
both macros will not produce same result
the second macro definition is not valid
the first macro definition is not valid
Answer: Option B. Explanation: if ++ square(C) is called the first macro gives ++x*x, and second macro gives ++(x*x)
Which of the following is not true about linked lists?
Insertion is O(n2)
Deletion is O(n)
Searching is O(n)
All of these
Answer: Option A. We maintain pointers to the node(s) at the head and tail of the linked list and so performing a traditional insertion to either the front or back of the linked list is an O(1) operation. Random insertion has complexity O(n)
Evaluate following expression: a=3, b=6,c=4,d=2 a=b>c && b-c= a+c
None of these
Answer: Option B. Substituting values we get (((3+6)>4)&&((6-4)<2))|| ((6+2)>=(3+4)) i.e. ((1)&&(0))||(1)= 1
The declarations typedef float height ; height men, women;
define men and women as 100 element floating point
define men and women as 100 floating point variables
define height, men and women as floating point variables