PCAP-31-03 Certified Associate in Python Programming

Loading demo links...

Showing 4–6 of 10 questions

Question 4

What is true about Object-Oriented Programming in Python? (Select two answers)

Select all that apply, then click Submit answer.

  • encapsulation allows you to protect some data from uncontrolled access

  • the arrows on a class diagram are always directed from a superclass towards its subclass

  • inheritance is the relation between a superclass and a subclass

  • an object is a recipe for a class

Question 5

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

Select all that apply, then click Submit answer.

  • a is b

  • b( ) > 2

  • a() > 2

  • a is not None

Question 6

How many elements will the list1 list contain after execution of the following snippet?

Select an option, then click Submit answer.

  • two

  • zero

  • one

  • three