Console Commands
Error Types
Functions
Mystery
100

What does cd do?

Change directory

100

What sort of error might it be when you're missing some required parentheses?

Syntax Error

100

What does DRY stand for?

Don't Repeat Yourself

100

What sort of data type would the number 5.67 be?

Float

200

What is the difference between an absolute and relative path?

Absolute paths are the entire path including the drive and relative paths are only the path info in reference to another file/directory

200

What sort of error would this cause:

int("abc")

ValueError

200

What is the difference between printing and returning a value

Returning it actually passes on the data; printing it is largely only for the sake of human viewing via the terminal.

200

What does importing something allow you to do?

Use functions from the imported module within your current file

300

When copying a file, what is the proper order of the command (hint: it can be moved and renamed)

cp [original file path] [copy's new file path]

300

What sort of other error might result in a runtime error?

Often math/type/logical errors

300

What do all relational operations (e.g. ==, ||) evaluate to?

A boolean value

300

What are the three steps to a unit test?

Setup, Invoke, Analyze

400

What are the 5-6 most important git commands?

Git pull, Git clone, Git add, Git commit, Git push

Optional: Git status

400

What is an example of a type error?

(Anything that involves trying to use an operation/function with an incorrect type)

400

What is the difference between an argument and a parameter?

A parameter is a placeholder variable in a function definition, while an argument is the value actually passed into it

400

What is a local variable?

A variable that only has scope within where it is created (e.g. something created within a function cannot be used outside of the function)

500

What is the difference between cat and tail?

Cat prints the entire file to the terminal, while tail prints a certain amount of lines from the end

500

What is the most common error in Python?

IndentationError

500

What are the restrictions for naming a function? 

The same as naming a variable

500

Where is Jennie's favorite study spot?

The MAGIC labs