Programming Fundamentals 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
Q1easy
What is a Transpiler (Source-to-Source Compiler)?
Q2easy
What is the primary advantage of a Managed Language (like Java or C# with a Virtual Machine/CLR) over an Unmanaged Language (like C++)?
Q3medium
You are using a language that uses a Just-In-Time (JIT) compiler. When does the actual machine code generation happen?
Q4medium
During compilation, the compiler finds a line of code: if (x == 5) { y = 10 } but notices the closing ) is missing. Which phase of the compiler detects this?
Q5medium
(Code-Tracing / Logic) In a Weakly Typed language like JavaScript, what is the likely result of the expression: "5" + 2?
Q6medium
A language that requires you to declare int x = 5; and throws an error if you try to assign x = "Hello"; later is best described as:
Q7medium
In the software build process, which stage is responsible for combining multiple object files and libraries into a single executable file?
Q8hard
(Code Output / Logic) Trace the logic in this pseudocode:

x = "100"
y = 50
print(x + y)
If the language is Strongly Typed (like Python), what happens?
Q9easy
What is "Semantic Analysis" in the compilation process?
Q10medium
A developer is writing a high-performance graphics engine where every millisecond of CPU time matters. Which type of language should they prioritize?