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 & SOLUTIONS

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

Methods - ANSWERcan be used to break a complex program into small manageable pieces divide and conquer - ANSWERprocess of breaking down a complex program into small manageable pieces modularization - ANSWERbreaking down a program into smaller units of code such as methods

Meer zien Lees minder
Instelling
EGR 1400
Vak
EGR 1400

Voorbeeld van de inhoud

EGR 1400 EXAM 2 QUESTIONS &
SOLUTIONS
Methods - ANSWERcan be used to break a complex program into small manageable
pieces

divide and conquer - ANSWERprocess of breaking down a complex program into small
manageable pieces

modularization - ANSWERbreaking down a program into smaller units of code such as
methods

void, value returning - ANSWERtwo types of methods

void method - ANSWERsimply executes a group of statements then terminates

value-returning method - ANSWERmethod returns a value to the statement that called it

using a long sequence of statements to perform a task - ANSWERNamespace Example
{
public partial class Form1 : Form
{
private void myButton_Click(object sender, EventArgs e)
{
statement;
statement;
statement;
statement;
statement;
statement;
...
}
}
}

using methods to divide and conquer a problem - ANSWERNamespace Example
{
public partial class Form1 : Form
{
private void myButton_Click(object sender, EventArgs e)
{
Method2();
Method3();
...

,}
private void Method2();
{
statements;
}
private void Method3();
{
statements;
}
}
}

write its definitions in two parts - ANSWERhow to create a method

header and body - ANSWER2 parts of a method

header - ANSWERpart of a method that appears at the beginning of a method definition
to indicate access mode, return type, and method name

body - ANSWERpart of a method that is a collections of statements that are performed
when the method is executed

access modifier, return type, method name, parentheses - ANSWERfour parts of a
method header

access modifier - ANSWERkeywords that define the access control

private access modifier - ANSWERcan only be called by code inside the same class as
the method

public access modifier - ANSWERcan be called by a code that is outside the class

return type - ANSWERspecifies whether or not a method returns a value

method name - ANSWERthe identifier of the method, must be unique in a given
program

parantheses - ANSWERalways follows a methods name

a method header to display a message box - ANSWERprivate void DisplayMessage()
{
MessageBox.Show("This is the DisplayMessage method.");
}

a class - ANSWERa method usually belongs to what

, method call statement - ANSWERthe name of a method followed by a pair of
parenthesis

ex of calling a method - ANSWERprivate void goButton_Click(object sender, EventArgs
e)
{
MessageBox.Show("This is the goButton_Click method.");
DisplayMessage();
}
private DisplayMessage()
{
MessageBox.Show("This is the DisplayMessage method.");
}

return point - ANSWERthe address of the location to which the system should return to
after the method ends

top-down design - ANSWERtechnique used to modularize a program, breaks down an
algorithim into mehtods

argument - ANSWERany piece of data that is passed into a method when the method is
called

parameter - ANSWERa variable that receives an argument that is passed into a method

ex of parameter - ANSWERprivate void DisplayValue(int value)
{
MessageBox.Show(value.ToString());
}

ex of passing a variable as an argument - ANSWERint x = 5;
DisplayValue(x);
DisplayValue(x * 4);

private void DisplayValue(int value)
{
MessageBox.Show(value.ToString());
}

- You can pass only string arguments into string parameters
- You can pass int arguments into int parameters, but you
cannot pass double or decimal arguments into int parameters
- You can pass either double or int arguments to double
parameters, but you cannot pass decimal values to double
parameters
- You can pass either decimal or int arguments to decimal

Geschreven voor

Instelling
EGR 1400
Vak
EGR 1400

Documentinformatie

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

Onderwerpen

$13.99
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


Ook beschikbaar in voordeelbundel

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.
shantelleG West Virgina University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
641
Lid sinds
3 jaar
Aantal volgers
369
Documenten
18264
Laatst verkocht
4 dagen geleden
GOLD PREMIUM

HELLO? welcome to my store thanks for visiting this page here you are guaranteed of well revised and assured EXAMS ALL GRADED A+ thus making your education journey easy and seamless . DO NOT HESITATE TO CONTACT ME IF YOU ARE IN NEED OF ANY EXAM .I AM READY 24/7 TO ASSIST YOU ALSO REFER YOUR FRIENDS.

4.0

118 beoordelingen

5
69
4
11
3
24
2
2
1
12

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