Bitwise Masks

Bitwise Masks

12th Grade

15 Qs

quiz-placeholder

Similar activities

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

ZOOM QUIZ

ZOOM QUIZ

1st - 12th Grade

10 Qs

loop while/do while

loop while/do while

7th - 12th Grade

10 Qs

ICT WEBINAR QUIZ

ICT WEBINAR QUIZ

KG - Professional Development

20 Qs

Quiz - Quarter 4 (Oracle)

Quiz - Quarter 4 (Oracle)

12th Grade

10 Qs

EMPTECH L4 Q3

EMPTECH L4 Q3

12th Grade

10 Qs

Bitwise Masks

Bitwise Masks

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

Deyshon Allison

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the AND bitwise operator do?

Compares 2 bits and returns 1 if both are 1, otherwise returns 0

Shifts all bits to the left by one position

Inverts all the bits in a byte

Compares 2 bits and returns 1 if either of them is 1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of a SHIFT RIGHT operation?

Inverts the bits

Equivalent of dividing by 2

Discards the leftmost bit and adds a 0 on the left

Equivalent of multiplying by 2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you reset bits to 0 using bitwise operators?

Using the SHIFT LEFT operator

Using the AND operator with a suitable mask

Using the XOR operator with a suitable mask

Using the OR operator with a suitable mask

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of using masks in bitwise operations?

To test or alter specific bits in a piece of data

To multiply numbers

To add two numbers

To invert all bits

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the XOR bitwise operator do?

Returns 1 if both bits are 1

Returns 1 if both bits are different

Shifts all bits to the right

Inverts the least significant bit

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the OR bitwise operation 10001000 | 11000001?

10001001

11001000

10000000

11001001

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you turn on a specific bit using bitwise operations?

Using the SHIFT RIGHT operator

Using the COMPLEMENT operator

Using the AND operator with a mask

Using the OR operator with a suitable mask

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?