Summer Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

PCAP-31-03 Exam Dumps - Certified Associate in Python Programming

Go to page:
Question # 17

What is the expected behavior of the following code?

A.

it outputs list assignment index out of range

B.

the code is erroneous and it will not execute

C.

it outputs

D.

it outputs error

Full Access
Question # 18

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

A.

open () is a function which returns an int that represents a physical file handle

B.

the second open () argument is optional

C.

instd, outstd, errstd are the names of pre-opened streams

D.

if invoking open () fails, the value None is returned

Full Access
Question # 19

An operator able to perform bitwise shifts is coded as (select two answers)

A.

- -

B.

++

C.

<<

D.

>>

Full Access
Question # 20

Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers)

A.

a ( ) == 4

B.

a is not None

C.

b ( ) == 4

D.

a ! = b

Full Access
Question # 21

What is true about the following snippet? (Select two answers)

A.

the code will raise an unhandled exception

B.

the string I feel fine 'will be seen

C.

the string it's nice to see you will be seen

D.

the string what a pity will be seen

Full Access
Question # 22

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

A.

'in not' in 'not'

B.

'in' in 'Thames'

C.

't' . upper ( ) in 'Thames'

D.

'in' in 'in'

Full Access
Question # 23

A variable stored separately in every object is called:

A.

there are no such variables, all variables are shared among objects

B.

a class variable

C.

an object variable

D.

an instance variable

Full Access
Question # 24

With regards to the directory structure below, select the proper forms of the directives in order to import module_a. (Select two answers)

A.

import pypack.module_a

B.

import module_a from pypack

C.

import module_a

D.

from pypack import module_a

Full Access
Go to page: