100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
PCEP Block 1 & 2 Questions and Answers 2024 $14.49
Add to cart

Exam (elaborations)

PCEP Block 1 & 2 Questions and Answers 2024

 0 purchase
  • Course
  • PCEP
  • Institution
  • PCEP

PCEP Block 1 & 2 Questions

Preview 2 out of 6  pages

  • November 27, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • PCEP
  • PCEP
avatar-seller
julianah420
PCEP Block 1 & 2 Questions
A program which is used to transform a source file into an executable binary file is
called: - answer a compiler

A process in which the source code is immediately executed without translating it into a
machine code is called: - answer interpretation

A code written in a high-level programming language is called: - answer a source code

A syntax is a part of a language definition which describes the rules used to build: -
answer the sentences from a set of words

Float - answer a function or reusable code in the Python programming language that
converts values into floating point numbers. (EX : 0.111)

String - answer a collection of alphabets, words or other characters (EX : "Hello")

Boolean - answera Boolean variable can have only two values - True or False.

Integer - answera 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) - answer1 : 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) - answer1 : Exponentation
2 : Multiplication
3 : Subtraction

Which of the following expressions evaluate to zero? (Select 2)
+ 2 ** 1
1 // 2 + 3 * 4
- 2 ** 1
1 ** 2 - 4 // 3 - answer + 2 ** 1 - correct
1 // 2 + 3 * 4 - correct

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 - answer + 2 ** 1 - correct
1 // 2 + 3 * 4 - correct

Please select variable names that are legal in Python. (1)
_fun
i_am_a_variable
@home
For
for
samplevariable
2nd_class - answer_fun
i_am_a_variable
For
samplevariable

Please select variable names that are legal in Python. (2)
maxValue
true5
&sleep;
True
365
securityinspectorsuperintendentsecrectagent007
TRUE - answermaxValue
true5
securityinspectorsuperintendentsecrectagent007
TRUE

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)

Insert the code boxes in the correct positions in order to build a line of code which prints
the values assigned to width and height variables separated by a multiplication sign(x).

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

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 julianah420. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $14.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

65040 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 15 years now

Start selling
$14.49
  • (0)
Add to cart
Added