wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python L19 Caesar Cipher II

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

What does the modulus operator (%) help us do in Caesar Cipher?

a)

Add numbers together

b)

Keep shifts within the alphabet limit

c)

Convert letters to numbers

d)

Count letters

2.

To make sure big shifts don’t go past ‘z’, we use the Modulus operator.

What is the symbol of Modulus Operator?

a)

%

b)

#

c)

@

d)

!

3.

In the improved cipher, all characters (letters, numbers, and symbols) are shifted.

a)

True

b)

False

4.

Which of the following characters should not change when encoding?

a)

A

b)

B

c)

!

d)

c

5.

Why do we use a while loop in this project?

a)

To repeat the program until the user wants to stop

b)

To find each letter

c)

To create a list

d)

To print one message

6.

What does this code do?

a)
It calculates the modulo of 'shift' with 26.
b)
It assigns 'shift' a value of 26.
c)
It increments 'shift' by 26.
d)
It checks if 'shift' is greater than 26.
7.

The Caesar Cipher should ignore symbols like !, ?, and __________.

a)
spaces
b)
letters
c)
numbers
8.

If you type a shift value of 27, it works the same as shift 1.

a)

True

b)

False

9.

If your message is "hello world!" and your shift is 3, what happens to the ! symbol?

a)

It becomes “$”

b)

It disappears

c)

It stays the same

d)

It moves forward by 3