Python L18 & 19 Caesar Cipher

Python L18 & 19 Caesar Cipher

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Ciphers - Lesson 1 Retrieval

Ciphers - Lesson 1 Retrieval

6th - 7th Grade

7 Qs

Cryptography-Grade VII

Cryptography-Grade VII

6th - 7th Grade

11 Qs

Cyber Security–Encryption & Prevention Measures Homework

Cyber Security–Encryption & Prevention Measures Homework

7th - 9th Grade

15 Qs

public secret

public secret

5th - 9th Grade

10 Qs

Network Security L3

Network Security L3

8th Grade

13 Qs

HYKwCS-CH05-S08-Encryption

HYKwCS-CH05-S08-Encryption

8th Grade

15 Qs

01 | Encryption/Security Measures (H/W 4)

01 | Encryption/Security Measures (H/W 4)

7th Grade

10 Qs

Year 7 C3 2023 Past Paper Section B

Year 7 C3 2023 Past Paper Section B

7th Grade

10 Qs

Python L18 & 19 Caesar Cipher

Python L18 & 19 Caesar Cipher

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

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.

no

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?

for

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?