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
3DigitCode
C
GrossPay$
D
First.Name
2) What is an appropriate name for a textbox according to Hungarian notation?
A
BoxName
B
txtName
C
$Textbox
D
CLASS_TEXT
3) Which would be appropriate as a variable?
A
#HoursSlept
B
#HoursWorked
C
#HoursStudied
D
strFirstName
4) In the statement, lblMessage.Text = This is a label. What does lblMessage refer to?
A
Type of event
B
Label control
C
Type of class
D
Control
5) A variable named intGrade is of what data type?
A
Single
B
Triple
C
Double
D
Integer
6) Which would best represent a variable that will hold a true or false value if an entry was valid?
A
Dim blnlsValid As String
B
Dim blnlsValid As Value
C
Dim blnlsValid As Boolean
D
Dim blnlsValid As Double
7) A variable named decBonus is of what data type?
A
Boolean
B
Decimal
C
Fraction
D
Hexadecimal
8) Why is label not a valid variable name?
A
It starts with a number.
B
It does not start with a number.
C
It does not start with a number.
D
It is a Visual Basic reserved keyword.
9) A variable named dblTaxRate is of what data type?
A
Triple
B
String
C
Text
D
Double
10) A variable named blnIsTrue is of what data type?
A
Boolean
B
String
C
Bolean
D
Integer
11) According to Hungarian notation, what is an appropriate name for a Textbox?
A
txtName
B
1stBoxName
C
2ndBoxName
D
3rdBoxName
12) Which is a proper name for a button according to Hungarian notation?
A
StopButton
B
AddButton
C
ButtonAdd
D
btnAdd
13) A variable named strName is of what data type?
A
Integer
B
Yarn
C
String
D
Double
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?