Translation & Execution — Test 1
Page 1 of 2
Question 1
Which statement about an interpreter is correct?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 2
How does the standard CPython implementation run a .py file?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 3
In a C++ build, which component resolves calls to functions defined in other object files or libraries?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 4
What is the correct order of stages when building a C++ program?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 5
A program declares a function prototype and calls it, but the function body is never defined anywhere. When is the 'undefined reference' error reported?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 6
What does #include <iostream> do in C++?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 7
What does a JIT (Just-In-Time) compiler do?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 8
A compiler running on Windows x86 generates executables for an ARM microcontroller. What is it called?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 9
A program compiles and runs without crashing, but it reports the average of 10 numbers incorrectly because it divides by 9. What kind of error is this?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 10
In standard C++, what happens when an integer is divided by zero (int x = 5 / y; with y == 0)?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026