• ¿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 2 fuera de 15 páginas
Examen

Python Institute Entry Level

Document preview thumbnail
Vista previa 2 fuera de 15 páginas

What is CPython? - answer-It's the default, reference implementation of Python, written in the C language What do you call a file containing a program written in a high-level programming language? - answer-A source file What is the expected behavior of the following program? print("Hello!") - answer-The program will output: Hello! to the screen What is machine code? - answer-A low-level programming language consisting of binary digits/bits that the computer reads and understands What are the four fundamental elements that make a language? - answer-An alphabet, a lexis, phonetics, and semantics What is true about compilation? - answer-- It tends to be faster than interpretation - The code is converted directly into machine code executable What is the best definition of a script? - answer-It's a text file that contains instructions which make up a Python program What is the expected behavior of the following program? prin("Goodbye!") - answer-The program will generate an error message on the screen Select the true statements: - Python it free, open-source, and multiplatform - Python 3 is backwards compatible with Python 2 - Python is a good choice for creating and executing tests for applications - Python is a good choice for low-level programming, e.g., when you want to implement an effective driver - answer-- Python it free, open-source, and multiplatform - Python is a good choice for creating and executing tests for applications What do you call a command-line interpreter which lets you interact with your OS and execute Python commands and scripts? - answer-A console Python is an example of: - answer-High-level programming language A complete set of known commands is called: - answer-an instruction list What is a source code? - answer-A program written in a high-level programming language What do you call a computer program which directly executes instructions written in a programming language? - answer-An interpreter What Python version is covered in this course? - answer-Python 3 What is CPython (Quiz)? - answer-The default implementation of the Python programming language What is IDLE? - answer-An acronym that stands for Integrated Development and Learning Environment for Python What do you call a tool that lets you launch your code step-by-step and inspect it at each moment of execution? - answer-A debugger How did Python, the programming language, get its name? - answer-Guido van Rossum named it to honor Monty Python's Flying Circus, a BBC comedy series popular in the 1970s Which one of the following is an example of a Python file extension? - answer-py The escape character owes its name to the fact that it: - answer-changes the meaning of the character next to it The meaning of the positional parameter is determined by its: - answer-position The most important difference between integer and floating-point numbers lies in the fact that: - answer-they are stored differently in the computer memory The 0x prefix means that the number after it is denoted as - answer-a hexadecimal The // operator - answer-performs integer division The result of the following addition: 123 + 0.0 - answer-is equal to 123.0 Only one of the following statements is true: - addition precedes multiplication - multiplication precedes addition - neither statement can be evaluated - answer-multiplication precedes addition Right-sided binding means that the following expression: 1 ** 2 ** 3 will be evaluated: - answer-from right to left A keyword is a word that (select two): - is the most important word in the whole program - cannot be used a as a variable name - cannot be used as a function name - answer-- cannot be used a as a variable name - cannot be used as a function name A value returned by the input() function is: - answer-a string Which of the following variable names are illegal? (select two) - TRUE - true - and - True - answer-- True - and What is the output of the following snippet? y = 2 + 3 * 5. print(Y) - answer-the snippet will cause an execution error Left-sided binding determines that the result of the following expression 1 // 2 * 3 is equal to: - answer-0 What is the output of the following snippet if the user enters two lines containing 2 and 4 respectively? x = input() y = input() print(x+y) - answer-24 What is the output of the following snippet if the user enters two lines containing 2 and 4 respectively? x = int(input()) y = int(input()) print(x + y) - answer-6 The 0o prefix means that the number after it is denoted as: - answer-octal The n digraph forces the print() function to: - answer-break the output line The result of the following division: 1 /1 - answer-is equal to 1.0 The print() function can output values of: - answer-any number of arguments (including zero) What is the output of the following snippet? x = 1 y = 2 z = x x = y y = z print(x,y) - answer-2 1 The ** operator: - answer-performs exponentiation What is the output of the following snippet if the user enters two lines containing 3 and 6 respectively? x = input() y = int(input()) print(x * y) - answer-333333 The value twenty point twelve times ten raised to the power of eight should be written as: - answer-20.12E8 Which of the following statements are true? (select two) - The right argument of the % operator cannot be zero - The ** operator uses right-sided binding - Addition precedes multiplication - The result of the / operator is always an integer value - answer-- The right argument of the % operator cannot be zero - The ** operator uses right-sided binding What is the output of the following snippet if the user enters two lines containing 2 and 4 respectively? x = int(input()) y = int(input()) x = x // y y = y // y print(y) - answer-the code will cause a runtime error

Vista previa del contenido

PYTHON INSTITUTE ENTRY LEVEL
What is CPython? - answer-It's the default, reference implementation of Python, written in the C
language

What do you call a file containing a program written in a high-level programming language? - answer-A
source file

What is the expected behavior of the following program?
print("Hello!") - answer-The program will output: Hello!
to the screen

What is machine code? - answer-A low-level programming language consisting of binary digits/bits that
the computer reads and understands

What are the four fundamental elements that make a language? - answer-An alphabet, a lexis,
phonetics, and semantics

What is true about compilation? - answer-- It tends to be faster than interpretation
- The code is converted directly into machine code executable

What is the best definition of a script? - answer-It's a text file that contains instructions which make up a
Python program

What is the expected behavior of the following program?
prin("Goodbye!") - answer-The program will generate an error message on the screen

Select the true statements:
- Python it free, open-source, and multiplatform
- Python 3 is backwards compatible with Python 2
- Python is a good choice for creating and executing tests for applications
- Python is a good choice for low-level programming, e.g., when you want to implement an effective
driver - answer-- Python it free, open-source, and multiplatform
- Python is a good choice for creating and executing tests for applications

What do you call a command-line interpreter which lets you interact with your OS and execute Python
commands and scripts? - answer-A console

Python is an example of: - answer-High-level programming language

A complete set of known commands is called: - answer-an instruction list

What is a source code? - answer-A program written in a high-level programming language

What do you call a computer program which directly executes instructions written in a programming
language? - answer-An interpreter

, What Python version is covered in this course? - answer-Python 3

What is CPython (Quiz)? - answer-The default implementation of the Python programming language

What is IDLE? - answer-An acronym that stands for Integrated Development and Learning Environment
for Python

What do you call a tool that lets you launch your code step-by-step and inspect it at each moment of
execution? - answer-A debugger

How did Python, the programming language, get its name? - answer-Guido van Rossum named it to
honor Monty Python's Flying Circus, a BBC comedy series popular in the 1970s

Which one of the following is an example of a Python file extension? - answer-py

The escape character owes its name to the fact that it: - answer-changes the meaning of the character
next to it

The meaning of the positional parameter is determined by its: - answer-position

The most important difference between integer and floating-point numbers lies in the fact that: -
answer-they are stored differently in the computer memory

The 0x prefix means that the number after it is denoted as - answer-a hexadecimal

The // operator - answer-performs integer division

The result of the following addition:
123 + 0.0 - answer-is equal to 123.0

Only one of the following statements is true:
- addition precedes multiplication
- multiplication precedes addition
- neither statement can be evaluated - answer-multiplication precedes addition

Right-sided binding means that the following expression:
1 ** 2 ** 3
will be evaluated: - answer-from right to left

A keyword is a word that (select two):
- is the most important word in the whole program
- cannot be used a as a variable name
- cannot be used as a function name - answer-- cannot be used a as a variable name
- cannot be used as a function name

A value returned by the input() function is: - answer-a string

Which of the following variable names are illegal? (select two)

Información del documento

Subido en
14 de agosto de 2024
Número de páginas
15
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$11.49

¿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.
TOPDOCTOR
5.0
(1)
Vendido
10
Seguidores
5
Artículos
3387
Última venta
1 año 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