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

D280A ITSW 3151 JavaScript Programming OA (Qns & Ans) 2025

Document preview thumbnail
Vista previa 4 fuera de 37 páginas

D280A ITSW 3151 JavaScript Programming OA (Qns & Ans) 2025D280A ITSW 3151 JavaScript Programming OA (Qns & Ans) 2025D280A ITSW 3151 JavaScript Programming OA (Qns & Ans) 2025

Vista previa del contenido

D280A ITSW 3151

JavaScript Programming

Objective Assessment (Qns & Ans)

2025
General Instructions

1. Read All Questions Carefully: Make sure you understand each question.
2. Time Management: You have a specific amount of time to complete the exam.
Keep an eye on the clock and pace yourself.
3. Allowed Materials: Only use materials that are explicitly allowed. Unauthorized
materials can lead to disqualification.
4. ANS Format: Follow the required format for your ANS. For example, multiple-
choice questions might need you to select the best ANS, while essay questions
require detailed responses.
5. Academic Integrity: Adhere to the university's honor code. Any form of cheating or
plagiarism is strictly prohibited.
6. Technical Requirements: Ensure your computer and internet connection are
stable. For online exams, you might need a webcam and microphone for proctoring
purposes.
7. Submission: Submit your ANS before the time expires. Late submissions might
not be accepted.




©2024/2025

,1. Which of the following best describes the primary goal of
JavaScript in web development?
- A. To manage daily business operations
- B. To create dynamic and interactive web content
- C. To develop new software applications
- D. To conduct market research
- ANS: B
- Rationale: The primary goal of JavaScript in web
development is to create dynamic and interactive web content,
enhancing user experience and functionality.


2. What is the primary function of the
`document.getElementById()` method in JavaScript?
- A. To manage network traffic
- B. To select an HTML element by its ID
- C. To encrypt data
- D. To conduct vulnerability assessments
- ANS: B
- Rationale: The `document.getElementById()` method is
used to select an HTML element by its ID, allowing developers to
manipulate the element's content and attributes.

©2024/2025

,3. Which of the following is a key feature of JavaScript
closures?
- A. Physical security
- B. Lexical scoping
- C. Financial analysis
- D. Inventory management
- ANS: B
- Rationale: Lexical scoping is a key feature of JavaScript
closures, allowing functions to access variables from their parent
scope even after the parent function has closed.


Fill-in-the-Blank Questions
4. The __________ keyword is used to declare a variable with
block scope in JavaScript.
- ANS: let
- Rationale: The `let` keyword is used to declare a variable
with block scope in JavaScript, ensuring that the variable is only
accessible within the block where it is defined.


5. In JavaScript, __________ refers to the process of converting
a value from one data type to another.
- ANS: type coercion
©2024/2025

, - Rationale: Type coercion refers to the process of converting
a value from one data type to another, allowing for flexible and
dynamic data handling in JavaScript.


True/False Questions
6. JavaScript is a statically typed language.
- ANS: False
- Rationale: JavaScript is a dynamically typed language,
meaning that variables can hold values of any data type and their
types can change at runtime.


7. The `const` keyword is used to declare a variable that cannot
be reassigned.
- ANS: True
- Rationale: The `const` keyword is used to declare a variable
that cannot be reassigned, ensuring that the variable's value
remains constant throughout the program.


Multiple Response Questions
8. Which of the following are common data types in JavaScript?
(Select all that apply)
- A. Number
- B. String

©2024/2025

Información del documento

Subido en
20 de diciembre de 2024
Número de páginas
37
Escrito en
2024/2025
Tipo
Examen
Contiene
Desconocido
$18.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.
emiliophd
3.4
(21)
Vendido
191
Seguidores
46
Artículos
4723
Última venta
1 mes 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