Rounding Numbers in Python

Quiz
•
Computers
•
University
•
Hard
Sangameshwar Biradar
Used 16+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The value 1.73 rounded to one decimal place using the “rounding up” strategy is…
1.7
1.8
1.73
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The value -2.961 rounded to two decimal places using the “rounding down” strategy is…
-2.96
-2.97
-2.9
-2.961
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a value is truncated to 3 decimal places, which of the following is true?
Both positive and negative numbers are rounded down.
Positive numbers are rounded down and negative numbers are rounded up.
Positive numbers are rounded up and negative numbers are rounded down.
Both positive and negative numbers are rounded up.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The value -0.045 rounded to 2 decimal places using the “round half away from zero” strategy is…
-0.05
-0.04
-0.045
-0.03
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which rounding strategy does Python’s built-in round() function use?
Round half away from zero
Round half to even
Round half down
Round half up
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The value 4.65 rounded to one decimal place using the “round half to even” strategy is…
4.6
4.7
4.65
4.5
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following rounding strategies mitigates rounding bias the best?
Round half away from zero
Round half up
Truncate
Round half to even
Round down
8.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Why does round(-1.225, 2) return -1.23 when it should return -1.22?
There is a bug in Python
Trick question. round(-1.225, 2) does return -1.22!
Floating point representation error
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assume you have the following Python list:
data = [0.15, -1.45, 3.65, -7.05, 2.45]
If you round every number in data to one decimal place using the “round half up” strategy, which of the following rounding biases is introduced?
Round towards negative infinity bias
Round towards zero bias
No rounding bias is introduced
Round towards positive infinity bias
Similar Resources on Wayground
10 questions
Quiz 2: Bootstrap

Quiz
•
University
10 questions
[Term 2 Week 1&2] Understanding AI in Decision Making 2025

Quiz
•
8th Grade - University
10 questions
Daily Quiz (24.12.20)

Quiz
•
7th Grade - Professio...
10 questions
Team Foxtrot Bias AI quiz

Quiz
•
University
10 questions
Diode Quiz

Quiz
•
University
10 questions
ATwP - Problem Solving Strategies

Quiz
•
University
10 questions
Bertelsmann AI Track Quiz Initiative #1

Quiz
•
University - Professi...
10 questions
BOOTSTRAP

Quiz
•
University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University