Python L18 & 19 Caesar Cipher
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Hard
Future Teacher
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the line shift_amount *= -1 do when decoding?
It resets the shift to 0
It reverses the shift direction
It encrypts the message
It prints the message
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the input message contains characters like spaces or punctuation, they will be included in the final result without change.
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does new_position %= len(alphabet) do?
Removes letters
Prevents out-of-range errors by wrapping around the alphabet
Changes lowercase to uppercase
Sorts the text alphabetically
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To exit the Caesar Cipher program, the user must type '__' when prompted.
yes
again
repeat
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not part of the function caesar()?
start_text
shift_amount
cipher_direction
restart
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to loop through each letter in the message?
while
repeat
loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed at the end of each Caesar cipher function call?
Only the encrypted message
A message showing the cipher direction and result
The input text
The shift number
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Grade 6- PRINT statement in Python
Quiz
•
6th Grade
15 questions
Cyber Security Homework 1
Quiz
•
7th - 9th Grade
14 questions
Introduction to Networks
Quiz
•
6th - 8th Grade
12 questions
Revision quiz on Access
Quiz
•
8th Grade
13 questions
CODING QUIZZ
Quiz
•
8th Grade
15 questions
IT quiz class 7 E-commerce and blogging
Quiz
•
6th - 7th Grade
13 questions
Networks
Quiz
•
7th - 9th Grade
15 questions
Computer Subject
Quiz
•
4th - 6th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade

