Q. The default parameter passing method used in C++ is ____________.

  • (A) call by reference
  • (B) call by value
  • (C) call by name
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) call by value

Q. The difference between memory and storage is that memory is __________________ and storage is __________.

  • (A) temporary, permanent
  • (B) permanent,temporary
  • (C) slow,fast
  • (D) all of above
πŸ’¬ Discuss
βœ… Correct Answer: (A) temporary, permanent

Q. What is relationship between reliability and failure?

  • (A) direct relation
  • (B) inverse relation
  • (C) no relation
  • (D) varying relationdepending upon the situation
πŸ’¬ Discuss
βœ… Correct Answer: (B) inverse relation

Q. Language efficiency can be achieved by ___________.

  • (A) maximum speed
  • (B) less memory consumption
  • (C) reusability
  • (D) all of these
πŸ’¬ Discuss
βœ… Correct Answer: (D) all of these

Q. Programming language FOTRAN stands for:

  • (A) free translator
  • (B) formula translator
  • (C) formula translation
  • (D) free translation
πŸ’¬ Discuss
βœ… Correct Answer: (B) formula translator

Q. The full form of BNF is_____________.

  • (A) beginning normal form
  • (B) backus naur form
  • (C) best normal form
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) backus naur form

Q. Semantic of a program means-

  • (A) format of a program
  • (B) meaning of a program
  • (C) simply content of a program
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (B) meaning of a program

Q. What is the output of the following code?
Int main(void)
{
char name = 'P';
'P' = 10;
return 0;
}

  • (A) name will contain value 10
  • (B) p will contain 10
  • (C) syntax error
  • (D) none of these
πŸ’¬ Discuss
βœ… Correct Answer: (C) syntax error

Q. Which of the following represents correct syntax for function declaration?

  • (A) int sum(int,int);
  • (B) int sum(int,int){}
  • (C) int sum;
  • (D) both a and c
πŸ’¬ Discuss
βœ… Correct Answer: (A) int sum(int,int);

Jump to