Python PCEP Exam Review. Question and answers correctly solved
5 views 0 purchase
Module
PCEP
Institution
PCEP
Python PCEP Exam Review. Question and answers correctly solved Python PCEP Exam Review
End a statement in python - correct answer New line (meaningful whitespace) or ; mid-line
Extend a statement - correct answer extends previous line to current line
Code blocks - correct answer ...
Python PCEP Exam Review
End a statement in python - correct answer ✔New line (meaningful
whitespace) or ; mid-line
Extend a statement - correct answer ✔\ extends previous line to current line
Code blocks - correct answer ✔Segments of code defined by an aligned
margin. Always preceded by a statement ending in a colon : on the previous
line.
Calling a function - correct answer ✔function() - no input needed
function(argument) - one or more argument needed
semantics - correct answer ✔The meaning of keywords or statements made
with them
syntax - correct answer ✔The structure and order of statements in python -
certain functions have a tightly defined syntax
Lexis - correct answer ✔The 'word list' of a language
Compilation - correct answer ✔Source code is translated once into machine
code.
Interpretation - correct answer ✔Interpretation translates source code every
time it is run, meaning that you need to have an interpreter in order to run the
code.
, Python 2 - correct answer ✔Still widely used but no longer in active
development. Not compatible with Python 3 files.
Python 3 - correct answer ✔Current version under active development. All
versions of P3 are compatible. Also known as CPython for 'canonical python'.
Cython - correct answer ✔Version of Python more suited to complex
mathematics - translated into C after writing.
Jython - correct answer ✔Python 2 that is translated into Java,
PyPy or RPython - correct answer ✔Subset of python used by developers to
work on the language itself.
Editors - correct answer ✔Support writing the code - e.g. colour coding
different semantic elements
Consoles - correct answer ✔Allow you to execute or terminate your code
Debuggers - correct answer ✔Sequentially run every element allowing
inspection at each point to look for errors.
Reserved words - correct answer ✔Terms in Python that are functions and
cannot be used as variable names
Positional arguments - correct answer ✔Input order of arguments as
parameters of a function determines order of execution. Referred to as args
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 £11.16. You're not tied to anything after your purchase.