Free preview mode
Enjoy the free questions and consider upgrading to gain full access!
PCAP
Free trial
By python-institute
Verified
25Q per page
Question 26
Which of the following statements are true? (Choose two.)
- A: an escape sequence can be recognized by the / sign put in front of it
- B: II in ASCII stands for Internal Information
- C: ASCII is a subset of UNICODE
- D: a code point is a number assigned to a given character
—
Question 27
What is the expected behavior of the following code?
- A: it outputs 321
- B: it outputs 123
- C: it outputs 6
- D: it raises an exception
—
Question 28
A Python module named pymod.py contains a variable named pyvar.
Which of the following snippets will let you access the variable? (Choose two.)
- A: import pymod pymod.pyvar = 1
- B: import pyvar from pymod pyvar = 1
- C: from pymod import pyvar pyvar ()
- D: from pyfun import * pyvar = 1
—
Question 29
Which of the following expressions evaluate to True? (Choose two.)
- A: ord(ג€zג€) - ord(ג€Zג€) == ord(ג€0ג€)
- B: len(ג€ג€ג€ ג€ג€ג€) > 0
- C: chr(ord('a') + 1) == 'B'
- D: len('\'') == 1
—
That’s the end of your free questions
You’ve reached the preview limit for PCAPConsider upgrading to gain full access!
Free preview mode
Enjoy the free questions and consider upgrading to gain full access!