Midterm (4) Flashcards

1
Q

Are Python variables case sensitive?

A

Yes

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

Can a python variable start with a digit?

A

No

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

Can a python variable contain a space?

A

No

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

Can a Python variable contain hash symbols (#)?

A

No

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

Could you use a keyword (such as if) with different capitalization (If) as a variable?

A

Yes, but you DEFINITELY SHOULD NOT.

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

How many different values can a “bit” of data store?

A

2 values
(0 and 1)

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

True or False: A byte of memory can be used to hold one ASCII character.

A

True

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

True or False: Pseudo code does not need to be executable.

A

True

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

True or False: One would not expect a CPU to execute a program in any language other than machine code.

A

False

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

Is a compiled language faster than an interpreted one?

A

Yes

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

Is a syntax error an error in form?

A

Yes

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

True or False: A variable in python can be said to be a name of a pointer to a value in memory

A

True

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

Can we change a variable’s type at runtime?

A

Yes

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

Blank

A

Blank

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