PCEP Question and answers correctly solved PCEP - Certified Entry-Level Python Programmer Study Cards
Alphabet - correct answer a set of symbols used to build words of a certain language (e.g., the Latin alphabet for English, the Cyrillic alphabet for Russian, Kanji for Japanese, and so on)
...
PCEP - Certified Entry-Level Python
Programmer Study Cards
Alphabet - correct answer ✔a set of symbols used to build words of a certain
language (e.g., the Latin alphabet for English, the Cyrillic alphabet for
Russian, Kanji for Japanese, and so on)
Lexis - correct answer ✔(aka a dictionary) a set of words the language offers
its users (e.g., the word "computer" comes from the English language
dictionary, while "cmoptrue" doesn't; the word "chat" is present both in English
and French dictionaries, but their meanings are different)
Syntax - correct answer ✔a set of rules (formal or informal, written or felt
intuitively) used to determine if a certain string of words forms a valid
sentence (e.g., "I am a python" is a syntactically correct phrase, while "I a
python am" isn't)
Semantics - correct answer ✔a set of rules determining if a certain phrase
makes sense (e.g., "I ate a doughnut" makes sense, but "A doughnut ate me"
doesn't)
Source code - correct answer ✔A program written in a high-level
programming language (in contrast to the machine code executed by
computers)
What compositions must a computer program have to make sense? - correct
answer ✔A computer program must make sense:
,alphabetically - a program needs to be written in a recognizable script, such
as Roman, Cyrillic, etc.
lexically - each programming language has its dictionary and you need to
master it; thankfully, it's much simpler and smaller than the dictionary of any
natural language;
syntactically - each language has its rules and they must be obeyed;
semantically - the program has to make sense.
What are two different ways of transforming a program from a high-level
programming language into machine language? - correct answer
✔Compilation and Interpretation
What is compilation? - correct answer ✔The translation of source code into
machine code.
What is interpretation? - correct answer ✔you (or any user of the code) can
translate the source program each time it has to be run; the program
performing this kind of transformation is called an interpreter.
How is source code stored and what requirements must it meet? - correct
answer ✔Source code is stored in a computer file, typically a text file. The
text file must be a pure text file without any decorations like different fonts,
colors, embedded images or other media.
Advantages to compilation? - correct answer ✔- the execution of the
translated code is usually faster;
, - only the user has to have the compiler - the end-user may use the code
without it;
-the translated code is stored using machine language - as it is very hard to
understand it, your own inventions and programming tricks are likely to remain
your secret.
Advantages to interpretation? - correct answer ✔- you can run the code as
soon as you complete it - there are no additional phases of translation;
- the code is stored using programming language, not machine language - this
means that it can be run on computers using different machine languages;
you don't compile your code separately for each different architecture.
Disadvantages to compilation? - correct answer ✔- the compilation itself may
be a very time-consuming process - you may not be able to run your code
immediately after making an amendment;
- you have to have as many compilers as hardware platforms you want your
code to be run on.
Disadvantages to interpretation? - correct answer ✔-don't expect
interpretation to ramp up your code to high speed - your code will share the
computer's power with the interpreter, so it can't be really fast;
-both you and the end user have to have the interpreter to run your code.
What are scripting languages? - correct answer ✔languages designed to be
utilized in the interpretation manner.
Voordelen van het kopen van samenvattingen bij Stuvia op een rij:
Verzekerd van kwaliteit door reviews
Stuvia-klanten hebben meer dan 700.000 samenvattingen beoordeeld. Zo weet je zeker dat je de beste documenten koopt!
Snel en makkelijk kopen
Je betaalt supersnel en eenmalig met iDeal, creditcard of Stuvia-tegoed voor de samenvatting. Zonder lidmaatschap.
Focus op de essentie
Samenvattingen worden geschreven voor en door anderen. Daarom zijn de samenvattingen altijd betrouwbaar en actueel. Zo kom je snel tot de kern!
Veelgestelde vragen
Wat krijg ik als ik dit document koop?
Je krijgt een PDF, die direct beschikbaar is na je aankoop. Het gekochte document is altijd, overal en oneindig toegankelijk via je profiel.
Tevredenheidsgarantie: hoe werkt dat?
Onze tevredenheidsgarantie zorgt ervoor dat je altijd een studiedocument vindt dat goed bij je past. Je vult een formulier in en onze klantenservice regelt de rest.
Van wie koop ik deze samenvatting?
Stuvia is een marktplaats, je koop dit document dus niet van ons, maar van verkoper flyhigher329. Stuvia faciliteert de betaling aan de verkoper.
Zit ik meteen vast aan een abonnement?
Nee, je koopt alleen deze samenvatting voor €13,34. Je zit daarna nergens aan vast.