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

ITP 150 - Python Midterm Study Guide Questions With Correct Answers

Document preview thumbnail
Vista previa 3 fuera de 17 páginas

ITP 150 - Python Midterm Study Guide Questions With Correct Answers

Vista previa del contenido

ITP 150 - Python Midterm Study Guide
Questions With Correct Answers

What is a python built in function and some examples?
| | | | | | | | |




It is a function that is built-into the core Python language. Some
| | | | | | | | | | | |



common built-in functions include: print, input, and type
| | | | | | |




function definition |




a function is a block of code which only runs when it is called. You can
| | | | | | | | | | | | | | | |



pass data, known as parameters. A function can return data as a resul.
| | | | | | | | | | | |




How to create and call a function with arguments
| | | | | | | |




def test_names(first_name, sec_name):
| |




print("Hello", first_name, "and", sec_name) | | |




my_function(Mary, Claire) |




parameter or argument | |

,a variable listed inside the parentheses in the function definition
| | | | | | | | |




What is the standard python coding style
| | | | | |




snake case - lower case+underscores
| | | |




str: joe, int: 7, float: 3.90, bool: true,
| | | | | | |




name = "Joe" | |




num = 7 | |




dec = 3.90
| |




reg = True
| |




What data type is the console data/input() function
| | | | | | |




it is always a string data type however we can change this
| | | | | | | | | | |




Change the input into different data types: input("Enter age")
| | | | | | | |




str(input("Enter age")) |




int(input("Enter age")) |

,float(input("Enter age"))
|




bool(input("Enter age"))
|




True or False: Variables cannot begin with a number
| | | | | | | |




True




True or False: Python is an interpreted language
| | | | | | |




True




True or False: Python is case-sensitive
| | | | |




True




True or False: Variables names can have spaces
| | | | | | |




False




True or False: This is a proper variable name 1value
| | | | | | | | |

Información del documento

Subido en
28 de noviembre de 2026
Número de páginas
17
Escrito en
2026/2027
Tipo
Examen
Contiene
Preguntas y respuestas
$14.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.
Lectphilip
4.0
(46)
Vendido
319
Seguidores
8
Artículos
28167
Última venta
2 horas 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