C Programming MCQs

Sample multiple-choice questions for C Programming (C-CAT Section B). Answers and short explanations are shown for study. The complete practice bank stays inside the app.

Sample questions

Q1. What does `sizeof(int*)` typically return on a 64-bit system?

  • A. 2
  • B. 4
  • C. 8 ✓
  • D. Depends on int size

Explanation: Pointer size is architecture-dependent; 64-bit systems usually use 8 bytes.

Topic: Pointers

Q2. In C, `arr[i]` is equivalent to:

  • A. *(arr + i) ✓
  • B. *(arr) + i
  • C. &arr[i]
  • D. arr + *i

Explanation: Array indexing is pointer arithmetic: arr[i] ≡ *(arr + i).

Topic: Arrays

Q3. Default storage class of a local variable in C is:

  • A. static
  • B. extern
  • C. auto ✓
  • D. register

Explanation: Local variables have auto storage class by default.

Topic: Storage

Related notes

Practice more C Programming

Continue in the practice app for larger sets and timed modes.

Open application dashboard