HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Quizzes
  2. /A program turns four floats into whole numbers, three with round() and one with int(). What does the program print?
Python ProgrammingHardHigh School (9–10)Python Basics › Variables and Data TypesPCEP (Python Institute)
StemPy LabCreated by StemPy Lab

A program turns four floats into whole numbers, three with round() and one with int(). print(round(2.5), round(3.5), round(-1.5), int(-1.7)) What does the program print?

Log in to save
← All Quizzes
← Whole numbers can be written in binary, octal or hexadecimal, and with underscores. A student checks five statements about such literals. Which of these expressions are True? Choose every correct option.A function picks a word for a temperature with if, elif and a final return. What does the program print? →
More onPython Basics › Variables and Data Types

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. Whole numbers can be written in binary, octal or hexadecimal, and with underscores. A student…Medium
  2. Two names get new values in one assignment, and the new value of b uses a. What does the program…Easy
  3. A student turns values into numbers with int() and float(). Each line below is tried on its own.…Hard
  4. A program holds a number as text, and multiplies it in two ways. What does the program print?Easy
  5. Half of seven is turned into a whole number in two ways: by rounding it and by converting it with…Medium
All questions on this topic →

Problems on this topic

  1. Each of these three programs stops with an error…Easy
  2. Say what the type of each result is, and what value it has. Decide on paper first.Medium
  3. A student wants to swap a and b, and writes…Easy
  4. Trace the programMedium
All problems on this topic →