MCC - CIS162AD - C# Level I
Study Guide for Test 1![]()
Completion of the study guide is NOT required, so it will not be turned in or submitted electronically. However, completing the study guide will help you prepare for the exam. In addition, the completed study guide can be used on the actual exam, because exams are open book and notes. If you can't find the answer to any of the questions, please feel free to ask your classmates and/or instructor.
Introduction to Programming and C#:
What are the three categories of errors that can be made by a programmer?
What type of errors can a compiler detect?
What errors must the programmer detect and correct during testing?
How are run-time errors usually discovered?
What are some examples of C# control objects?
What are some uses of Labels?
What are some uses of Text Boxes?
What are some uses of Command Buttons?
What are some of Label properties we have modified in our programs?
What are some of Text Boxes properties we have modified in our programs?
What are some of Command Buttons properties we have modified in our programs?
How are Access Keys defined for Command Buttons?
What does the tab order of the controls determine?
Which property do we use to give control objects meaningful names?
Why do we give control objects meaningful names?
What is an event method?
What are some examples of events?
What are the two ways of creating a comment?
What is the purpose of including comments in a program?
Variables and Data Types:
Are variable names case sensitive?
Why do we use meaningful naming conventions for variables?
What are constant variables used for?
Which keyword is used to specify a variable as a constant?
What is the preferred naming convention for constant variables?
What are numeric variables initialized to when declared?
What are string variables initialized to when declared?
What is meant by variable scope?
How is a block of code defined?
What is the difference between local and global (class) variables?
Where are local variables declared?
Where are global (class) variables declared?
What are some uses of global (class) variables?
What are the different data types?
What kind of data can be stored in each of the variable types?
What do the Parse and ToString methods do?
What is the data type of the value returned by the Parse and ToString methods (number or String)?
Math Operations and Try/Catch:
What are the precedence rules?
How do the parentheses affect the precedence rules?
What does the modulous (%) operator return?
What is the purpose of Try/Catch Blocks?
What is the MessageBox used for?
What are the button options for a MessageBox?
If, If-Else, Relational and Logical Operators:
What two values can logical conditions evaluate to?
What is the difference between if and if-else statements?
How does the compiler match an else with an if statement?
Does the compiler take indenting you use into consideration to match else and if statements?
What is the purpose of indenting if-else statements?
How can braces be used to prevent the dangling-else problem?
What are some examples of relational operators?
What are the logical operators?
What is the difference between AND (&&) and OR (||) conditional expressions?
What do ToUpper( ) and ToLower( ) methods do?
Why should we test for both upper and lowercase letters or use ToUpper( ) to convert letters to uppercase?
Why is the switch statement similar to an if-else statement?
Can switch statements be converted to if=else statements?
Methods (pass-by-value and pass-by-reference):
What is the main idea of the top-down design method?
Why is the black box analogy used to describe how methodx should be written?
Why are methods considered small programs (hint: input, process, output)?
What is included in the heading of a method definition?
What is considered a method's signature?
Are the variables listed in the method heading declared as variables of the method?
How is a method invoked?
How do you specify if the argument is pass-by-value or pass-by-reference?
What is passed to the method through a pass-by-value argument ?
What is passed to the method through a pass-by-reference argument ?
How is a value returned from a method?
What are the purposes of the return statement?
How many values can be returned by a method that uses only pass-by-value?
How many values can be returned by a method that uses pass-by-reference?
In pass-by-reference, when should ref be used?
In pass-by-reference, when should out be used?
Menus and Common Dialog Boxes:
What control is used to create menus?
Where is the control for menus placed in designer mode?
How are submenus items created?
How are context menus created?
How are context menus activated by the user?
What are the common dialog controls?
What is the general purpose of common dialogs?
Which method is used to display a dialog box?
After a user selects a Color or Font, how does the programmer apply the selection to a control?