stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Week 6 Cybersecurity Review Flashcards | StudBud
Explore
/
Week 6 Cybersecurity Review
Week 6 Cybersecurity Review
20 terms
·
StudBud Administration
·
15 plays
Imported from external platform
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
What will happen if the domain cannot be resolved in the get_ip() function?
It will redirect to Google
It will return a default IP address
It will print an error message
The program will crash
2
What Python tool is commonly used in penetration testing?
NumPy
Linux tools
Flask
Django
3
What type of data is stored in the variable port = 8080?
Integer
String
Float
Boolean
4
Why is Python widely used in cybersecurity?
It's easy to learn and useful for automation
It's the fastest programming language
It requires no prior programming experience
It has built-in antivirus features
5
What is the purpose of this Python function?
Sends a message to a domain
Blocks a domain
Encrypts a domain name
Retrieves the IP address of a given domain
6
Which library is used in Python to check if a website is online?
os
requests
socket
random
7
What does the socket module in Python do?
Encrypts files
Scans for malware
Allows network communication
Runs system updates
8
Which of these best describes a Python function?
A loop that iterates through a list
A built-in Python module
A reusable block of code that performs a specific task
A piece of code that runs continuously
9
Which Python module is commonly used for port scanning?
socket
numpy
requests
pandas
10
Why is exception handling important in cybersecurity scripting?
It hides IP addresses
It prevents errors from crashing the program
It allows more network connections
It makes scripts run faster
11
What status code indicates that a website is online?
404
200
403
500
12
What is the purpose of using the wget command in the challenge?
To view encrypted files
To modify Python scripts
To crack passwords
To download necessary files
13
What will this Python code print?
None
"Port is open"
True
"Port is closed"
14
Why do hackers scan ports?
To update firewall settings
To identify vulnerabilities in a system
To encrypt data
To speed up internet connections
15
What is a port?
A type of virus scanner
A communication endpoint for data transfer
A physical connection in a computer
A firewall setting
16
Which of these tools can be used for ethical hacking in Python?
BeautifulSoup
Scapy
Flask
TensorFlow
17
What happens when this Python code runs?
The program crashes
It returns infinity
It prints "You cannot divide by zero!"
It stops running without error
18
Which of the following is NOT a cybersecurity application of Python?
Network security
Ethical hacking
Cryptocurrency mining
Malware analysis
19
What does this Python function do?
Encrypts a connection
Blocks incoming traffic
Changes the target’s IP address
Scans a specified port on a target system
20
Which command is used to decrypt a file in the PicoCTF Python Wrangling challenge?
open flag.txt.en.1
python ende.py -d flag.txt.en.1
python decode.py flag.txt
decrypt flag.txt.en.1