Chapter 1 - Getting started Flashcards

1
Q

Object-Oriented Programming

A

Optional

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

Is Python platform-dependent?

A

No

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

Is Python case-sensitive

A

Yes

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

Function

A

A mini-program, goes off and does a specific thing

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

How do you call a function

A

Use the function name followed by a set of parentheses

- print()

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

Argument

A

values passed on to a function to work with

- print(“Game Over!”); where “Game Over! is the argument passed on to the function

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

Return values

A

return (provide) information back to the part of the program that called the function

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

String

A

series of characters

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

String literal

A

the string is literally it’s combination of characters

-print(“Game Over”) - literally means Game Over

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

Statement

A

a complete instruction (it does something)

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

Code

A

programming statements

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

Syntax highlighting

A

words displayed in different colors

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

Script mode vs Interactive mode

A

Interactive mode - instant results

Script mode - write -> save -> run

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

Comments

A
# - single line comment
''' ''' - multi-line comment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

end=””

A

used inside of print() to define the end

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