Data Types & Variables MCQs

Topic-wise practice questions for Programming (C++ / Java / Python). Test your knowledge, check solutions on demand, and pace your preparation.

Zero-leak answer engine • Rate-limited explanations
Practice in Timed Mode
Q11easy
What is a "Wrapper Class" in Java (e.g., Integer for int)?
Q12easy
What is the value of result?

int x = 10;
float y = 4.0f;
auto result = x / y;
(Using C++/Java logic where auto or var infers the type)
Q13easy
What is the output of this code?

char c = 'A';
print(c + 1);
Assuming 'A' has an ASCII value of 65:
Q14easy
What is the difference between NULL (C++) and null (Java/C#)?
Q15easy
What is the effect of the static keyword on a variable declared inside a class?