0% found this document useful (0 votes)
381 views9 pages

Pcap PDF

This document provides a sample exam for the Python Institute PCAP certification. It includes 10 multiple choice questions about Python programming concepts like loops, variables, operators, and literals. It also provides the answers and explanations. The questions cover topics like loop variables, bitwise operators, print formatting, and floating point literals. The document aims to help students study for the PCAP exam and provides a link to purchase additional exam questions and a PDF file with more sample questions.

Uploaded by

hk python123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
381 views9 pages

Pcap PDF

This document provides a sample exam for the Python Institute PCAP certification. It includes 10 multiple choice questions about Python programming concepts like loops, variables, operators, and literals. It also provides the answers and explanations. The questions cover topics like loop variables, bitwise operators, print formatting, and floating point literals. The document aims to help students study for the PCAP exam and provides a link to purchase additional exam questions and a PDF file with more sample questions.

Uploaded by

hk python123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Python Institute PCAP

Certified Associate in Python Programming


Python Institute PCAP Dumps Available Here at:
https://www.certification-questions.com/python-institute-exam/pcap-dumps.html

Enrolling now you will get access to 113 questions in a unique set of
PCAP dumps

Question 1

What will be the value of the i variable when the while e loop finishes its execution?

Options:

A. 1

B. 0

C. 2

D. the variable becomes unavailable

Answer: A

Explanation:

https://www.certification-questions.com
Python Institute PCAP

Question 2
And operator able to perform bitwise shifts is coded as (Choose two.)

Options:

A. --

B. ++

https://www.certification-questions.com
Python Institute PCAP

C. <<

D. >>

Answer: C, D

Explanation:
ttps://www.geeksforgeeks.org/basic-operators-python/

Question 3

What will the value of the i variable be when the following loop finishes its execution?

Options:

A. 10

B. the variable becomes unavailable

C. 11

D. 9

Answer: B

Explanation:
ttps://www.programiz.com/python-programming/pass-statement

Question 4

The following expression

is:

https://www.certification-questions.com
Python Institute PCAP

Options:

A. equal to 1

B. invalid

C. equal to 2

D. equal to -1

Answer: D

Explanation:

Question 5
A compiler is a program designed to (Choose two.)

Options:

A. rearrange the source code to make it clearer

B. check the source code in order to see of it’s correct

C. execute the source code

D. translate the source code into machine code

Answer: B, D

Question 6

What is the output of the following piece of code?

https://www.certification-questions.com
Python Institute PCAP

Options:

A. ant’ bat’ camel

B. ant”bat” camel

C. antbatcamel

D. print (a, b, c, sep= ‘ ” ’)

Answer: B

Explanation:

Question 7

What is the expected output of the following snippet?

https://www.certification-questions.com
Python Institute PCAP

Options:

A. the code is erroneous

B. 3

C. 7

D. 15

Answer: A

Question 8

How many lines does the following snippet output?

https://www.certification-questions.com
Python Institute PCAP

Options:

A. three

B. one

C. two

D. four

Answer: B

Question 9
Which of the following literals reflect the value given as 34.23? (Choose two.)

Options:

A. .3423e2

B. 3423e-2

C. .3423e-2

D. 3423e2

Answer: A, B

Explanation:

https://www.certification-questions.com
Python Institute PCAP

Question 10

What is the expected output of the following snippet?

Options:

A. 3

B. 1

C. 2

D. the code is erroneous

Answer: A

https://www.certification-questions.com
Python Institute PCAP

Explanation:

Would you like to see more? Don't miss our PCAP PDF
file at:
https://www.certification-questions.com/python-institute-pdf/pcap-pdf.html

https://www.certification-questions.com

You might also like