What is a logical shift in computer science?

Understanding Logical and Arithmetic Shifts

Quiz
•
Information Technology (IT)
•
9th Grade
•
Medium

Julie Yarwood
Used 1+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A shift operation that preserves the sign bit
A shift operation that moves bits to the left or right, filling the vacated bit positions with zeros
A shift operation that multiplies or divides a number by two
A shift operation that rotates bits around
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an arithmetic shift in computer science?
A shift operation that moves bits to the left or right, preserving the sign bit
A shift operation that fills vacated bit positions with zeros
A shift operation that rotates bits around
A shift operation that adds two numbers
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an application of logical shifts?
Preserving the sign of a number during division
Multiplying or dividing unsigned integers by powers of two
Rotating bits in a circular fashion
Adding two binary numbers
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an application of arithmetic shifts?
Multiplying or dividing signed integers by powers of two
Filling vacated bit positions with zeros
Rotating bits in a circular fashion
Adding two binary numbers
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a key difference between logical and arithmetic shifts?
Logical shifts preserve the sign bit, while arithmetic shifts do not
Arithmetic shifts fill vacated bit positions with zeros, while logical shifts preserve the sign bit
Logical shifts fill vacated bit positions with zeros, while arithmetic shifts preserve the sign bit
Both logical and arithmetic shifts fill vacated bit positions with ones
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which scenario would you use a logical shift instead of an arithmetic shift?
When you need to preserve the sign of a number
When working with unsigned integers
When you need to rotate bits
When adding two numbers
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which scenario would you use an arithmetic shift instead of a logical shift?
When you need to preserve the sign of a number
When working with unsigned integers
When you need to rotate bits
When adding two numbers
Create a free account and access millions of resources
Similar Resources on Quizizz
8 questions
Unit 1 Lesson 2

Quiz
•
9th Grade
9 questions
Binary, Decimal, Hexadecimal Knowledge

Quiz
•
7th Grade - University
14 questions
tin_9_kntt_bai_12a_su_dung_ham_if

Quiz
•
9th Grade
16 questions
Understanding Sound Representation in Computing

Quiz
•
9th Grade
15 questions
5-sinf. Kompyuter va Internet Asoslari

Quiz
•
5th Grade - University
15 questions
Y10 Computer Literacy

Quiz
•
9th Grade
14 questions
Digital Audio and Video

Quiz
•
9th - 12th Grade
15 questions
Unit 1 Digital Information

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade