πŸ“Š Programming for Problem Solving
Q. What is maximum dimension that array can have in c programming?
  • (A) 2
  • (B) 4
  • (C) Theoretically No Limit but practically limit depends on memory
  • (D) 3
πŸ’¬ Discuss
βœ… Correct Answer: (C) Theoretically No Limit but practically limit depends on memory
πŸ“Š Programming for Problem Solving
Q. Array is ______ data type in C Programming language.
  • (A) Custom Data Type
  • (B) Primitive Data Type
  • (C) None of these
  • (D) Derived Data Type
πŸ’¬ Discuss
βœ… Correct Answer: (D) Derived Data Type
πŸ“Š Programming for Problem Solving
Q. What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
  • (A) The element will be set to 0.
  • (B) The compiler would report an error.
  • (C) The array size would appropriately grow.
  • (D) The program may crash if some important data gets overwritten.
πŸ’¬ Discuss
βœ… Correct Answer: (D) The program may crash if some important data gets overwritten.
πŸ“Š Programming for Problem Solving
Q. If you pass an array as an argument to a function, what actually gets passed?
  • (A) Base address of the array
  • (B) Value of elements in array
  • (C) First element of the array
  • (D) Address of the last element of array
πŸ’¬ Discuss
βœ… Correct Answer: (A) Base address of the array

Jump to