Question: QUESTION 11 In Python, multiple-subscripted sequences may have at most how many subscripts? A. Two. B. Three. C. Four. D. As many as the programmer

QUESTION 11

In Python, multiple-subscripted sequences may have at most how many subscripts?

A. Two.

B. Three.

C. Four.

D. As many as the programmer desires.

QUESTION 12

What are the data items in a list called?

A. data

B. elements

C. items

D. values

QUESTION 13

The notation indicates the fourth element of a sequence.

A) (4).

B) [4].

C) [3].

D) None of the above.

QUESTION 14

The result of the expression ("@" * 3) is .

A. "@3" .

B. "@@@" .

C. a syntax error.

D. None of the above.

QUESTION 15

A key-value pair is in the form .

A. value : key.

B. key : value.

C. key ( value ).

D. None of the above.

QUESTION 16

The number in square brackets after a sequence name is the of a particular element in the sequence.

A. subscript

B. size

C. value

D. None of the above.

QUESTION 17

The built-in function __________ returns the length of a list or dictionary.

QUESTION 18

Which method can be used to place an item at a specific index in a list?

A. append

B. index

C. insert

D. add

QUESTION 19

Dictionaries are mapping constructs consisting of .

A. memory locations.

B. references.

C. key-value pairs.

D. None of the above.

QUESTION 20

The keyword removes an entry from a dictionary.

A. del .

B. remove .

C. rem .

D. None of the above.

QUESTION 21

Dictionaries are denoted by the symbol.

A.

[ ] .

B.

{ } .

C.

( ) .

D.

None of the above.

QUESTION 22

The control value of a for structure that iterates a sequence represents the of each element.

A. value.

B. subscript.

C. location in memory.

D. None of the above.

QUESTION 23

What is an advantage of using a tuple rather than a list?

A. Tuples are not limited in size.

B. Tuples can include any data as an element.

C. Processing a tuple is faster than processing a list.

D. There is never an advantage to using a tuple.

QUESTION 24

________ store related data items and are often called arrays in other languages.

A. Dictionaries.

B. Sequences.

C. Mappings.

D. None of the above.

QUESTION 25

Which method or operator can be used to concatenate lists?

A. *

B. +

C. %

D. concat

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!