Use Data Structures — Cumulative exam Answers

25 verified answers
21
Free Preview

A stepping function allows a program

A
to determine its own variables.
B
to be inspected line by line.
C
to translate code between programming languages.
D
to identify problems in code by searching for correct syntax.
22
Free Preview

Which argument forces a writer to return to and change the input before resolving a “UnicodeError”?

A
errors= “strict”
B
errors= “fix”
C
errors= “ignore”
D
errors= “replace”
23

Readable code

A
is written in large font.
B
is written neatly in straight columns.
C
is easy to understand and useful to other programmers working with the code.
D
is password protected so that only authorized programmers can access it.
24

What does the program print out as a result of the given snippet of code?supplies = ["pencil", "notebook", "backpack", "calculator", "pen"]print(len(supplies))

A
5
B
8
C
[‘backpack’, ‘calculator’, ‘notebook’, ‘pen’, ‘pencil’]
D
[‘pencil’, ‘notebook’, ‘backpack’, ‘calculator’, ‘pen’]
25

Arrays are described as immutable because they

A
are two dimensional.
B
are arranged sequentially.
C
can be reordered.
D
cannot be changed once they are defined.

Did you find these answers helpful?