C Programming: MCQ Set – 03

Q21: A template stores

  • (A) Styles, macros
  • (B) Auto Text entires, Customized word command Settings
  • (C) Graphics, text
  • (D) Graphics, text

Q22: Which technology is used in optical disks?

  • (A) Mechanical
  • (B) Electrical
  • (C) Electro Magnetic
  • (D) Laser

Q23: C is often called

  • (A) Object oriented language
  • (B) High level language
  • (C) Assembly language
  • (D) Machine level language

Q24: Any integer composed of 3^n identical digits divisible by

  • (A) 2n
  • (B) 3n
  • (C) 5n
  • (D) 7n

Q25: The machine registers are sometimes called

  • (A) Local variables
  • (B) Global variables
  • (C) Accumulators
  • (D) Static variables

Q26: Which one of the following will set the value of y to 5 if x has the value 3, but not otherwise ?

  • (A) if (x = 3) y = 5
  • (B) if x = = 3 (y = 5)
  • (C) if (x = = 3); y = 5
  • (D) if (x = = 3) y = 5

Q27: The maximum value that an integer constant can have is

  • (A) -32767
  • (B) 32767
  • (C) 1.7014e+38
  • (D) -1.7014e+38

Q28: What would be output of the following program, if the array begins at 65486?

main()
{
int arr[ ] = {12, 14, 15, 23, 45};
printf(“%u%u”, arr+1, &arr+1);
}
  • (A) 65486, 65486
  • (B) 65488, 65488
  • (C) 65488, 65496
  • (D) None of the above

Q29: What will be the output of the following program?

main()
{
int i = 5;
printf(“%d”, i=++i==6);
}
  • (A) 0
  • (B) 1
  • (C) 7
  • (D) 6

Q30: In a full binary tree if the number of nodes is 15 than he height of the tree is

  • (A) 2
  • (B) 3
  • (C) 4
  • (D) 5

Answer:

QuestionQ21Q22Q23Q24Q25Q26Q27Q28Q29Q30
AnswerADBBADBCBB

≪ Previous | Next ≫