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