Exam 3: Variables and Calculations
Exam 1: Introduction to Programming and Visual Basic40 Questions
Exam 2: Creating Applications With Visual Basic36 Questions
Exam 3: Variables and Calculations41 Questions
Exam 4: Making Decisions39 Questions
Exam 5: Lists and Loops36 Questions
Exam 6: Procedures and Functions31 Questions
Exam 7: Multiple Forms, Modules, and Menus36 Questions
Exam 8: Arrays and More34 Questions
Exam 9: Files, Printing, and Structures36 Questions
Exam 10: Working With Databases32 Questions
Exam 11: Developing Web Applications33 Questions
Exam 12: Classes, Collections, and Inheritance36 Questions
Select questions type
What is the purpose of using the following type of structure? Try
Some statements
Catch
Other Statements
End Try
(Multiple Choice)
4.9/5
(31)
Which of the following has the highest order of precedence in arithmetic expressions?
(Multiple Choice)
4.8/5
(45)
When you assign a value of one data type to a variable of another data type, Visual Basic attempts to perform type conversion.
(Multiple Choice)
4.8/5
(32)
Which of the following statements will assign the contents of the Text property of a TextBox control named txtInput into the Text property of a Label control named lblDisplay?
(Multiple Choice)
4.9/5
(32)
When you declare a constant, you must assign it an initial value.
(True/False)
4.9/5
(34)
What is the value of dblOutcome after the following section of code executes? Dim dblA as Double
Dim dblB as Double
Dim dblC as Double
Dim dblOutcome as Double
DblA = 45
DblB = 30
DblC = 3 * dblA / dblB
DblOutcome = 2 * dblC + 15)
(Multiple Choice)
4.9/5
(36)
What is the result after evaluating the following expression: 24 MOD 9
(Multiple Choice)
4.9/5
(40)
You can break up a long statement into multiple lines as long as you don't break up a .
(Multiple Choice)
4.8/5
(31)
Which of the following is False in regard to naming variables?
(Multiple Choice)
4.9/5
(45)
A variable is a storage location on a computer's hard drive that holds information while the computer is off.
(True/False)
4.7/5
(30)
The control is used to gather input the user has typed at the keyboard.
(Multiple Choice)
4.8/5
(38)
What will be the value of intAnswer after execution of these statements? Const intNumA As Integer = 6
Const intNumB As Integer = 2
IntAnswer = intNumA / intNumB + intNumA * intNumB
(Multiple Choice)
4.7/5
(32)
A Boolean type variable can hold only one of two possible values: ___.
(Multiple Choice)
4.8/5
(39)
Which of the following declares a variable named intIndex that will be used to store whole numbers?
(Multiple Choice)
4.8/5
(30)
Which of the following declares an Integer variable named intLength and assigns it the integer literal 12?
(Multiple Choice)
4.9/5
(29)
The value returned by passing #12/31/10# to the CSng function is__
(Multiple Choice)
4.7/5
(37)
It's possible to view the order in which all controls on a form will receive the focus by .
(Multiple Choice)
4.8/5
(43)
Identify the error in the following code: Private Sub btnCalculate_ClickByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnCalculate.Click
' Declare some variables
Dim sngNumber1 As Single
Dim sngNumber2 As Single
Dim sngSum As Single
' Get the two numbers
SngNumber1 = txtNumber1.Text
SngNumber2 = txtNumber2.Text
' Calculate their sngSum... is the next line working?
SngSum = sngNumber1 + sngNumber2
' Display the result
LblSum.Text = sngSum.ToString
End Sub
(Multiple Choice)
5.0/5
(43)
When included in the Text property of a button, the && symbols placed side by side will display as a single & character.
(True/False)
5.0/5
(41)
Showing 21 - 40 of 41
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)