Questions & Answers
1. What is the most common Unicode encoding when moving data between systems?
A.UTF-8
B. UTF-128
C.UTF-32
D. UTF-16
E. UTF-64 - ANSWERSD
2. What is the ASCII character that is associated with the decimal value 42?
A. *
B. Newline
C. 0
D. w
E. W - ANSWERSA
3.What word does the following sequence of numbers represent in ASCII:
108, 105, 115, 116
A. mist
B. list
C. first
D. webs
E. dict - ANSWERSB
4.
How are strings stored internally in Python 3?
A. inverted
B. UTF-16
C. Unicode
D. EBCDIC
E. bubble memory - ANSWERSC
5. When reading data across the network (i.e. from a URL) in Python 3, what string
method must be used to convert it to the internal format used by strings?
A. split()
B.encode()
C. rstrip()
D.decode()
E.internal() - ANSWERSD
, What is the decimal (Base-10) numeric value for the upper case letter "G" in the ASCII
character set?
A.256
B.71
C.7
D.17
E.142 - ANSWERSB
1. Which came first, the instance or the class?
A.instance
B.method
C.function
D.class - ANSWERSD
2. In Object Oriented Programming, what is another name for the "attributes" of an
object?
A.messages
B.methods
C.forms
D.portions
E.fields - ANSWERSE
3. At the moment of creation of a new object, Python looks at the _________ definition
to define the structure and capabilities of the newly created object.
A.class
B.instance
C.method
D.cache
E.constructor - ANSWERSA
4. Which of the following is NOT a good synonym for "class" in Python?
A.direction
B.template
C.blueprint
D.pattern - ANSWERSA
5What does this Python statement do if PartyAnimal is a class?
zap = PartyAnimal()
A. Clear out all the data in the PartyAnimal variable and put the old values for the data
in zap
B-Use the PartyAnimal template to make a new object and assign it to zap
C .Copy the value from the PartyAnimal variable to the variable zap