100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

IT-ITSW 2120(D276) Web Development Foundations Latest OA Guide 2025

Puntuación
-
Vendido
-
Páginas
30
Subido en
09-05-2025
Escrito en
2024/2025

IT-ITSW 2120(D276) Web Development Foundations Latest OA Guide 2025IT-ITSW 2120(D276) Web Development Foundations Latest OA Guide 2025IT-ITSW 2120(D276) Web Development Foundations Latest OA Guide 2025

Vista previa del contenido

IT – D276 ITSW 2120

Web Development Foundations

3.0 Credits

Objective Assessment Review (Qns &
Ans)

2025




©2025

, Question 1:
Which concept in functional programming ensures that a function always
produces the same output for a given input without causing side effects?
- A. Encapsulation
- B. Polymorphism
- C. Referential Transparency
- D. Data Hiding

Correct ANS: C. Referential Transparency
Rationale:
Referential transparency is a key property of pure functions—it
guarantees that a function, when given the same input, will always return
the same output and will not alter any external state. This leads to easier
debugging and testing.

---

Question 2:
In dynamically typed scripting languages, what does it mean for functions
to be "first-class citizens"?
- A. They are compiled before other entities.
- B. They can be assigned to variables, passed as arguments, and returned
from other functions.
- C. Their execution is prioritized over other tasks.
- D. They are stored in a dedicated function registry.

Correct ANS: B. They can be assigned to variables, passed as
arguments, and returned from other functions.
Rationale:
Treating functions as first-class citizens means that they can be
manipulated like any other data type. This capability is pivotal in
functional programming paradigms and supports higher-order functions.

---
©2025

, Question 3:
Which type of function enables developers in Python to create small,
anonymous functions in a single expression?
- A. Decorator functions
- B. Lambda functions
- C. Recursive functions
- D. Generator functions

Correct ANS: B. Lambda functions
Rationale:
Lambda functions provide a concise way to write anonymous functions in
Python. They are typically used for simple operations, especially as inline
arguments to higher-order functions.

---

Question 4:
What term describes a function that captures the variables from its
lexical scope even when executed outside its original environment?
- A. Closure
- B. Coroutine
- C. Recursion
- D. Callback

Correct ANS: A. Closure
Rationale:
A closure is a function paired with an environment that binds its free
variables. It “remembers” the context in which it was created, even when
used outside that scope, allowing for data encapsulation.

---

Question 5:
One major disadvantage of using recursion over iterative loops in
©2025

Información del documento

Subido en
9 de mayo de 2025
Número de páginas
30
Escrito en
2024/2025
Tipo
Examen
Contiene
Desconocido

Temas

$15.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

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.
Bankart Chamberlain College of Nursing
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
151
Miembro desde
2 año
Número de seguidores
31
Documentos
4537
Última venta
1 semana hace

3.6

21 reseñas

5
9
4
0
3
9
2
1
1
2

Documentos populares

Recientemente visto por ti

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