Site MapHelpFeedbackMultiple Choice Quiz
Multiple Choice Quiz
(See related pages)

1
A named memory location that holds data that can be changed during project execution is called a(n) _______________.
A)identifier
B)variable
C)named constant
D)constant
2
A named memory location that holds data that cannot be changed during program execution is called a(n) _______________.
A)constant
B)identifier
C)variable
D)named variable
3
What type of statement is used to establish a project's variables and constants, give them names, and specify what type of data they will hold?
A)reservation statement
B)creation statement
C)selection statement
D)declaration statement
4
Which of the following statements correctly declares a variable named ageInteger with the integer data type?
A)int ageInteger
B)ageInteger
C)intageInteger=int
D)int=ageInteger;
5
Which of the following data types store whole numbers (numbers with no decimal places)?
A)int
B)long
C)short
D)all of these
6
Which of the following data types store at least one alphanumeric character?
A)string
B)bool
C)byte
D)char
7
Which of the following identifiers does not follow the required naming rules in C#?
A)Child3
B)THIRDCHILD
C)3rdChild
D)Child_3
8
Constants that are defined by the programmer are called _______________ constants.
A)named
B)intrinsic
C)custom
D)variable
9
What keyword is used to declare a named constant?
A)constant
B)const
C)namedconst
D)nconst
10
Which of the following depicts the correct and preferred method of declaring a named constant?
A)decimal INCOMETAXRATEDecimal = .15M;
B)const decimal IncomeTaxRate_Decimal = .15M;
C)const dec INCOME_TAX_RATE_DECIMAL = .15M;
D)const decimal INCOME_TAX_RAT_Decimal E = .15M;







Programming in Visual C# 2005Online Learning Center

Home > Chapter 3 > Multiple Choice Quiz