Quiz Space

Programming in C · End Term · 24 Dec 2023 · September 2023 term · Set 2

Question 8: Which of the following statements about array initializat…

Question 8

+4 marksOne correct option

Which of the following statements about array initialization in C is correct?

  1. A

    Arrays can only be initialized at the time of declaration.

  2. B

    Arrays can be initialized both at the time of declaration and later in theprogram.

  3. C

    Arrays can only be initialized with integer values.

  4. D

    The index of the first element in an array is always 1.

Show answer

Correct answer

  • B

    Arrays can be initialized both at the time of declaration and later in theprogram.

Question 8 of 26 in the IIT Madras BS Programming in C (Programming in C) End Term paper sat on 24 Dec 2023, in the September 2023 term (IIT M ES FOUNDATION FN EXAM FEF2 24 Dec 2023). It carries 4 marks.

This question was also asked in

More questions from this paper

  1. Q1THIS IS QUESTION PAPER FOR THE SUBJECT "FOUNDATION LEVEL : INTRODUCTION TO C PROGRAMMING (COMPUTER BASED EXAM)" ARE YOU…
  2. Q2Figure question
  3. Q3Figure question
  4. Q4Figure question
  5. Q5Figure question
  6. Q6Figure question
  7. Q7Consider an integer variable holding a value “0x89209899”. Suppose the available memory addresses are starting from the…
  8. Q9Figure question
  9. Q10Figure question
  10. Q11What will be the output of the above program?
  11. Q12Which of the following statements is true about unions in C?
  12. Q13Figure question
  13. Q14Figure question
  14. Q15Figure question
  15. Q16Figure question
  16. Q17Figure question
  17. Q18Which of the following preprocessor directives is used to define macros in C?
  18. Q19Which of the following statements is/are true regarding functions in C Language?
  19. Q20In C, which of the following is/are valid operations on pointer variables? (Select all that apply)
  20. Q21Figure question
  21. Q22Figure question
  22. Q23Figure question
  23. Q24Figure question
  24. Q25Figure question
  25. Q26Note: The answer must be an integer. For Ex: If the answer is 32, you must enter 32 only.