Final 1 Flashcards

1
Q

What is IntelliSense?

A

It’s kinda like auto-complete for coding – it anticipates what you’re doing and tries to give you helpful shortcuts. It also flags potential problems or errors.

Powerpoint Trivia Reference: Heavy - The Beatles

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

How do you prevent python from going to the next line when printing?

A

include ,end=””) as a parameter of the print statement. i.e print(output, end=””)

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

What is “sep”?

A

A print parameter that can change the default separation for multiple printed strings (default is normally a single space). print(“a”,”b”,”c”, sep=””) would output abc instead of a b c (default)

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

In a flowchart, what does an oval represent?

A

It’s a terminal symbol (start, stop)

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

In a flowchart, what do parallelograms (that are not rectangles) represent?

A

input and output

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

In a flowchart, what do diamonds represent?

A

True/False condition statements

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

In a flowchart, what does a rectangle represent?

A

Processing symbols

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

Trivia: What was used as a reference for an object called “monster” in an early object oriented program lecture?

A

A clip from the 1931 film “Frankenstein”
‘It’s alive!’, etc.

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

Is a list an object type?

A

Yes.
Trivia Reference: Toby Keith song “My List”

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

What does the professor think is the single greatest advantage of Python over every other programming language?

A

Dynamic variable types such as lists, dictionaries, and sets are simple to use even for beginners.

Declaring a dynamic list is as simple as:
List = []

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

How does the professor like to add items to a dynamic list?

A

The .append method

a=[]
a.append(4)
a.append(6)
print(a)
[4, 6]

Easily adds things to the list.

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