PCAP-31-02.pdf - CPP-Institute PCAP-31-02 PCAP Certified Associate in Python Programming http\/killexams.com\/exam-detail\/PCAP-31-02 QUESTION 35 A file

PCAP-31-02.pdf - CPP-Institute PCAP-31-02 PCAP Certified...

This preview shows page 1 - 4 out of 4 pages.

PCAP-31-02 CPP-Institute PCAP Certified Associate in Python Programming
Image of page 1
QUESTION: 35 A file name like this one below says mat: (select three answers) services. cpython-36.pyc A. the interpreter used to generate the file is version 3.6 B. it has been produced by CPython C. it is the 36th version of the file D. the file comes from the services .py source file Answer: A, C, D QUESTION: 36 You are going to read just one character from a stream called s. Which statement would you use? A. ch = read(s, 1) B. ch = s.input(1) C. ch = input(s, 1) D. ch = s.read(l) Answer: B QUESTION: 37 Assuming that String is six or more letters long, the following slice String[1:-2] is shorter than the original string by: A. four chars B. three chars C. one char D. two chars Answer: B QUESTION: 38
Image of page 2
What is the expected behavior of the following snippet9 def x() : #line 01
Image of page 3
Image of page 4

You've reached the end of your free preview.

Want to read all 4 pages?

  • Fall '20
  • English-language films, 1920, 1918

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture