
Encryption and Decryption in Python

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Wayground Content
Used 1+ times
FREE Resource
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.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Khan Academy Cryptography

Quiz
•
9th - 12th Grade
10 questions
reverse cipher.

Quiz
•
9th - 12th Grade
10 questions
public secret

Quiz
•
5th - 9th Grade
11 questions
Virtual Private Networks (VPN)

Quiz
•
10th - 12th Grade
10 questions
Unit 4 Inkscape Visual Graphics

Quiz
•
9th Grade
10 questions
Kelompok 6 XI TKJ 1

Quiz
•
11th Grade
15 questions
Rail Fence Cipher

Quiz
•
12th Grade - University
10 questions
ASK FORM 3 - BAB 2 Perwakilan Data

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade