Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

EGR 1400 Exam 2 – Questions With Verified Solutions

Beoordeling
-
Verkocht
-
Pagina's
16
Cijfer
A+
Geüpload op
05-03-2026
Geschreven in
2025/2026

EGR 1400 Exam 2 – Questions With Verified Solutions

Instelling
EGR 1400
Vak
EGR 1400

Voorbeeld van de inhoud

EGR 1400 Exam 2 – Questions With Verified
Solutions

Save




Terms in this set (34)



When the location of the original a. passed by reference
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


How many times does the message c. 3
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

,What is the value of the variable I after d. 4
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


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


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


After the code is finished executing, c. 6
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

, What is the maximum index of the b. 2
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


Which of the following statements will c. RandNum = myRand.Next(1,7);
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);
d. RandNum = myRand.Next(1,6);
e. RandNum = myRand.Next();


How many times will the following e. none of these, this is an infinite loop
sum execute?


int A=0;
do
{
A = A + 2; //this is the sum, count here
} While (A >= 0);


a. 0
b. 1
c. 2
d. 3
e. none of these, this is an infinite loop

Geschreven voor

Instelling
EGR 1400
Vak
EGR 1400

Documentinformatie

Geüpload op
5 maart 2026
Aantal pagina's
16
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$18.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
StudyHall Chamberlain School Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
1330
Lid sinds
3 jaar
Aantal volgers
825
Documenten
16994
Laatst verkocht
19 uur geleden
The Study Hall Shop ~ "Where learning meets success"

Dear Stuvia Community, As a passionate and dedicated learner, I believe that knowledge is most powerful when shared. With this mindset, I’m thrilled to introduce my Stuvia account, where I aim to provide valuable, high-quality study resources that empower students like you to excel in your academic journey. Whether you’re looking for detailed notes, comprehensive study guides, or insightful exam preparation materials, I am committed to making your study experience more efficient and effective. My goal is to simplify complex topics, break them down into digestible content, and offer fresh perspectives that will help you gain deeper understanding and achieve academic success. I firmly believe that learning should be engaging, accessible, and rewarding. That’s why I’ve worked hard to craft resources that are not only informative but also easy to follow and enjoyable. As a fellow student, I understand the challenges that come with studying, and I’m here to make that process a little bit easier for you. Let’s make learning a journey, not a chore. Explore my collection of notes, exams and study materials, and feel free to reach out if you need anything more. Together, we can achieve greatness! Thank you for considering my contributions to your academic success. Best Wishes! :)

Lees meer Lees minder
3.8

224 beoordelingen

5
105
4
41
3
38
2
9
1
31

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen