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

BSIT 5 – Programming and Application Development 4

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

BSIT 5 – Programming and Application Development 4

Vista previa del contenido

1. What does HTTP stand for?

A. HyperText Transmission Protocol

B. Hyper Transfer Text Protocol

C. HyperText Transport Protocol

D. HyperText Markup Protocol

Answer: A

Rationale: HTTP stands for HyperText Transfer Protocol, used for transferring

web pages on the internet.




2. What is the purpose of the return statement in a function?

A. To stop the function

B. To execute the next statement

C. To return a value from the function

D. To declare a variable

Answer: C

,Rationale: The return statement is used to send a value back from a function to the

caller.




3. Which of the following is a feature of Object-Oriented Programming?

A. Functions

B. Inheritance

C. Loops

D. Arrays

Answer: B

Rationale: Inheritance is one of the key features of OOP, allowing one class to

inherit properties and methods from another.




4. What type of error is raised when Python encounters a syntax mistake?

A. Runtime Error

B. Logic Error

C. Syntax Error

D. Name Error

Answer: C

, Rationale: A Syntax Error occurs when Python encounters code that doesn't

conform to the syntax rules.




5. What is the output of the following code in Python?

python

Copy

print(9 // 4)

A. 2

B. 2.25

C. 3

D. 4

Answer: A

Rationale: The // operator performs floor division, which returns the quotient

without the decimal part.




6. Which of the following is the correct syntax to define a class in Python?

A. class MyClass()

B. class MyClass:

Información del documento

Subido en
17 de marzo de 2025
Número de páginas
29
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$10.99

¿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
douglasmugwe82
5.0
(1)
Vendido
2
Seguidores
0
Artículos
4215
Ú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