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

Programming Fundamentals Practice Exam Questions And Correct Answers (Verified Answers) Plus Rationales 2026 Q&A | Instant Download Pdf

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

Programming Fundamentals Practice Exam Questions And Correct Answers (Verified Answers) Plus Rationales 2026 Q&A | Instant Download Pdf

Vista previa del contenido

Programming Fundamentals Practice
Exam Questions And Correct Answers
(Verified Answers) Plus Rationales
2026 Q&A | Instant Download Pdf
1.
Which of the following best describes an algorithm?
A. A programming language
B. A hardware component
C. A step-by-step procedure for solving a problem
D. A type of computer memory
Answer: A step-by-step procedure for solving a problem
Rationale: An algorithm is a finite, ordered sequence of instructions
designed to accomplish a specific task or solve a problem. Algorithms
can be expressed using natural language, pseudocode, flowcharts, or
programming code.
2.
What is a variable in programming?
A. A permanent hardware device
B. A named storage location whose value can change
C. A program error
D. A programming language
Answer: A named storage location whose value can change

,Rationale: A variable provides a named location for storing data
during program execution. Its stored value may change as the
program runs, depending on the programming language and how the
variable is used.
3.
Which data type is normally used to represent whole numbers?
A. Boolean
B. String
C. Character
D. Integer
Answer: Integer
Rationale: An integer data type represents whole numbers such as -10,
0, and 25. Integers generally do not contain a fractional or decimal
component.
4.
Which data type is most appropriate for storing true or false values?
A. Integer
B. String
C. Boolean
D. Floating-point
Answer: Boolean
Rationale: Boolean values represent logical states and normally have
two possible values: true and false. They are commonly used in
conditions, comparisons, and decision-making statements.
5.
What does a compiler generally do?

,A. Physically repairs computer hardware
B. Translates source code into a form that can be executed
C. Deletes unused files
D. Connects a computer to the Internet
Answer: Translates source code into a form that can be executed
Rationale: A compiler translates source code written in a programming
language into another representation, commonly machine code or an
intermediate form. Compilation may also identify syntax and semantic
errors.
6.
What is the primary purpose of an interpreter?
A. To manufacture processors
B. To store files permanently
C. To execute program instructions through interpretation
D. To increase monitor resolution
Answer: To execute program instructions through interpretation
Rationale: An interpreter processes program instructions during
execution, often translating or evaluating them as the program runs.
This differs from traditional compilation, where source code is
translated before execution.
7.
Which symbol commonly represents assignment in many programming
languages?
A. ==
B. !=

, C. >=
D. =
Answer: =
Rationale: In many languages, the single equals sign assigns a value to
a variable. The double equals sign is commonly used for equality
comparison, although exact syntax varies between languages.
8.
What is the purpose of an if statement?
A. To repeat code indefinitely
B. To define a variable
C. To execute code conditionally
D. To terminate the operating system
Answer: To execute code conditionally
Rationale: An if statement evaluates a condition and executes a
particular block of code when that condition is satisfied. It is one of
the fundamental mechanisms for controlling program flow.
9.
Which control structure is primarily used to repeat instructions?
A. Selection
B. Declaration
C. Iteration
D. Compilation
Answer: Iteration
Rationale: Iteration means repeatedly executing a block of
instructions. Loops such as for, while, and do-while are common
examples of iterative control structures.

Información del documento

Subido en
17 de agosto de 2026
Número de páginas
85
Escrito en
2026/2027
Tipo
Examen
Contiene
Preguntas y respuestas
$21.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
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.
masterystudyhub
3.0
(4)
Vendido
48
Seguidores
3
Artículos
12139
Última venta
19 horas 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