Data Types — Test 2
Page 1 of 3
Question 1
How are the 64 bits of an IEEE 754 double-precision number divided?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 2
Approximately how many significant decimal digits do float and double provide?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 3
In C++ or Java, what does the expression NaN == NaN evaluate to?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 4
In Python, what does 1.0 / 0.0 produce?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 5
In Java, what does 1.0 / 0 evaluate to?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 6
What are round(2.5) and round(0.5) in Python 3?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 7
In C++, given float f = 0.1f; double d = 0.1;, what does f == d evaluate to?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 8
What does float('inf') > 10**1000 evaluate to in Python?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 9
What is -7.0 // 2 in Python?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 10
What is type(1e20) in Python?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026