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 Menus35 Questions
Exam 8: Arrays and More34 Questions
Exam 9: Files, Printing, and Structure36 Questions
Exam 10: Working With Databases32 Questions
Exam 11: Developing Web Applications33 Questions
Exam 12: Classes, Collections, and Inheritance36 Questions
Select questions type
The order in which controls receive the focus is called the __________.
(Multiple Choice)
4.8/5
(45)
The control is used to gather input the user has typed at the keyboard.
(Multiple Choice)
4.9/5
(34)
What is the result after evaluating the following expression: 24 MOD 9
(Multiple Choice)
4.9/5
(31)
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.8/5
(36)
What is the value of intE after the following statements execute?
Dim intC As Integer
Dim intD As Integer
Dim intE As Integer
IntC = 20
IntD = 3
IntE = intC \ intD
(Multiple Choice)
4.9/5
(27)
Identify the error in the following code:
Private Sub btnCalculate_Click(ByVal 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)
4.9/5
(36)
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.7/5
(34)
You can break up a long statement into multiple lines as long as you don't break up a __________.
(Multiple Choice)
4.8/5
(30)
Only controls capable of receiving some sort of input, such as _________________, may have the focus.
(Multiple Choice)
4.8/5
(34)
You can perform all of the following actions with variables except:
(Multiple Choice)
4.8/5
(40)
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)
5.0/5
(36)
The value returned by passing #12/31/10# to the CSng function is_________________
(Multiple Choice)
4.9/5
(36)
The contents of a text box may be cleared in Visual Basic code by __________.
(Multiple Choice)
4.8/5
(33)
If you want to display multiple lines of information in a message box, use the constant .
(Multiple Choice)
4.9/5
(36)
A form's Load event takes place when the user first clicks on the form at run time.
(True/False)
4.8/5
(38)
All numeric and date data types have a ______method that returns a string representation of the contents of the variable.
(Multiple Choice)
4.8/5
(41)
What is the purpose of using the following type of structure? Try
Some statements
Catch
Other Statements
End Try
(Multiple Choice)
4.8/5
(37)
A variable is a storage location on a computer's hard drive that holds information while the computer is off.
(True/False)
4.8/5
(35)
Showing 21 - 40 of 41
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)