




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A set of entry-level exam questions and answers related to python programming. It covers fundamental concepts such as the importance of programs, computer languages, compilation vs. Interpretation, and python-specific features. The questions are designed to test basic understanding and are suitable for beginners learning python. The document also touches on the history of python, its creator guido van rossum, and its strengths and weaknesses compared to other programming languages. It serves as a useful resource for self-assessment and exam preparation.
Typology: Exams
1 / 8
This page cannot be seen from the preview
Don't miss anything!





Chapter 0 : Introduction - Correct Answer- Introduction: Section 1 - Correct Answer-Absolute Basics Why are programs important? - Correct Answer-1) A program makes a computer usable.
size of their ILs, and the instructions could be completely different in different models. What are natural languages? - Correct Answer-Languages spoken by humans that 'naturally' change over time. What four things comprise a language? - Correct Answer-1) An alphabet
What is compilation? - Correct Answer-The source program is translated once by getting the file containing the machine code; which allows for distribution of that code. What is the program that performs compilation? - Correct Answer-Compiler or Translator. What is interpretation? - Correct Answer-The source program is translated each time it has to be run. This means that you cannot just distribute the source code as- is, because the end-user also needs the interpreter to execute the source file. What is the program the performs interpretation? - Correct Answer-Interpreter. What kind of text does a source file need to been in? - Correct Answer-Pure Text What is pure text? - Correct Answer-Text that is without any decorations like different fonts, colors, embedded images or other media. Think Notepad. How does an interpreter usually read a source file? - Correct Answer-Top to bottom, left to right. How does the interpreter check for errors? - Correct Answer-It reads every line of code and reports an error where execution error occurred rather than where the error actually is. What is the trio of the interpreter? - Correct Answer-Read - Check - Execute. It does this for every line of code.
What is unique about the trio of the interpreter? - Correct Answer-It can be utilized many more times than the lines of the source code because different lines of code can be executed more than once. How does a compiler handle an error? - Correct Answer-If the compiler finds an error, it finishes work immediately and kicks out an error message. What is considered normal behavior for an execution model? - Correct Answer-It is possible that a significant part of the code may be executed successfully before the interpreter finds an error. What are the three advantages of using a compiler? - Correct Answer-1) The execution of the translated code is usually faster.
Introduction: Section 2 - Correct Answer-A tool, not a reptile. How did Python get its name? - Correct Answer-Monty Python What are the two nutrients of a programmer? - Correct Answer-Pizza and Monty Python Who created Python? - Correct Answer-Guido van Rossum What were Guido's goals for Python? - Correct Answer-1) An easy and intuitive language just as powerful as those of major competitors.