• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 1 fuera de 4 páginas
Examen

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

Document preview thumbnail
Vista previa 1 fuera de 4 páginas

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.

Vista previa del contenido

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

Información del documento

Subido en
26 de marzo de 2025
Número de páginas
4
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$13.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
YourExamplug
4.1
(74)
Vendido
228
Seguidores
27
Artículos
18118
Última venta
1 día hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes