Here are a few multiple-choice questions (MCQs) that could be useful for beginners learning Java or Python:
Java
A. int x;
B. x = int;
C. int = x;
D. x: int;
Answer: A (int x;
)
A. int
B. float
C. double
D. string
Answer: D (string
)
Python
x = 5 y = 6 print(x + y)
A. 11
B. 5
C. 6
D. None of the above
Answer: A (11)
A. int
B. float
C. double
D. tuple
Answer: C (double
)