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

Page 15 of 37

The following expression
1+-2
is:

  1. equal to 1
  2. invalid
  3. equal to 2
  4. equal to -1

Answer(s): D

Explanation:



A compiler is a program designed to (select two answers)

  1. rearrange the source code to make it clearer
  2. check the source code in order to see if its correct
  3. execute the source code
  4. translate the source code into machine code

Answer(s): B,D

Explanation:

https://www.thoughtco.com/what-is-a-compiler-958322



What is the output of the following piece of code?

  1. ant'bat'camel
  2. ant"bat"camel
  3. antbatcamel
  4. ant bat camel

Answer(s): B

Explanation:



What is the expected output of the following snippet?

  1. the code is erroneous
  2. 3
  3. 7
  4. 15

Answer(s): A






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

PCAP-31-03 Discussions & Posts