VERIFIED CORRECT QUESTIONS
AND ANSWERS LATEST UPDATED
VERSION (GRADED A+)
variable - Answer✔️A storage location in memory. Variable names represent the
memory location.
data type - Answer✔️Specifies the type of data a variable can hold. C# provides
many data types known as primitive data types. They store fundamental types of
data such as strings and integers.
variable name - Answer✔️Identifies a variable. Always choose a meaningful name
for variables. The first character must be a letter or an underscore. The name
cannot contain spaces. Do not use C# keywords or reserved words.
string - Answer✔️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 - Answer✔️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 - Answer✔️Belongs to the method in which it was declared. Only
statements inside that method can access the variable.
scope - Answer✔️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 - Answer✔️Real numbers including numbers with fractional parts.
int - Answer✔️Whole numbers in the range of -2,147,483,648 to 2,147,483,647
, decimal - Answer✔️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 - Answer✔️Explicitly converting among types. You can use the cast
operator which is simply a pair of parentheses with the type keyword in it.
% - Answer✔️Modulus: divides one number by another and gives the remainder.
ToString - Answer✔️Can optionally format a number to appear in a specific way.
exception - Answer✔️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 - Answer✔️Codes that respond to exceptions.
try block - Answer✔️Where statements that could have an exception are placed.
catch block - Answer✔️Where statements respond to the exception when it
happens are placed.
number constant - Answer✔️A name that represents a value that cannot be
changed during the program's execution.
field - Answer✔️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 - Answer✔️Contains a numeric value indicating the control's position in
the tab order.
tab order - Answer✔️The order in which controls receive the focus.
focus - Answer✔️Means that a control receives the user's keyboard input.
group box - Answer✔️a control that is a container with a thin border and an
optional title that can hold other controls.