100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

EGR 1400 EXAM 2 STUDY GUIDE 2025 QUESTIONS AND ANSWERS

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
27-05-2025
Written in
2024/2025

Message Box Syntax - ANS MessageBox.Show("[Message]"); ListBox control - ANS Used to create a ListBox control class object. Properties include Name, Items, Sorted, SelectedItem, and SelectedIndex. Methods include Items.Add(), Items.Remove(), and Items.Clear(). Events include SelectedIndexChanged. for loop - ANS Loops that have a predetermined beginning, end, and increment (step interval). In the for (i = 0; i <20; i++) { ... } do-while loop - ANS do { ... } while (condn) Note: Runs through statements at least once before it reaches the while condition while loop - ANS while (condn) { ... } Note: Can run for [0, ∞) repetitions Nested Loop - ANS A loop inside the body of another loop. Your inner loop does a task, which actually is iterative in nature and your outer loop does that task again and again depending on your condition. File I/O - ANS stands for file input/file output. EGR 1400 EXAM 2 STUDY GUIDE 2025 QUESTIONS AND ANSWERS

Show more Read less
Institution
EGR 1400
Course
EGR 1400









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
EGR 1400
Course
EGR 1400

Document information

Uploaded on
May 27, 2025
Number of pages
6
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

EGR 1400 EXAM 2 STUDY GUIDE 2025
QUESTIONS AND ANSWERS




Message Box Syntax - ANS MessageBox.Show("[Message]");



ListBox control - ANS Used to create a ListBox control class object. Properties include Name,
Items, Sorted, SelectedItem, and SelectedIndex. Methods include Items.Add(), Items.Remove(),
and Items.Clear(). Events include SelectedIndexChanged.



for loop - ANS Loops that have a predetermined beginning, end, and increment (step
interval). In the for (i = 0; i <20; i++) { ... }



do-while loop - ANS do { ... } while (condn) Note: Runs through statements at least once
before it reaches the while condition



while loop - ANS while (condn) { ... } Note: Can run for [0, ∞) repetitions



Nested Loop - ANS A loop inside the body of another loop. Your inner loop does a task, which
actually is iterative in nature and your outer loop does that task again and again depending on
your condition.



File I/O - ANS stands for file input/file output.




Copyright ©2025 BRIGHTSTARS ALL RIGHTS RESERVED 1

, StreamReader - ANS An object used to open a text file and read streams of text, uses the
ReadLine command



StreamWriter - ANS An object used to open a text file and write to it, uses the WriteLine
command, if true(adds new line) if false(overwrites)



What happens if I don't close a file after I open it to use StreamWriter? - ANS All of the data
in the original file will be erased so make sure you make a copy of the file before using
StreamWriter just in case.



Methods - ANS Creating new custom commands to make programs cleaner/less repetitive



Using methods - ANS To call a method, simply write the following: [name of object].(method
with or without parameters as inputs)



In methods, what is the difference between void and returning? - ANS The void keyword is
used in method signatures to declare a method that does not return a value. A method
declared with the void return type cannot provide any arguments to any return statements
they contain. Methods with return statements take in arguments, manipulate them in some
way, and return a manipulated value of some specified type.



Public vs Private keywords in methods - ANS Public methods are written in one project and
are able to be accessed by other projects. Private methods limit the method's use to only the
project containing it.



Passing parameters by reference - ANS The variable will be passed in updated and passed
back out. Before being referenced by a ref method, variables remain in their initial condition.
Once they are passed through the ref method, the variable remains changed as it was
manipulated in the method.



Passing parameters by value - ANS The variable will be passed in and not updated. Changes
are made to 'copies' of the input variables.
Copyright ©2025 BRIGHTSTARS ALL RIGHTS RESERVED 2

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.
Brightstars Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
197
Member since
1 year
Number of followers
7
Documents
12560
Last sold
4 days ago
VERIFIED EXAMS AND STUDY GUIDES.

Here, you will find Study Notes, Exam answer packs 100% Guarenteed success.

3.3

31 reviews

5
10
4
4
3
8
2
3
1
6

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

Frequently asked questions