Number Systems Quiz

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

What is the decimal equivalent of the binary number $101101$?

  • 45
  • 49
  • 47 (correct)
  • 43

What is the hexadecimal equivalent of the decimal number 255?

  • FF (correct)
  • FA
  • FD
  • F7

What is the binary equivalent of the hexadecimal number $3A$?

  • 11100
  • 11110 (correct)
  • 11111
  • 11101

What is the decimal equivalent of the binary number $11101101$?

<p>253 (B)</p> Signup and view all the answers

What is the hexadecimal equivalent of the binary number $1101101111$?

<p>DF (D)</p> Signup and view all the answers

What is the result of the expression $7 // 3$?

<p>2 (C)</p> Signup and view all the answers

Which function can be used to calculate the factorial of a number?

<p>math.factorial() (B)</p> Signup and view all the answers

What is the value of $x$ in the equation $3 * x = 15$?

<p>5 (B)</p> Signup and view all the answers

Which data type is used to store the value 3.14?

<p>Float (D)</p> Signup and view all the answers

What is the result of the expression $12 % 5$?

<p>2 (B)</p> Signup and view all the answers

Flashcards

Binary 101101 to Decimal

The decimal equivalent of the binary number 101101 is 45.

Decimal 255 to Hexadecimal

The hexadecimal equivalent of the decimal number 255 is FF.

Hexadecimal 3A to Binary

The binary equivalent of the hexadecimal number 3A is 111010.

Binary 11101101 to Decimal

The decimal equivalent of the binary number 11101101 is 237.

Signup and view all the flashcards

Binary 1101101111 to Hexadecimal

The hexadecimal equivalent of the binary number 1101101111 is DB.

Signup and view all the flashcards

What does // do?

The floor division operator // returns the integer part of the division.

Signup and view all the flashcards

Factorial function

math.factorial() calculates the factorial of a number.

Signup and view all the flashcards

Solve for x where 3 * x = 15

In the equation 3 * x = 15 , the value of x is 5.

Signup and view all the flashcards

Data type for 3.14

The float data type is used to store numbers with decimal points, like 3.14.

Signup and view all the flashcards

What does % do?

The modulus operator % returns the remainder of a division. 12 % 5 equals 2.

Signup and view all the flashcards

More Like This

Use Quizgecko on...
Browser
Browser