Exclusive Black Friday Deal: 70% Off All Exam Bundles! Use coupon code below to unlock your savings! - Ends in 0d 00h 00m 00s - Coupon code: Friday70

Free Certified Associate in Python Programming Practice Questions

Question # 41

Select the valid fun () invocations:

(select two answers)

def fun (a, b=0):

return a*b

Options:

A.  

fun(b=1)

B.  

fun (a=0)

C.  

fun(b=1, 0)

D.  

fun (1)

Discussion 0
Question # 42

What is the expected behavior of the following code?

x - 3 % 1

y -1 if x > else 0

print (y)

Options:

A.  

it outputs -1

B.  

the code is erroneous and it will not execute

C.  

it outputs 1

D.  

it outputs 0

Discussion 0
Question # 43

Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers.)

Question # 43

Options:

A.  

a is not None

B.  

a ! =b

C.  

b () ==4

D.  

a () == 4

Discussion 0
Question # 44

A variable stored separately in every object is called:

Options:

A.  

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

B.  

a class variable

C.  

an object variable

D.  

an instance variable

Discussion 0
Question # 45

Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)

Question # 45

Options:

A.  

len(a)== len (b)

B.  

a [0]-1 ==b [0]

C.  

a[0] = b[0]

D.  

b[0] - 1 == a[0]

Discussion 0
Question # 46

Which of the following snippets will execute without raising any unhandled exceptions? (Select answers)

A)

Question # 46

B)

Question # 46

C)

Question # 46

D)

Question # 46

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0

PCAP-31-03 PDF

PCAP-31-03 PDF (Printable)
$46.5
$154.99

PCAP-31-03 Testing Engine

PCAP-31-03 PDF (Printable)
$51
$169.99

PCAP-31-03 PDF + Testing Engine

PCAP-31-03 PDF (Printable)
$63.9
$212.99

Free Exams Sample Questions