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

0 — Test 602

Page 1 of 3

Review Skipped Questions

0
Question 1
What are the lookup complexities of std::map and std::unordered_map?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 2
Why can using an iterator after vector::push_back be dangerous?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 3
Which statement about std::unique_ptr is correct?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 4
Two objects hold shared_ptr references to each other. What happens when they go out of scope?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 5
In a C++ lambda, what is the difference between [=] and [&]?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 6
What may a const member function such as int get() const; do?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 7
What happens if an exception escapes a destructor during stack unwinding from another exception?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 8
What does main() return in C++ if it reaches the end without a return statement?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 9
What is the difference between std::endl and '\n'?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 10
After cin >> age; the program calls getline(cin, name); and name comes out empty. Why?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026