What is the result of the bitwise AND operator (&) when applied to 5 (0101 in binary) and 3 (0011 in binary)?

Basic C Programming - Bitwise Operators

Quiz
•
Education
•
12th Grade
•
Hard
Hafizul Hasmie
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2
6
1
4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the bitwise OR operator (|) when applied to 5 (0101 in binary) and 3 (0011 in binary)?
2
6
4
7
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the bitwise XOR operator (^) when applied to 5 (0101 in binary) and 3 (0011 in binary)?
7
6
4
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the bitwise NOT operator (~) when applied to 5 (0101 in binary)?
01
11
00
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the left shift operator (<<) when applied to 5 (0101 in binary) by 2 positions?
10
25
20
15
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the right shift operator (>>) when applied to 5 (0101 in binary) by 1 position?
4
2
6
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the bitwise AND operator (&) when applied to 12 (1100 in binary) and 9 (1001 in binary)?
4
6
10
8
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
GK Quiz

Quiz
•
11th - 12th Grade
10 questions
Research

Quiz
•
10th - 12th Grade
14 questions
Principles of & Construction Technology Quiz

Quiz
•
12th Grade
10 questions
Week 3 Assignment - Arithmetic Operator

Quiz
•
8th - 12th Grade
10 questions
Python IF Statements

Quiz
•
9th - 12th Grade
15 questions
Principles of Management - Topic 1

Quiz
•
12th Grade
15 questions
KUIS PERAWATAN MESIN

Quiz
•
10th Grade - University
14 questions
fertilization and implantation

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Education
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University