

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Coding – PCEP-30-02 Exam Block #1 Python Programming Fundamentals Practice & Study Guide 2026-3.docx
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


A process in which the source code is immediately executed without translating it into a machine code is called: - ANS ✔✔interpretation Which of the following expressions evaluate to zero? (select two answers.) - ANS ✔✔1 ** 2 / 2 // 3 1 // 3 * 3 ** 0 A syntax is a part of a language definition definition which describes the rules used to build: - ANS ✔✔the sentences from a set of words Please select variable names that are legal in Python. - ANS ✔✔maxValue true securityinspectorsuperintendentsecrectagent TRUE Insert the code boxes in the correct positions in order to build a line of code which asks the user for a float value and assigns it to the price variable. (Note: some code boxes will not be used.) - ANS ✔✔price = float(input("Enter item price:")) Insert the code boxes in the correct positions in order to build a line of code which asks the user for a string value and assigns it to the password variable. (Note: some code boxes will not be used.) - ANS ✔✔password = input("Enter the password:")
What is the expected output of the following code? a = 5
print(a) - ANS ✔✔ 5 What is the expected output of the following code? a = 1# + 5 a = a + a #a = a + 1 print(a) # Line 4 - ANS ✔✔ 2 Insert the code boxes in the correct positions in order to build a line of code which asks the user for an integer value and assigns it to the floor variable. (Note: some code boxes will not be used.) - ANS ✔✔floor = int(input("Enter floor number:")) Match the given literals - ANS ✔✔String = False, Float = 1.414, Boolean = True, Integer = 1_000_ A program which is used to transform a source file into an executable binary file is called: - ANS ✔✔a compiler Arrange the arithmetic operations in the order which reflects their priorities, where the top-most position has the highest priority and the bottom-most position has the lowest priority. - ANS ✔✔Exponentiation Multiplication Subtraction