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

IT211 Fundemantals of Programming Midterm Exam Review 2025 (Qns & Ans)

Puntuación
-
Vendido
-
Páginas
27
Subido en
06-05-2025
Escrito en
2024/2025

IT211 Fundemantals of Programming Midterm Exam Review 2025 (Qns & Ans)IT211 Fundemantals of Programming Midterm Exam Review 2025 (Qns & Ans)IT211 Fundemantals of Programming Midterm Exam Review 2025 (Qns & Ans)

Institución
Grado










Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Grado

Información del documento

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

Temas

Vista previa del contenido

IT211

Fundamentals of Programming

3.0 Credits

Midterm Exam Review (Qns & Ans)

2025




©2025

, Multiple Choice Questions (10 Questions)

1. Question:
Which of the following statements about tail recursion is true?
a. Tail recursion always leads to increased time complexity.
b. Tail recursion enables tail-call optimization, thereby reducing
the call stack usage.
c. Tail recursion requires storing additional state between
recursive calls.
d. Tail recursion results in non-terminating loops.

ANS:
b. Tail recursion enables tail-call optimization, thereby reducing
the call stack usage.

Rationale:
When a recursive call is the last operation in a function, the
compiler or interpreter can optimize it by reusing the current
function’s stack frame. This reduces memory overhead and
prevents stack overflow for deep recursive calls.

2. Question:
Big-O notation is used to describe the efficiency of an algorithm.
Which algorithm typically has a worst-case time complexity of O(n
log n)?
a. Linear search
b. Merge sort
c. Binary search
d. Bubble sort

ANS:
b. Merge sort

Rationale:
Merge sort divides the input into halves, recursively sorts them,
and then merges the sorted halves. Its divide-and-conquer
approach yields a worst-case running time of O(n log n).
©2025

, 3. Question:
Which technique is most effective for optimizing recursive
functions by avoiding redundant computations?
a. Loop unrolling
b. Divide and conquer
c. Memoization
d. Branch prediction

ANS:
c. Memoization

Rationale:
Memoization caches the results of function calls so that repeated
invocations with the same parameters can return the cached result,
significantly decreasing redundant computations in recursive
algorithms.

4. Question:
In C programming, dynamic memory allocation is performed
using which of the following pair of functions?
a. malloc() and free()
b. new and delete
c. alloc() and dealloc()
d. calloc() and realloc() exclusively

ANS:
a. malloc() and free()

Rationale:
In C, the standard functions malloc() for allocating memory and
free() for deallocating it are used for dynamic memory
management. (Note that new and delete are used in C++.)

5. Question:
In parameter passing, which description best fits "pass by
reference"?
a. Passing a copy of the variable’s value.
©2025
$18.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.
emiliophd Walden University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
177
Miembro desde
2 año
Número de seguidores
46
Documentos
4725
Última venta
4 días hace

Hi there! I\'m a former nursing student who loves to share my knowledge and experience with others. I have a collection of past study notes and papers for nursing and other programs that I sell at affordable prices. Whether you need help with anatomy, pharmacology, ethics, or anything else, I have something for you. My notes are clear, concise, and fun to read. They will make your learning easier and more enjoyable. Plus, you\'ll get to see some of my witty comments and jokes along the way. Trust me, you won\'t regret buying from me!

Lee mas Leer menos
3.5

19 reseñas

5
6
4
5
3
4
2
0
1
4

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