60:00
0/10 Attempted
Your Progress
Attempted 0
Correct 0
Incorrect 0
Skipped 0
Score 0
Marks 0

Fundamental Programming — Test 4

Page 1 of 1

Review Skipped Questions

0
Question 1
Which description best defines encapsulation?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 2
Which language is primarily declarative?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 3
In Visual Basic, code runs in response to user actions such as button clicks. Which paradigm is this?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 4
According to the structured program theorem (Böhm–Jacopini), which three control structures are sufficient for any algorithm?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 5
What best describes Python's type system?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 6
What does f() return? def f(): try: return 1 finally: return 2
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 7
In a C++ try block that can throw a Derived exception (where Derived inherits from Base), what is the correct order of catch blocks?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 8
In Python, which exception is NOT caught by except Exception:?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 9
When does the else block of a Python try/except/else statement run?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 10
In C++, what happens when int a[5]; a[7] = 3; is executed?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026