Python Institute PCAP - Certified Associate in Python Programming Exam
Page: 3 / 29
Total 141 questions
Question #11 (Topic: Single Topic)
Assuming that the following snippet has been successfully executed, which of the equations are True? (Choose two.)


A. len(a) == len (b)
B. b [0] +1 ==a [0]
C. a [0] == b [0]
D. a [0] + 1 ==b [0]
Answer: AC
Question #12 (Topic: Single Topic)
Assuming that the following snippet has been successfully executed, which of the equations are False? (Choose two.)


A. len(a)== len (b)
B. a [0]-1 ==b [0]
C. a [0]== b [0]
D. b [0] - 1 ==a [0]
Answer: CD
Question #13 (Topic: Single Topic)
Which of the following statements are true? (Choose two.)
A. Python strings are actually lists
B. Python strings can be concatenated
C. Python strings can be sliced like lists
D. Python strings are mutable
Answer: BC
Question #14 (Topic: Single Topic)
Which of the following sentences are true? (Choose two.)
A. Lists may not be stored inside tuples
B. Tuples may be stored inside lists
C. Tuples may not be stored inside tuples
D. Lists may be stored inside lists
Answer: BD
Question #15 (Topic: Single Topic)
Assuming that String is six or more letters long, the following slice

is shorter than the original string by:

is shorter than the original string by:
A. four chars
B. three chars
C. one char
D. two chars
Answer: B