0% found this document useful (0 votes)
2 views2 pages

Adcs - Lab QB

ADVANCED DIPLOMA IN CYBER SECURITY – CRYPTOGRAPHY PRACTICE USING PYTHON LAB PRACTICE QUESTIONS

Uploaded by

gprakas_74
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views2 pages

Adcs - Lab QB

ADVANCED DIPLOMA IN CYBER SECURITY – CRYPTOGRAPHY PRACTICE USING PYTHON LAB PRACTICE QUESTIONS

Uploaded by

gprakas_74
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

ADVANCED DIPLOMA IN CYBER SECURITY – CRYPTOGRAPHY PRACTICE USING PYTHON

LAB PRACTICE QUESTIONS


1. For what 'x' is 77x mod 101 is equal to 1? Write a Python program using range ().
2. Computer 2100 mod 101 using Python.
3. Find the smallest integer ‘k’ such that 2 k ≡ 1 mod 101. Write a Python program for this
mathematical equation.
4. Find the GCD of 123456789 and 987654321 using Euclid Algorithm with a Python script.
5. Write a Python program to check whether a given string contains a capital letter, a
lowercase letter, a number, and a minimum length using lambda
6. Write a Python program to calculate the average value of the numbers in a given tuple
using the lambda function.
Original Tuple:
((10, 10, 10), (30, 45, 56), (81, 80, 39), (1, 2, 3))
7. Write a Python function that can multiply an input with an unknown number using the
lambda function inside a standard function. For example, if the standard function takes an
input of 3 and the lambda function takes an input of 11, the final result should be 33. Check
if your function works correctly by calling it for some suitable inputs.

8. Write a Python program to create a Reverse cipher using a function. The input should be
Plain text passed as one parameter. The output is the cipher text, a complete reverse of the
Plain text.
9. Implement an XOR Cipher using a Python function.
10. The order of an element modulo N is the least positive integer ‘k’ such that a k ≡ 1 mod N.
Find the order of 3, 4, and 5 modulo 101 using a Python function.
11. Implement the RSA Encryption Algorithm using Python PIP.
12. Write a Python program to encode the following string: “Advanced Diploma in Cyber
Security”.
13. Write a Python program to perform the Substitution cipher for the following Plain text:
“Sona College of Technology, Salem”.
14. Write a Python program to determine the strength of a Password depending on the
constraints matching the regular expression.
15. Generate a Fake address with Latitude and Longitude using a Python package.

You might also like