Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Examen

Computer Problem Solving in EGR 1400, Engineering and Computer Science, 2023 — Exam 2 practice questions with complete solutions

Puntuación
-
Vendido
-
Páginas
13
Grado
A+
Subido en
25-02-2026
Escrito en
2023/2024

This document contains EGR 1400 Exam 2 style multiple choice questions with full answers, focused on arrays, loops (for, while, do-while), and method concepts such as passing by reference. It also covers practical Visual C# topics including Random.Next ranges, ListBox item insertion, working with structures and arrays of structures, MSChart plotting steps, file reading with StreamReader, XML files for LINQ, and string splitting. Solutions are provided directly after each question, making it useful for self-testing and quick revision. Great for checking common exam patterns on indexing, loop execution counts, and parameter behavior.

Mostrar más Leer menos
Institución
Graduation In Computer Science
Grado
Graduation in computer science

Vista previa del contenido

EGR-1400-Exam-2-COMPLETE-SOLUTIONS
1. When-the-location-of-the-original-variable-is-passed-as-an-argument-from-the-
calling-method-to-the-called-method,-we-say-that-it-is...

a.-passed-by-reference
b.-copy-passed
c.-passed-by-value
d.-reference-passed
e.-none-of-the-above---CORRECT-ANSWER-a.-passed-by-reference

2. How-many-times-does-the-message-box-get-executed-in-a-loop-that-begins-
with-the-following-statement?

int-I;
for-(I-=-1;-I-<-4;-I++)
{
-MessageBox.Show(I);
}
a.-0-
b.-2
c.-3
d.-1
e.-none-of-the-above---CORRECT-ANSWER-c.-3

3. What-is-the-value-of-the-variable-I-after-the-loop-is-finished-executing?

int-I;
for-(I-=-1;-I-<-4;-I++)
{
-MessageBox.Show(I);
}

a.-1
b.-2
c.-3
d.-4
e.-none-of-the-above---CORRECT-ANSWER-d.-4

4. How-many-locations-will-there-be-for-an-array-declared-as:-string[-]-Names-=-
new-string[4];

a.-4
b.-3

, EGR-1400-Exam-2-COMPLETE-SOLUTIONS
c.-2
d.-1
e.-none-of-the-above---CORRECT-ANSWER-a.-4

5. After-the-code-is-finished-executing,-what-is-the-value-of-A[1]?

int[-]-A-=-new-int[5];
int[-]-B-=-new-int[3];
int-x;
for-(x-=-0;-x-<-5;-x++)
{
-A[x]-=-x-*-2-+-4;
}

a.-10
b.-8
c.-6
d.-0
e.-none-of-the-above---CORRECT-ANSWER-c.-6

6. What-is-the-maximum-index-of-the-array,-B?

int[-]-A-=-new-int[5];
int[-]-B-=-new-int[3];
int-x;
for-(x-=-0;-x-<-5;-x++)
{
-A[x]-=-x-*-2-+-4;
}

a.-0
b.-2
c.-3
d.-4
e.-none-of-the-above---CORRECT-ANSWER-b.-2

7. Which-of-the-following-statements-will-set-RandNum-to-a-value-between-1-
and-6-(including-1-and-6)?

a.-RandNum-=-myRand.Next(0,6);
b.-RandNum-=-myRand.Next(0,7);
c.-RandNum-=-myRand.Next(1,7);

Escuela, estudio y materia

Institución
Graduation in computer science
Grado
Graduation in computer science

Información del documento

Subido en
25 de febrero de 2026
Número de páginas
13
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas
$10.49
Accede al documento completo:

¿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

Conoce al vendedor
Seller avatar
STUVIAVERIFIEDEXAMS

Documento también disponible en un lote

Thumbnail
Package deal
EGR 1400 COMPLETE EXAM PACKAGE
-
3 2026
$ 19.38 Más información

Conoce al vendedor

Seller avatar
STUVIAVERIFIEDEXAMS Oakland University
Ver perfil
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
2
Miembro desde
6 meses
Número de seguidores
0
Documentos
40
Última venta
2 meses hace

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

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