• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

Module 1.1 - Introduction to Programming with Python Questions and Complete Solutions Graded A+

Document preview thumbnail
Preview 1 out of 4 pages

Module 1.1 - Introduction to Programming with Python Questions and Complete Solutions Graded A+ Machine Language - Answer: Computers have their own language too, which is very rudimentary. Instruction List (IL) - Answer: A complete set of known commands is called an Natural Languages - Answer: they are still evolving, and new words are created every day as old words disappear. These languages are called Alphabet - Answer: a set of symbols used to build words of a certain language Lexis - 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 - 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 - 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) The IL - Answer: the alphabet of a machine language. This is the simplest and most primary set of symbols we can use to give commands to a computer. It's the computer's mother tongue. Source Code - Answer: A program written in a high-level programming language Source Files - Answer: the file containing the source code is Alphabetically - Answer: a program needs to be written in a recognizable script, such as Roman, Cyrillic, etc. Lexically - Answer: 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 - Answer: each language has its rules and they must be obeyed; Semantically - Answer: the program has to make sense. Compilation - Answer: the source program is translated once (however, this act must be repeated each time you modify the source code) by getting a file (e.g., an .exe file if the code is intended to be run under MS Windows) containing the machine code; now you can distribute the file worldwide; the program that performs this translation is called a compiler or translator; Interpretation - 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, as it interprets the code every time it is intended to be executed; it also means that you cannot just distribute the source code as-is, because the end-user also needs the interpreter to execute it. Computer File - Answer: Let's assume once more that you have written a program. Now, it exists as a Text Files - Answer: a computer program is actually a piece of text, so the source code is usually placed in Pure Text - Answer: without any decorations like different fonts, colors, embedded images or other media Error Message - Answer: If the compiler finds an error, it finishes its work immediately. The only result in this case is an Compilation Advantages - 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. Compilation Disadvantages - 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. Interpretation Advantages - 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. Interpretation Disadvantages - 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. Monty Python's Flying Circus - Answer: the name of the Python programming language comes from an old BBC television comedy sketch series called Guido van Rossum - Answer: Python was created by Open Source - Answer: Anyone can contribute to its development Perl and Ruby - Answer: Pythons top 2 competitors all the newer versions of Python 3 are - Answer: backward compatible with the previous versions of Python 3.

Content preview

Module 1.1 - Introduction to
Programming with Python Questions
and Complete Solutions Graded A+
Machine Language - Answer: Computers have their own language too, which is very rudimentary.



Instruction List (IL) - Answer: A complete set of known commands is called an



Natural Languages - Answer: they are still evolving, and new words are created every day as old words
disappear. These languages are called



Alphabet - Answer: a set of symbols used to build words of a certain language



Lexis - 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 - 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 - 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)



The IL - Answer: the alphabet of a machine language. This is the simplest and most primary set of
symbols we can use to give commands to a computer. It's the computer's mother tongue.



Source Code - Answer: A program written in a high-level programming language



Source Files - Answer: the file containing the source code is

Document information

Uploaded on
March 26, 2025
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$13.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
YourExamplug
4.1
(74)
Sold
228
Followers
27
Items
18118
Last sold
1 day ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions