Free PCAP-31-03 Exam Braindumps (page: 12)

Page 11 of 37

Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)

  1. math. hypot (3,4) == math.sqrt (25)
  2. math. hypot (2,5) == math.truec (2.5)
  3. math. hypot (2,5) == math.true (2.5)
  4. math. cell (2,5) == math.floor (2.5)

Answer(s): A,B



What is true about Python packages? (Select two answers)

  1. the sys.path variable is a list of strings
  2. _pycache_is a folder that stores semi-completed Python modules
  3. a package contents can be stored and distributed as an mp3 file
  4. a code designed to initialize a package's state should be placed inside a file named init.py

Answer(s): A,B



Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Select two answers)
string = 'SKY' (:: -1)
string = string (-1)

  1. string is None
  2. string (0) == string (-1
  3. string (0) == 'Y'
  4. len (string) == 1

Answer(s): C,D



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

  1. a code point is a point inside the code when execution stops immediately
  2. an escape sequence can be recognized by the # sign put in front of it.
  3. UTF-8 is one of the ways of representing UNICODE code points.
  4. ASCII is the name of a character coding standard

Answer(s): A,D






Post your Comments and Discuss Python Institute PCAP-31-03 exam with other Community members:

PCAP-31-03 Discussions & Posts