Python L18 & 19 Caesar Cipher

Quiz
•
Computers
•
6th - 8th Grade
•
Hard
Future Teacher
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
Encryption and Data Security Quiz

Quiz
•
6th - 8th Grade
15 questions
L3 scratch

Quiz
•
7th Grade - University
10 questions
HW: Week 2 - Cybersecurity - Alan Turing

Quiz
•
6th - 8th Grade
15 questions
Cryptography Basics

Quiz
•
6th - 8th Grade
10 questions
Encryption 2

Quiz
•
8th - 10th Grade
10 questions
Y8 Codes & codebreaking #1

Quiz
•
8th Grade
15 questions
Excel as Database

Quiz
•
7th Grade
7 questions
Cipher Encryption

Quiz
•
6th - 8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade