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 uses the bitwise operators on two small whole numbers. What does the program print?
Python ProgrammingHardHigh School (9–10)Python Basics › Operators and ExpressionsPCEP (Python Institute)
StemPy LabCreated by StemPy Lab

A program uses the bitwise operators on two small whole numbers. x = 6 y = 3 print(x & y, x | y, x ^ y, ~x, x << 1 >> 2) What does the program print?

Log in to save
← All Quizzes
← A while loop adds up the digits of a number, from the right. The loop has a break and an else block. What does the program print?A word is changed with replace() and searched with rfind() and find(). Then two of its letters are changed with ord() and chr(). 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. Bitwise operators work on the binary digits of whole numbers. Each line below combines 6 and 3, or…Hard
  4. One line of arithmetic, with no brackets at all, uses the remainder operator, a product, floor…Easy
  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 →