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

CSE 1321 Midterm (Modules 1-4)_Shared.Version_ With Complete Solutions

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

CSE 1321 Midterm (Modules 1-4)_Shared.Version_ With Complete Solutions...

Vista previa del contenido

CSE 1321 Midterm (Modules 1-4)_Shared.Version_
With Complete Solutions

Program design consists of:

A) the ability to solve problems.
B) steps a programmer should do before they start coding a program in a
specific language.
C) writing the code for a program.
D) writing the documentation for a program. - ANSWER B) steps a programmer
should do before they start coding a program in a specific language.

Software testing involves the execution of a software component or system
component to evaluate one or more properties of interest.

True or False - ANSWER true

Programming starts with:

a) looking online for the answers.
b) writing code until it works.
c) developing an algorithm. - ANSWER c) developing an algorithm.

Input is sending messages to the console/user.

true or false - ANSWER false

input is actually: - ANSWER reading and taking in information from the user

Output is process of reading information from user, usually via keyboard or
mouse.

true or false - ANSWER false

output is actually: - ANSWER messages/ what is being displayed to the user
based off of the input information

A flowchart is a type of diagram that represents an algorithm, workflow or
process.

true or false - ANSWER true

,Pseudocode is

A) a formal programming language.
B) a machine.
C) an informal high-level description of the operating principle of a computer
program or algorithm. - ANSWER C) an informal high-level description of the
operating principle of a computer program or algorithm.

Debugging is the process of

a) compiling the source code.
b) publishing the source code to the client.
c) writing source code.
d) solving errors in the source code. - ANSWER d) solving errors in the source
code.

The MAIN method tells the program where to begin running code as it is the
entry or starting point for the program.

true or false - ANSWER true

IDE stands for

a) Initial Degree Expectations
b) Integrated Development Environment
c) Intramural Department Executive - ANSWER b) Integrated Development
Environment

What is the output of the following code?

BEGIN MAIN
int u = 3;
int v = 5;
u += v;
v += u;
u -= v;
v -= u;
PRINT (u + ", " + v);
END MAIN

a) 5, 3
b) -5,-3
c) 3, 5
d) -5, 18 - ANSWER d) -5, 18

EXPLANATION

, 3 += 5 = 8(u) (3 + 5)
5 += 8 = 13(v) (5 + 8)
8 -= 13 = -5(u) (8 - 13)
13 -= -5 = 18(v) (13 - (-5))
so = -5, 18 is the final outcome

What would be the best datatype to represent product? A variable that stores
information about the number of items currently in stock in a grocery store.

a) double
b) int
c) float
d) String - ANSWER b) int
(number of items in the store is going to be a whole number)

What is the value of j after this code is executed?

BEGIN MAIN
int i = 6, int j=10;
j+=i;
END MAIN

a) 10
b) 6
c) 4
d) 16 - ANSWER d) 16

A String (or string) object is a primitive data type.

true or false - ANSWER false

a string is actually: - ANSWER - composite of other data types
- Strings are immutable which means once a String object is created its contents
cannot be changed. (cant change in memory)
- complex: can be broken down into characters

What is the output of the following code?

BEGIN MAIN
int num1 = 500;
int num2 = 200;
int num3 = 300;
double average = num1 + num2 + num;
PRINTLINE(average);
END MAIN

Información del documento

Subido en
14 de mayo de 2026
Número de páginas
21
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$16.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.
Zayla
3.2
(20)
Vendido
160
Seguidores
13
Artículos
18307
Última venta
2 días 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