PCEP Block 1 Questions with complete solution PCEP Block 1 & 2 Questions TSA High School Coding Practice Questions.
A program which is used to transform a source file into an executable binary file is called: - correct answer a compiler
A process in which the source code is immediately ex...
PCEP Block 1 & 2 Questions TSA High
School Coding Practice Questions.
A program which is used to transform a source file into an executable binary
file is called: - correct answer ✔a compiler
A process in which the source code is immediately executed without
translating it into a machine code is called: - correct answer ✔interpretation
A code written in a high-level programming language is called: - correct
answer ✔a source code
A syntax is a part of a language definition which describes the rules used to
build: - correct answer ✔the sentences from a set of words
Float - correct answer ✔a function or reusable code in the Python
programming language that converts values into floating point numbers. (EX :
0.111)
String - correct answer ✔a collection of alphabets, words or other characters
(EX : "Hello")
Boolean - correct answer ✔a Boolean variable can have only two values -
True or False.
Integer - correct answer ✔a whole number, positive or negative, without
decimals, of unlimited length. (EX : 1)
, 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. (1) - correct answer ✔1 : Exponentation
2 : Division
3 : Addition
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. (2) - correct answer ✔1 : Exponentation
2 : Multiplication
3 : Subtraction
Which of the following expressions evaluate to a non-zero result? (Select 2)
+ 2 ** 1
1 // 2 + 3 * 4
- 2 ** 1
1 ** 2 - 4 // 3 - correct answer ✔ + 2 ** 1 - correct
1 // 2 + 3 * 4 - correct
Please select variable names that are legal in Python. (1)
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller flyhigher329. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £9.96. You're not tied to anything after your purchase.