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

FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026 — Part 7 (100 Q)

Page 1 of 10

Review Skipped Questions

0
Question 1
What does this print? vector<int> v = {1, 2, 3}; for (int x : v) x *= 2; cout << v[0];
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 2
What are the sizes of v1 and v2 after vector<int> v1(5); and vector<int> v2{5};?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 3
What happens with auto s = "abc" + "def"; in C++?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 4
A base class constructor calls a virtual function that Derived overrides. When a Derived object is constructed, which version runs?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 5
What is 'object slicing' in C++?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 6
In what order are data members initialized?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 7
In what order are local objects a, b, and c destroyed, given they were constructed in that order?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 8
What does the 'Rule of Three' state?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 9
Which of these operators can NOT be overloaded in C++?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 10
Given #define SQUARE(x) x*x, what is the value of SQUARE(2+3)?
FPSC- Programmer (BS-17) - PMD High Yield - 2026