Automate Cybersecurity Tasks with Python - Module 2 Flashcards

(15 cards)

1
Q

Argument (Python)

A

The data sent into a function when it’s called

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Built-in Function

A

A function that comes with Python and can be used directly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Comment

A

A note in code to explain what it’s doing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Function

A

Code you can reuse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Global Variable

A

A variable you can use anywhere in your code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Indentation

A

Spaces at the start of a line to show code structure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Library

A

A group of modules with useful code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Local Variable

A

A variable used only inside a function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Module

A

A Python file with code like functions and variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Parameter (Python)

A

A variable in a function that holds input data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

PEP 8 Style Guide

A

Rules for writing clear Python code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Python Standard Library

A

A bunch of helpful Python modules you can use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Return Statement

A

Sends a result back from a function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Style Guide

A

Rules for how to format and write code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

User-Defined Function

A

A function made by a programmer for a specific task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly