• ¿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 5 páginas
Examen

D335 Introduction to Python Test Quizzes with Answers Verified 100% Correct

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

D335 Introduction to Python Test Quizzes with Answers Verified 100% Correct

Vista previa del contenido

D335 Introduction to Python Test Quizzes with Answers
Verified 100% Correct
A computer program consists of basic instructions such as:

Input: A program gets data, perhaps from a file, keyboard, touchscreen, network, etc.

Process: A program performs computations on that data, such as adding two values like x + y.

Output: A program puts that data somewhere, such as to a file, screen, or network.

What is Python?

a high-level general-purpose programming language.

Is Python an interpreted language?

Yes, Python is an interpreted language. An interpreted language is a programming language
that executes instructions directly by an interpreter.

When was Python originally released?

1991

Python 1.0 was released in what year?

1994

Why was it named Python?

The name Python came from Guido van Rossum (the creator) being a fan of the TV show Monty
Python.

The Python interpreter is

a computer program that directly executes code written in the Python programming language.

Code is a common word for

the textual representation of a program (and hence programming is also called coding).

, What is a statement?

A statement is a program instruction. A program mostly consists of a series of statements, and
each statement usually appears on its own line.

What is an expression?

Expressions are any code that return a value when it is evaluated by the program; for example,
the code "5 + 6" is an expression that computes a number by adding two values.

A new variable is created by

performing an assignment statement using the = symbol, such as favoritecolor = red

What character denotes comments in Python?

The character '#' denotes comments

For example:

# this is a comment

How do you print text to the screen in Python?

The primary way to print output is to use the built-in function print(). Ex: print('hello world').

What is text enclosed in quotes called?

A string literal.

What is good practice when writing string literals?

Good practice is to use single quotes for shorter strings and double quotes for more
complicated text or text that contains single quotes, like print("Don't eat that!").

How can output with the print() function be moved to a new line?

Output can be moved to the next line by including "\n" in your string, which is known as
a newline character.

Ex: print('1\n2\n3')

Información del documento

Subido en
3 de marzo de 2025
Número de páginas
5
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$10.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.
KenAli
2.6
(18)
Vendido
121
Seguidores
5
Artículos
26045
Última venta
3 días 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