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

Cs 1101 Questions With 100% Correct Answers..

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

CS 1101 QUESTIONS WITH 100% CORRECT ANSWERS

Vista previa del contenido

A program stored in a file (usually one that will be interpreted).


Give this one a try later!


script




What will the output of this python program be?
def test_function( length, width, height):
print ("the area of the box is ",lengthwidthheight)
return lengthwidthheight
l = 12.5
w=5
h=2
test_function(l, w, h)
a. The area of the box is 125
b. The area of the box is 125.0

,c. The area of the box is 120
d. 125.0


Give this one a try later!


b. The area of the box is 125.0




The meaning of a program.


Give this one a try later!


semantics




What output will the following code produce?
n = 10
while n != 1:
print (n,end=' ')
if n % 2 == 0: # n is even
n = n // 2
else: # n is odd
n=n*3+1
a. 10 5 16 8 4 2
b. None an error will be displayed
c. 8 4 2
d. 9 28 14 7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2


Give this one a try later!


a. 10 5 16 8 4 2

, If you assign the result a void function to a variable in Python, you get:
a. an empty string
b. the value -1
c. the value 0
d. the special value None
e. an exception


Give this one a try later!


d. the special value None




Handling an exception with a try statement is called throwing an exception.
True
False


Give this one a try later!


False




A property of a program that can run on more than one kind of computer.


Give this one a try later!


portability




What is the output of the following statements?
pi = int(3.14159)

Información del documento

Subido en
22 de julio de 2026
Número de páginas
25
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$10.50

¿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.
TestITandFixIT
3.7
(13)
Vendido
58
Seguidores
0
Artículos
7529
Última venta
2 semanas 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