Introduction to Programming in Python Vocabulary Q&A
Introduction to Programming in Python Vocabulary Q&A algorithm - ANSWER: A set of commands that returns a value. This differs from a procedure, which is a set of commands that doesn't necessarily have to return a value. arguments - ANSWER: The inputs to a procedure. (may also be called parameters) arithmetic operators - ANSWER: a mathematical function that takes two operands and performs a calculation on them. Examples: +, -, *, **, %, /, // attributes - ANSWER: Characteristics of an object which may be used to reference other objects or save object state information. Boolean - ANSWER: A value that is either True or False code modularity - ANSWER: Dividing software or an application into smaller modules. This provides prewritten code which saves resources and provides greater manageability. comparison operator - ANSWER: Used to make a comparison between two values. Examples: , , =, =, ==, != compiled language - ANSWER: You write source code, and compiler goes through that code and creates a separate file containing the machine code. That new file is used to run the program. Can be faster than interpreted code. Must be compiled for a specific platform. compiler - ANSWER: A program that takes source code and converts it to machine code by producing a separate file. concatenate - ANSWER: To connect or link in a series or chain. dictionary - ANSWER: Provides a mapping between keys, which can be values of any immutable type, and values, which can be any value. Because this is implemented using a hash table, the time to lookup a value does not increase (significantly) even when the number of keys increases.
Información del documento
- Subido en
- 21 de junio de 2024
- Número de páginas
- 5
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas