C

Python › Module 1 › Lesson 5

BeginnerModule 1Lesson 5/5

Quiz — Python Basics

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

10 min+53 XP10 quiz
Module progress5 of 5

Opening

Python Basics — Module Quiz

Ten questions on why Python fits security work, variables, loops, functions, and files.

Knowledge Check

1

Python is popular in security mainly because it is:

Multiple choice

Knowledge Check

2

True or False: Unauthorized scanning is fine if your script is written in Python.

True or False

Knowledge Check

3

for port in ports: is an example of a:

Multiple choice

Knowledge Check

4

def banner(name): defines a:

Multiple choice

Knowledge Check

5

with open(path) as f: helps because:

Multiple choice

Knowledge Check

6

Select common security scripting tasks:

Select all that apply

Knowledge Check

7

True or False: Log hunting often filters lines with a substring check.

True or False

Knowledge Check

8

A safe learning target for network scripts is:

Multiple choice

Knowledge Check

9

open(path, "w") opens a file for:

Multiple choice

Knowledge Check

10

Best habit before scanning with your script?

Multiple choice

← Previous

Answer all 10 knowledge checks to continue. (0/10 answered)