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

Data Types — Test 3

Page 1 of 3

Review Skipped Questions

0
Question 1
In Python 3, what are len("😊") and len("😊".encode('utf-8'))?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 2
Which statement about UTF-8 is correct?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 3
In C++, given std::string s = "abc";, what are s.length() and s.size()?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 4
For int a[3][4] stored in row-major order at base address 1000, with 4-byte ints, what is the address of a[2][1]?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 5
In which order does C/C++ store multidimensional arrays?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 6
Inside void f(int arr[10]), what does sizeof(arr) return on a 64-bit system?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 7
Is int n; cin >> n; int a[n]; standard C++?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 8
How is a Python list implemented in CPython?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 9
What is the time complexity of accessing the i-th element of a singly linked list?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 10
In the C++ declaration int* p, q;, what are the types of p and q?
FPSC- Programmer (BS-17) - PMD High Yield - 2026