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

Floating Point — Test 1

Page 1 of 2

Review Skipped Questions

0
Question 1
What does Python's 0.1 + 0.2 == 0.3 evaluate to?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 2
Which of these decimal values can be represented exactly in binary floating point?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 3
How are the 64 bits of an IEEE 754 double-precision number divided?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 4
Approximately how many significant decimal digits do float and double provide?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 5
In C++ or Java, what does the expression NaN == NaN evaluate to?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 6
In Python, what does 1.0 / 0.0 produce?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 7
In Java, what does 1.0 / 0 evaluate to?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026
Question 8
What are round(2.5) and round(0.5) in Python 3?
FPSC- Programmer (BS-17) - PMD High Yield - 2026
Question 9
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 10
What does float('inf') > 10**1000 evaluate to in Python?
FPSC- Programmer (BS-17) - Pakistan Meteorological Department (PMD) Model Papers - 2026