Coding - PCEP-30-02 Exam Block #1
A process in which the source code is immediately executed without translating it into a
machine code is called: - answer interpretation
Which of the following expressions evaluate to zero?
(select two answers.) - answer1 ** // 3
1 // 3 * 3 ** 0
A syntax is a part of a language definition which describes the rules used to build: -
answer the sentences from a set of words
Please select variable names that are legal in Python. – answer max Value
true5
securityinspectorsuperintendentsecrectagent007
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.) - answer 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.) - answerpassword = input("Enter the
password:")
What is the expected output of the following code?
a=5
#a=a+a
print(a) - answer5
What is the expected output of the following code?
a = 1# + 5
a=a+a
#a = a + 1
print(a) # Line 4 - answer2
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.) - answerfloor = int(input("Enter floor
number:"))
A process in which the source code is immediately executed without translating it into a
machine code is called: - answer interpretation
Which of the following expressions evaluate to zero?
(select two answers.) - answer1 ** // 3
1 // 3 * 3 ** 0
A syntax is a part of a language definition which describes the rules used to build: -
answer the sentences from a set of words
Please select variable names that are legal in Python. – answer max Value
true5
securityinspectorsuperintendentsecrectagent007
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.) - answer 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.) - answerpassword = input("Enter the
password:")
What is the expected output of the following code?
a=5
#a=a+a
print(a) - answer5
What is the expected output of the following code?
a = 1# + 5
a=a+a
#a = a + 1
print(a) # Line 4 - answer2
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.) - answerfloor = int(input("Enter floor
number:"))