You have the following le.
You run the le by executing the following command in the terminal. python index.py 42 3 What is the expected output?
A. 45
B. 424242
C. 423
D. 126
E. The code is erroneous.
You create a function to calculate the power of a number by using Python. You need to ensure that the function is documented with comments. You create the following code. Line numbers are included for reference only.
Which of the following statements are true? (Choose two.)
A. The string in Line 06 will be interpreted as a comment.
B. The pond sign (#) is optional for lines 02 and 03.
C. Line 07 contains an inline comment.
D. Lines 01 through 04 will be ignored for syntax checking.
The print() function can output values of:
A. any number of arguments (including zero)
B. any number of arguments (excluding zero)
C. not more than ve arguments
D. just one argument
What is the expected output of the following code?
A. The code is erroneous.
B. 2
C. 3
D. 1
The print() function is an example of:
A. a Python built-in function
B. a user-de ned function
C. an anonymous function
D. a Python output method
What is IDLE?
A. An acronym that stands for Integrated Development and Learning Environment for Python
B. An acronym that stands for Interactive Development and Learning Extension
C. A version of Python
You have the following le.
You want the following output: The average score for Peter is 200.00. Which command do you have to execute in the command line?
A. python index.py Peter 100
B. python index.py Peter 100 200 300
C. The code is erroneous.
D. python index.py Peter 100 200
A keyword is a word: (Choose two.)
A. that cannot be used as a variable name
B. that cannot be used as a function name
C. is the most important word in the whole program
What is CPython?
A. The default implementation of the Python programming language
B. Another name for CPython, a superset of the Python programming language
C. A compiled language used to perform high-level programming functions
ASCII is:
A. a character name
B. short for American Standard Code for Information Interchange
C. a prede ned Python variable name
D. a standard Python module name
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Python Institute exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PCEP-30-02 exam preparations and Python Institute certification application, do not hesitate to visit our Vcedump.com to find your solutions here.