Review Game Zone
Flash Cards
(current)
Games
Teachers
Search
4.02 Understand Object Naming
Test Description: Select the best answer for each selection.
Instructions: Answer all questions to get your test result.
1) Which would be appropriate as an object name?
A
txtHoursWorked
B
GrossPay$
C
First.Name
D
3DigitCode
2) What is an appropriate name for a textbox according to Hungarian notation?
A
BoxName
B
$Textbox
C
CLASS_TEXT
D
txtName
3) Which would be appropriate as a variable?
A
strFirstName
B
#HoursWorked
C
#HoursStudied
D
#HoursSlept
4) In the statement, lblMessage.Text = This is a label. What does lblMessage refer to?
A
Type of class
B
Control
C
Type of event
D
Label control
5) A variable named intGrade is of what data type?
A
Integer
B
Single
C
Double
D
Triple
6) Which would best represent a variable that will hold a true or false value if an entry was valid?
A
Dim blnlsValid As Boolean
B
Dim blnlsValid As Value
C
Dim blnlsValid As String
D
Dim blnlsValid As Double
7) A variable named decBonus is of what data type?
A
Fraction
B
Hexadecimal
C
Decimal
D
Boolean
8) Why is label not a valid variable name?
A
It does not start with a number.
B
It starts with a number.
C
It is a Visual Basic reserved keyword.
D
It does not start with a number.
9) A variable named dblTaxRate is of what data type?
A
String
B
Text
C
Triple
D
Double
10) A variable named blnIsTrue is of what data type?
A
Integer
B
Boolean
C
Bolean
D
String
11) According to Hungarian notation, what is an appropriate name for a Textbox?
A
1stBoxName
B
2ndBoxName
C
3rdBoxName
D
txtName
12) Which is a proper name for a button according to Hungarian notation?
A
AddButton
B
ButtonAdd
C
StopButton
D
btnAdd
13) A variable named strName is of what data type?
A
Integer
B
Double
C
Yarn
D
String
14) What is an appropriate name for a constant according to Hungarian notation?
A
DECrate
B
decRATE
C
rate
D
decRate
15) Hungarian notations are written in:
A
/
B
( )
C
= =
D
+
*select an answer for all questions
Check Results & Get Answers
Play Games with the Questions Above
Teachers: Create FREE classroom games with your questions
Click for more info!
©2007-2024
ReviewGameZone.com
|
About
|
Privacy
|
Contact
|
Terms
|
Site Map
WAIT! Find what you needed?
×
Still Looking for the Answers?
Have Another Question?
Play a Review Game with These Questions?
Want to Make Your Own Test Like This One?