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

FPSC- Programmer (BS-17) - PMD High Yield - 2026 — Test 2

Page 1 of 3

Review Skipped Questions

0
Question 1
What does f() return? def f(): try: return 1 finally: return 2
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 2
In Python, which exception is NOT caught by except Exception:?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 3
What does the C++ standard guarantee about the size of int?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 4
In VB6 (classic Visual Basic), what are the sizes of Integer and Long?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 5
What is the range of an 8-bit signed integer in two's complement?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 6
What is the 8-bit two's complement representation of -5?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 7
In C++, what happens when a signed int overflows (for example, INT_MAX + 1)?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 8
What does this C++ code print? if (-1 < 1u) cout << "yes"; else cout << "no";
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 9
How is the decimal number 25 represented in BCD (Binary Coded Decimal)?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 10
In C/C++, what is the decimal value of the literal 017?
FPSC- Programmer (BS-17) - PMD High Yield - 2026