Q: Which function is the entry point of a C program?
T: Basics
A: start()
B: main()
C: init()
D: run()
ANS: B

Q: What does sizeof(char) always evaluate to?
T: Basics
A: 1
B: 2
C: 4
D: It depends on the compiler
ANS: A

Q: Which operator gives the address of a variable?
T: Pointers
A: *
B: ->
C: &
D: %
ANS: C

Q: What does malloc return when it fails?
T: Memory
A: 0 bytes
B: -1
C: EOF
D: NULL
ANS: D

Q: Which header declares strlen?
T: Strings
A: <string.h>
B: <stdio.h>
C: <stdlib.h>
D: <ctype.h>
ANS: A

Q: What is 7 / 2 when both operands are int?
T: Operators
A: 3.5
B: 4
C: 3
D: 3.0
ANS: C

Q: Which loop always runs its body at least once?
T: Basics
A: for
B: while
C: do-while
D: none of them
ANS: C

Q: What value terminates every C string?
T: Strings
A: '\n'
B: '\0'
C: ' '
D: EOF
ANS: B

Q: Which function releases memory allocated with malloc?
T: Memory
A: delete
B: release
C: free
D: dealloc
ANS: C

Q: In int *p = arr; what does *(p + 2) refer to?
T: Pointers
A: arr[2]
B: arr[0] + 2
C: the address of arr
D: arr[1]
ANS: A
