
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
Asesmen Sumatif
Quiz
•
12th Grade
12 questions
Tin học 2
Quiz
•
11th Grade
10 questions
Q1 M 2 - TOPIC 2 / Check your understanding
Quiz
•
10th Grade
11 questions
ICT - Networks and communication
Quiz
•
9th Grade
10 questions
4Q Week3 Review Quiz (Who missed the Quiz ONLY))
Quiz
•
9th Grade
10 questions
Intro to Windows Server 2012
Quiz
•
12th Grade
15 questions
Vocabulary of Computer
Quiz
•
12th Grade
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
