Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Pass the Python Institute PCAP PCAP-31-03 Questions and answers with ValidTests

Exam PCAP-31-03 All Questions
Exam PCAP-31-03 Premium Access

View all detail and faqs for the PCAP-31-03 exam

Viewing page 1 out of 5 pages
Viewing questions 1-10 out of questions
Questions # 1:

Which of the following sentences are true? (Select two answers)

Options:

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

Expert Solution
Questions # 2:

What is the expected behavior of the following code?

Question # 2

Options:

A.

it outputs error

B.

it outputs list assignment index out of range

C.

the code is erroneous and it will not execute

D.

it outputs

Expert Solution
Questions # 3:

A compiler is a program designed to (select two answers)

Options:

A.

rearrange the source code to make it clearer

B.

check the source code in order to see if its correct

C.

execute the source code

D.

translate the source code into machine code

Expert Solution
Questions # 4:

What is the expected behavior of the following code?

Question # 4

Options:

A.

it outputs 0

B.

it outputs 1

C.

it raises an exception

D.

it outputs 2

Expert Solution
Questions # 5:

What is the expected output of the following snippet?

Question # 5

Options:

A.

True lower

B.

True upper

C.

False upper

D.

False lower

Expert Solution
Questions # 6:

What is the expected behavior of the following code?

Question # 6

Options:

A.

it outputs False

B.

it outputs True

C.

it raises an exception

D.

it outputs nothing

Expert Solution
Questions # 7:

The following expression

1+-2

is:

Options:

A.

equal to 1

B.

invalid

C.

equal to 2

D.

equal to -1

Expert Solution
Questions # 8:

What is the expected output of the following snippet?

Question # 8

Options:

A.

the code is erroneous

B.

3

C.

7

D.

15

Expert Solution
Questions # 9:

What is the expected behavior of the following code?

Question # 9

Options:

A.

It outputs False

B.

It outputs nothing

C.

It outputs True

D.

It raises an exception

Expert Solution
Questions # 10:

Which of the following expressions evaluate to True? (Select two answers)

Options:

A.

' t '.upper () in 'Thames'

B.

'in not' in 'not'

C.

'not' not in 'in'

D.

'a' not in 'ABC' .lower ()

Expert Solution
Viewing page 1 out of 5 pages
Viewing questions 1-10 out of questions