
Encryption and Decryption in Python
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Wayground Content
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 is the purpose of the 'encrypt' function?
To encrypt plain text by shifting letters in the alphabet.
To decode encrypted messages into plain text.
To generate random passwords for user accounts.
To store data securely in a database.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the 'decrypt' function do?
It shifts each letter of the cipher text backwards in the alphabet to retrieve the original plain text.
It encodes the plain text into a cipher text using a specific algorithm.
It removes all special characters from the text.
It converts the text into a binary format for storage.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the role of the 'shift' variable?
It determines how many positions each letter is shifted in the alphabet.
It specifies the number of letters to be added to a word.
It indicates the type of encryption used in the algorithm.
It sets the maximum length of the input string.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the alphabet list contain?
It contains the letters 'a' to 'z' repeated twice.
It contains only the vowels 'a', 'e', 'i', 'o', 'u'.
It contains the letters 'a' to 'z' in uppercase only.
It contains the letters 'a' to 'z' followed by numbers 1 to 26.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the expected input type for the 'shift' variable?
A string representing a text value.
A boolean indicating true or false.
An integer representing the number of positions to shift.
A float representing a decimal number.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the 'decrypt' function?
The decoded text after shifting the cipher text backwards.
The original cipher text before encryption.
A random string of characters.
The length of the cipher text.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the user types 'decode'?
The program calls the 'decrypt' function to decode the provided text.
The program displays an error message indicating an invalid command.
The program encrypts the provided text instead of decoding it.
The program exits without performing any action.
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
15 questions
tik kelas 7
Quiz
•
1st Grade - University
10 questions
Parcial-Dibujo
Quiz
•
12th Grade
10 questions
Empowerment Technologies Quiz 2
Quiz
•
11th Grade
15 questions
PRUEBA CORTA I - SISTEMA E INSTALACIÓN DE SOFTWARE I - U4
Quiz
•
9th - 12th Grade
10 questions
Unit 4 Advanced AP CSP
Quiz
•
9th - 12th Grade
10 questions
Cyber Security
Quiz
•
1st - 10th Grade
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
10 questions
Inspire - AI Trivia
Quiz
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
