Q. In C++ Overloading is otherwise called as

  • (A) virtual polymorphism
  • (B) transient polymorphism
  • (C) pseudo polymorphism
  • (D) ad –hoc polymorphism
πŸ’¬ Discuss
βœ… Correct Answer: (D) ad –hoc polymorphism

Q. The maximum number of dimension an array can have in C is

  • (A) 3
  • (B) 5
  • (C) 6
  • (D) Compiler dependent
πŸ’¬ Discuss
βœ… Correct Answer: (D) Compiler dependent

Q. Which of the following feature of ‘C’ language is meant to provide reliable access to special memory locations

  • (A) static_const
  • (B) Pragma
  • (C) Volatile
  • (D) immutable
πŸ’¬ Discuss
βœ… Correct Answer: (C) Volatile

Q. Which of the following are syntactically correct in C language

  • (A) for();
  • (B) for (;);
  • (C) for (,);
  • (D) for (; ;);
πŸ’¬ Discuss
βœ… Correct Answer: (D) for (; ;);

Q. In C language a << 1 is equivalent to

  • (A) multiplying a by 2
  • (B) dividing a by 2
  • (C) adding 2 to a
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) none of these

Q. The following statement in‘C’ language : int **a ;

  • (A) is illegal
  • (B) is legal but meaningless
  • (C) syntactically and semantically is correct
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) syntactically and semantically is correct

Q. ______ is an example of compile time polymorphism

  • (A) Virtual function
  • (B) Member function
  • (C) Function overloading
  • (D) Friend function
πŸ’¬ Discuss
βœ… Correct Answer: (C) Function overloading

Q. Short int means

  • (A) Qualifier
  • (B) Short is the qualifier and int is the basic data type
  • (C) data type
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Short is the qualifier and int is the basic data type

Q. What will be the output of following c program?

Code:
int main() { 
unsigned int i=65000; 
while ( i++ != 0 ); 
printf("%d",i); 
return 0; 
}
  • (A) Output: 1
  • (B) Output: 2
  • (C) Output: 0
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) Output: 1

Q. What are Nibble, Word and Byte in computer language.?

  • (A) Byte = 8 bits, Word=24 bits, Nibble=40 Bits
  • (B) Byte = 8 bits, Word=12 bits, Nibble=32 Bits
  • (C) Byte = 8 bits, Word=2 Bytes, Nibble=4 Bytes
  • (D) Byte = 8 bits, Word= 4 Bytes, Nibble= 8 Bytes
πŸ’¬ Discuss
βœ… Correct Answer: (C) Byte = 8 bits, Word=2 Bytes, Nibble=4 Bytes