Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

EGR 1400 Exam 2 Study Questions and Answers Updated 2026

Rating
-
Sold
-
Pages
23
Grade
A+
Uploaded on
26-02-2026
Written in
2025/2026

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 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 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 d. 4 4 How many locations will there be for an array declared as: string[ ] Names = new string[4];

Show more Read less
Institution
EGR 1400
Course
EGR 1400

Content preview

EGR 1400



EGR 1400 Exam 2 Study Questions
and Answers Updated 2026
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

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



EGR 1400

,EGR 1400


c. 3

d. 1

e. none of the above

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

d. 4



4

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




EGR 1400

, EGR 1400


a. 4

b. 3

c. 2

d. 1

e. none of the above

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

c. 6




EGR 1400

Written for

Institution
EGR 1400
Course
EGR 1400

Document information

Uploaded on
February 26, 2026
Number of pages
23
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$16.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
PossibleA Chamberlain College Of Nursing
Follow You need to be logged in order to follow users or courses
Sold
1053
Member since
5 year
Number of followers
650
Documents
13764
Last sold
4 days ago
POSSIBLEA QUALITY UPDATED EXAMS

Choose quality study materials for nursing schools to ensure success in your studies and future career. "Welcome to PossibleA - your perfect study assistant! Here you will find Quality sheets, study materials, exams, quizzes, tests, and notes to prepare for exams and study successfully. Our store offers a wide selection of materials on various subjects and difficulty levels, created by experienced teachers and checked for quality. Our quality sheets are an easy and quick way to remember key points and definitions. And our study materials, tests, and quizzes will help you absorb the material and prepare for exams. Our store also has notes and lecture summaries that will help you save time and make the learning process more efficient.

Read more Read less
3.9

149 reviews

5
77
4
25
3
23
2
1
1
23

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions