• ¿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 2

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

BSIT 5 – Programming and Application Development 2

Vista previa del contenido

1. What is the primary purpose of a constructor in object-oriented programming?

A. To define methods

B. To initialize objects

C. To create variables

D. To define attributes

Answer: B

Rationale: A constructor is a special function in OOP that is used to initialize

objects when they are created.




2. What does HTML stand for?

A. HyperText Markup Language

B. Hyper Transfer Markup Language

C. Home Text Markup Language

D. Hyper Tool Markup Language

Answer: A

,Rationale: HTML stands for HyperText Markup Language, which is used to

structure content on the web.




3. In JavaScript, which of the following is used to define a function?

A. def functionName() {}

B. function functionName() {}

C. func functionName() {}

D. declare functionName() {}

Answer: B

Rationale: The function keyword is used to define a function in JavaScript.




4. Which of the following is used to insert a comment in Java?

A. /* comment */

B. # comment

C. -- comment

D. // comment

Answer: D

Rationale: // is used for single-line comments in Java.

, 5. Which of the following is a correct way to declare a variable in JavaScript?

A. let x = 10;

B. int x = 10;

C. var x => 10;

D. x = 10;

Answer: A

Rationale: let is used to declare variables in JavaScript with block-level scope.




6. What is the role of an algorithm in programming?

A. To execute the program efficiently

B. To describe the logical steps to solve a problem

C. To test the program

D. To compile the code

Answer: B

Rationale: An algorithm describes the logical steps to solve a problem, providing

the foundation for the program’s logic.

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