Cyberlium
Cyberlium
Cyberlium on Android·Google Play Store

Learn cybersecurity with hands-on labs and AI mentor support on your phone.

Mod 1 · Les 5/5
In progress
Module 1•Lesson 5 of 5•⏱️ 10 min read•Beginner+21 XP

Quiz — Python Basics

10-question quiz on Python’s role in security and core language basics

Quiz — Python Basics
00:00/01:50

Python Basics — Module Quiz

Ten APPLY items on why analysts automate with Python (readability, stdlib batteries, speed of writing), the hacker-movie myth versus SOC glue, why Scapy and Impacket exist but this course stays on files, hashes, and localhost, str/int/list, for loops, def versus copy-paste, with open and pathlib, wordlists as parsing practice, the fictional sample_auth.log hunter, and chmod 600 on lab files. Wrong answers still teach. You will not scan strangers, open /etc/shadow, brute-force logins, or treat Module 2 sockets as permission to aim at a company. Scripts and notes stay in $HOME/cyberlium-lab on YOUR machine — no live passwords, no work production logs, no other people’s files. Carry the hunter pattern into the quiz: with open / pathlib, utf-8, needle in line, chmod 600 on even fictional logs. Printing a port list is still not a scan. requests comes later; Scapy and Impacket stay named, not assigned. Next after this quiz is Socket Programming: still authorized localhost / lab hosts you own, still not a Ethical Hacking exploit track.

Practice QuizQuestion 1
Multiple choice
Q1

APPLY: A classmate says Python is for “hacking companies fast” and wants to skip readability. Why do analysts and ethical hackers actually automate with it, and where do scripts live in this course?

Practice QuizQuestion 2
True or False
Q2

APPLY: True or False: Unauthorized scanning or opening /etc/shadow is fine if the script is Python, and Scapy/Impacket being famous means this module is a Ethical Hacking exploit course.

Practice QuizQuestion 3
Multiple choice
Q3

APPLY: You need a SHA-256 of hello.txt you wrote and a JSON note of the digest. Which pairing, and what must the note not contain?

Practice QuizQuestion 4
Multiple choice
Q4

APPLY: host = "127.0.0.1" and ports = [22, 80, 443]. A teammate pastes three connect blocks instead of a loop. Types, and the scalable pattern before Module 2 sockets?

Practice QuizQuestion 5
Multiple choice
Q5

APPLY: Why does copying a five-line check twenty times fail as you add timeouts, and what keyword starts a reusable block?

Practice QuizQuestion 6
Select all that apply
Q6

APPLY: Select the defensive file-handling habits for this module. (Select 2)

Practice QuizQuestion 7
True or False
Q7

APPLY: True or False: for line in f plus if needle in line is a real log-hunting pattern, and it still only applies to files you created or are allowed to have — fictional sample_auth.log, not a roommate’s mailbox.

Practice QuizQuestion 8
Multiple choice
Q8

APPLY: find_failed.py printed four lines including Accepted password. What likely went wrong, and what is a safe optional extra?

Practice QuizQuestion 9
Multiple choice
Q9

APPLY: open(path, "w") on hits.txt in the lab folder — what does the mode mean, and why chmod 600 the log and report?

Practice QuizQuestion 10
Multiple choice
Q10

APPLY: After this module, which lesson opens networking with Python, and which habits do you carry?

←Previous: Lab — First Python Script
Answer 10 practice quiz questions to unlock XP reward. (0/10 answered)
Skip quiz & read next →