EGR 1400 LATEST FINALS QUESTIONS AND
ANSWERS SURE A+
✔✔string - ✔✔A combination of characters. The value of a string variable is assigned on
the right of the = operators surrounded by a pair of double quotes.
✔✔concatenation - ✔✔The appending of one string to the end of another string. C#
uses the + operator for concatenation. Concatenation can happen between a string and
another data type.
✔✔local variable - ✔✔Belongs to the method in which it was declared. Only statements
inside that method can access the variable.
✔✔scope - ✔✔Describes the part of a program in which a variable may be accessed.
The lifetime of a variable is the time period during which the variable exists in memory
while the program is executing.
✔✔double - ✔✔Real numbers including numbers with fractional parts.
✔✔int - ✔✔Whole numbers in the range of -2,147,483,648 to 2,147,483,647
✔✔decimal - ✔✔Indicates a 128-bit data type. Compared to double types, it has more
precision and a smaller range, which makes it more appropriate for financial and
monetary calculations. Be sure to add the letter M (or m) to a decimal value.
✔✔type casting - ✔✔Explicitly converting among types. You can use the cast operator
which is simply a pair of parentheses with the type keyword in it.
✔✔% - ✔✔Modulus: divides one number by another and gives the remainder.
✔✔ToString - ✔✔Can optionally format a number to appear in a specific way.
, ✔✔exception - ✔✔An unexpected error that happens while a program is running. If it is
not handled by the program, the program will abruptly halt.
✔✔exception handlers - ✔✔Codes that respond to exceptions.
✔✔try block - ✔✔Where statements that could have an exception are placed.
✔✔catch block - ✔✔Where statements respond to the exception when it happens are
placed.
✔✔number constant - ✔✔A name that represents a value that cannot be changed
during the program's execution.
✔✔field - ✔✔A variable that is declared at the class level. It is declared inside the class,
but not inside of any method. It is a special type of variable and its scope is the entire
class.
✔✔TabIndex - ✔✔Contains a numeric value indicating the control's position in the tab
order.
✔✔tab order - ✔✔The order in which controls receive the focus.
✔✔focus - ✔✔Means that a control receives the user's keyboard input.
✔✔group box - ✔✔a control that is a container with a thin border and an optional title
that can hold other controls.
✔✔logic error - ✔✔A mistake that does not prevent an application from running, but
causes the application to produce incorrect results.
✔✔breakpoint - ✔✔A line that is selected in source code.
✔✔break mode - ✔✔The application pauses and enters breakmode when it is running
and reaches a breakpoint.
✔✔autos window - ✔✔Displays a list of the variables appearing in the current
statement, the three statements before, and the three statements after the current
statement. The current value and the data type of each variable are also displayed.
✔✔locals window - ✔✔Displays a list of all the variables in the current procedure. The
current value and the data type of each variable are also displayed.
✔✔watch window - ✔✔Allows you to add the names of variables you want to watch.
This window displays only the variables you have added.
ANSWERS SURE A+
✔✔string - ✔✔A combination of characters. The value of a string variable is assigned on
the right of the = operators surrounded by a pair of double quotes.
✔✔concatenation - ✔✔The appending of one string to the end of another string. C#
uses the + operator for concatenation. Concatenation can happen between a string and
another data type.
✔✔local variable - ✔✔Belongs to the method in which it was declared. Only statements
inside that method can access the variable.
✔✔scope - ✔✔Describes the part of a program in which a variable may be accessed.
The lifetime of a variable is the time period during which the variable exists in memory
while the program is executing.
✔✔double - ✔✔Real numbers including numbers with fractional parts.
✔✔int - ✔✔Whole numbers in the range of -2,147,483,648 to 2,147,483,647
✔✔decimal - ✔✔Indicates a 128-bit data type. Compared to double types, it has more
precision and a smaller range, which makes it more appropriate for financial and
monetary calculations. Be sure to add the letter M (or m) to a decimal value.
✔✔type casting - ✔✔Explicitly converting among types. You can use the cast operator
which is simply a pair of parentheses with the type keyword in it.
✔✔% - ✔✔Modulus: divides one number by another and gives the remainder.
✔✔ToString - ✔✔Can optionally format a number to appear in a specific way.
, ✔✔exception - ✔✔An unexpected error that happens while a program is running. If it is
not handled by the program, the program will abruptly halt.
✔✔exception handlers - ✔✔Codes that respond to exceptions.
✔✔try block - ✔✔Where statements that could have an exception are placed.
✔✔catch block - ✔✔Where statements respond to the exception when it happens are
placed.
✔✔number constant - ✔✔A name that represents a value that cannot be changed
during the program's execution.
✔✔field - ✔✔A variable that is declared at the class level. It is declared inside the class,
but not inside of any method. It is a special type of variable and its scope is the entire
class.
✔✔TabIndex - ✔✔Contains a numeric value indicating the control's position in the tab
order.
✔✔tab order - ✔✔The order in which controls receive the focus.
✔✔focus - ✔✔Means that a control receives the user's keyboard input.
✔✔group box - ✔✔a control that is a container with a thin border and an optional title
that can hold other controls.
✔✔logic error - ✔✔A mistake that does not prevent an application from running, but
causes the application to produce incorrect results.
✔✔breakpoint - ✔✔A line that is selected in source code.
✔✔break mode - ✔✔The application pauses and enters breakmode when it is running
and reaches a breakpoint.
✔✔autos window - ✔✔Displays a list of the variables appearing in the current
statement, the three statements before, and the three statements after the current
statement. The current value and the data type of each variable are also displayed.
✔✔locals window - ✔✔Displays a list of all the variables in the current procedure. The
current value and the data type of each variable are also displayed.
✔✔watch window - ✔✔Allows you to add the names of variables you want to watch.
This window displays only the variables you have added.