Encryption and Decryption in Python

Encryption and Decryption in Python

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

สอบย่อย ครั้งที่ 1 (BC.2/2)

สอบย่อย ครั้งที่ 1 (BC.2/2)

11th Grade

10 Qs

Cyber Security Homework 1

Cyber Security Homework 1

7th - 9th Grade

15 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

k12 bai4

k12 bai4

12th Grade

10 Qs

ICT as Social Change

ICT as Social Change

12th Grade

10 Qs

Excel - basic

Excel - basic

9th Grade

15 Qs

SIKOMDIK

SIKOMDIK

10th Grade

15 Qs

สร้างเว็บเพจเบื้องต้น

สร้างเว็บเพจเบื้องต้น

9th Grade

10 Qs

Encryption and Decryption in Python

Encryption and Decryption in Python

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Wayground Content

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?