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
11 questions
Proteksi Data dan File

Quiz
•
7th Grade
10 questions
Year 7 C3 2023 Past Paper Section B

Quiz
•
7th Grade
9 questions
Caesar CIPHER QUIZ

Quiz
•
6th - 8th Grade
13 questions
Quiz 4: Internet safety, cyber security and encryption

Quiz
•
7th - 8th Grade
11 questions
J277 - Wireless Networks

Quiz
•
8th - 11th Grade
10 questions
Encryption

Quiz
•
8th Grade
15 questions
Cryptography Basics

Quiz
•
6th - 8th Grade
10 questions
public secret

Quiz
•
5th - 9th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
22 questions
Figurative Language

Quiz
•
7th Grade