Wednesday, 17 December 2014

Programming Quiz-33

Q1) Max value of SIGNED int?

a. 2^31
b. 2^31 -1
c. 2^32
d. 2^32 -1


Answer: B






Q2) What does extern means in a function declaration?


a. the funct has global scope
b. the funct need not be defined
c. nothing really
d. the funct has local scope only to the file it is defined in
e. none of the above

Answer: C


Q3) When does a stack member will be initialized?

a. when object is created
b. when object is initialised.
c. does not depend on object.
d. none.

Answer: C


Q4) Which operator cannot be overloaded in C++ ?

a. +
b. ++
c. *
d. .

Answer: D



Q5) What is the size of the stack ?
fact(int x)
 {
  int n;
  n=x;
  return fact(x-1);
 }
 
a. infinity
b. n
c. n*(n-1)
d. depends on compiler and processor used.

Answer: B


No comments:

Post a Comment