CMP1 4.2 TestBank Questions for Computer Programming I Obj 4.2 – Flashcards

Unlock all answers in this set

Unlock answers
question
What states thet the strength of the gravitational force between two objects depends on its mass and the distance between them?
answer
The Law of Universal Gravitaion
question
Which would be appropriate as an object name?
answer
txtHoursWorked
question
Why is label not a valid variable name?
answer
It is a Visual Basic reserved keyword.
question
A variable named intGrade is of what data type?
answer
Integer
question
A variable named blnIsTrue is of what data type?
answer
Boolean
question
What is an appropriate name for a constant according to Hungarian notation?
answer
decRATE
question
A variable named strName is of what data type?
answer
String
question
What is an appropriate name for a textbox according to Hungarian notation?
answer
txtName
question
According to Hungarian notation, what is an appropriate name for a Textbox?
answer
txtName
question
A variable named decBonus is of what data type?
answer
Decimal
question
Which is a proper name for a button according to Hungarian notation?
answer
btnAdd
question
Which would best represent a variable that will hold a true or false value if an entry was valid?
answer
Dim blnlsValid As Boolean
question
Which would best represent a Button control object that will be used to calculate an average?
answer
btnCalcAverage
question
In the statement, lblMessage.Text = "This is a label." What does lblMessage refer to?
answer
Label control
question
If a student needed to declare a variable to hold values representing a grade point average (GPA), which would be the best declaration given programming naming conventions?
answer
Dim dblGPA As Double
question
Which would be appropriate as a variable?
answer
strFirstName
question
A variable named dblTaxRate is of what data type?
answer
Double
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New