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. /Bitwise operators work on the binary digits of whole numbers. Each line below combines 6 and 3, or shifts 1, and compares the result with ==. Pick every comparison that comes out True. More than one may be right.
Python ProgrammingHardHigh School (9–10)Python Basics › Operators and ExpressionsPCEP (Python Institute)
StemPy LabCreated by StemPy Lab

Bitwise operators work on the binary digits of whole numbers. Each line below combines 6 and 3, or shifts 1, and compares the result with ==. Pick every comparison that comes out True. More than one may be right.

One or more options are correct. Tick all the correct ones: a wrong option costs marks, and a part-right answer earns part of the marks.

Log in to save
← All Quizzes
← Half of seven is turned into a whole number in two ways: by rounding it and by converting it with int(), for the positive and the negative value. What is the output?A for loop walks through a string and prints each character twice. What does the program print? →
More onPython Basics › Operators and Expressions

Discussion (0)

Log in to join the discussion.

Loading…

More questions on this topic

  1. Seven divided by seven is worked out with / and with //. The two results are compared, and then a…Medium
  2. A program splits a four-digit number into parts with // and %. What does the program print?Medium
  3. One line of arithmetic, with no brackets at all, uses the remainder operator, a product, floor…Easy
  4. A program uses the bitwise operators on two small whole numbers. What does the program print?Hard
  5. A student compares text, lists and numbers with the operators <, > and ==, and wants to know which…Advanced
All questions on this topic →

Problems on this topic

  1. A number has three digits, for example 472…Medium
  2. A student wrote these three formulas. Each one has a mistake in the brackets…Medium
  3. Work out each sum on paper, using the order of Python.Easy
  4. 5000 rupees is put in a bank at 6 percent a year, with the interest added every year…Hard
All problems on this topic →