Midterm (4) Flashcards
(14 cards)
Are Python variables case sensitive?
Yes
Can a python variable start with a digit?
No
Can a python variable contain a space?
No
Can a Python variable contain hash symbols (#)?
No
Could you use a keyword (such as if) with different capitalization (If) as a variable?
Yes, but you DEFINITELY SHOULD NOT.
How many different values can a “bit” of data store?
2 values
(0 and 1)
True or False: A byte of memory can be used to hold one ASCII character.
True
True or False: Pseudo code does not need to be executable.
True
True or False: One would not expect a CPU to execute a program in any language other than machine code.
False
Is a compiled language faster than an interpreted one?
Yes
Is a syntax error an error in form?
Yes
True or False: A variable in python can be said to be a name of a pointer to a value in memory
True
Can we change a variable’s type at runtime?
Yes
Blank
Blank