4.02 Understand Object Naming Question Preview (ID: 44500)


Select The Best Answer For Each Selection. TEACHERS: click here for quick copy question ID numbers.

Which would be appropriate as an object name?
a) txtHoursWorked
b) 3DigitCode
c) GrossPay$
d) First.Name

What is an appropriate name for a textbox according to Hungarian notation?
a) BoxName
b) $Textbox
c) CLASS_TEXT
d) txtName

Which would be appropriate as a variable?
a) strFirstName
b) #HoursSlept
c) #HoursWorked
d) #HoursStudied

In the statement, lblMessage.Text = This is a label. What does lblMessage refer to?
a) Type of class
b) Label control
c) Control
d) Type of event

A variable named intGrade is of what data type?
a) Double
b) Single
c) Integer
d) Triple

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 String
c) Dim blnlsValid As Value
d) Dim blnlsValid As Double

A variable named decBonus is of what data type?
a) Boolean
b) Fraction
c) Hexadecimal
d) Decimal

Why is label not a valid variable name?
a) It does not start with a number.
b) It does not start with a number.
c) It starts with a number.
d) It is a Visual Basic reserved keyword.

A variable named dblTaxRate is of what data type?
a) Double
b) Triple
c) String
d) Text

A variable named blnIsTrue is of what data type?
a) Integer
b) String
c) Bolean
d) Boolean

According to Hungarian notation, what is an appropriate name for a Textbox?
a) txtName
b) 1stBoxName
c) 2ndBoxName
d) 3rdBoxName

Which is a proper name for a button according to Hungarian notation?
a) AddButton
b) btnAdd
c) StopButton
d) ButtonAdd

A variable named strName is of what data type?
a) String
b) Yarn
c) Double
d) Integer

What is an appropriate name for a constant according to Hungarian notation?
a) rate
b) DECrate
c) decRATE
d) decRate

Hungarian notations are written in:
a) = =
b) ( )
c) +
d) /

Play Games with the Questions above at ReviewGameZone.com
To play games using the questions from above, visit ReviewGameZone.com and enter game ID number: 44500 in the upper right hand corner or click here.

TEACHERS / EDUCATORS
Log In
| Sign Up / Register