Python Institute PCAP-31-03 Certified Associate in Python Programming Exam Practice Test

Page: 1 / 14
Total 144 questions
Question 1

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

A)

B)

C)

D)



Answer : C, D


Question 2

What is the expected output of the following snippet?



Answer : B


Question 3

Which of the listed actions can be applied to the following tuple? (Select two answers)



Answer : A, D


Question 4

A class constructor (Select two answers)



Answer : B, C


Question 5

Python's built-in function named open () tries to open a file and returns:



Answer : C


Question 6

The simplest possible class definition in Python can be expressed as:



Answer : A


Question 7

The first parameter of each method:



Answer : D

The first argument of every class method, including init, is always a reference to the current instance of the class. By convention, this argument is always named self. In the init method, self refers to the newly created object; in other class methods, it refers to the instance whose method was called


Page:    1 / 14   
Total 144 questions