WorksheetsCProg 1st Semester Final Exam Review Part 3
Total questions: 17
Worksheet time: 9mins
Which of the following symbols is used to place documentation in a program and causes the computer to ignore the remaining content on the line?
/
/*
*/
'
In the mathematical expression 4 * 3 + 15 / 3 - 6, which operation is performed first?
Addition
subtraction
multiplication
division
In the mathematical expression 4 * 3 + 15 / 3 - 6, which operation is performed LAST?
addition
subtraction
multiplication
division
In the mathematical expression 12/6/2, the answer is ____.
1
2
3
4
The ____function can be used to improve the appearance of the numbers displayed on a screen.
Arrange
Change
Display
Format
Which of the following satements formats the contents of the lblSales control with a percent sign and two digits to the right of the decimal?
lblSales.Text = Format (lblSales.Text, "Percent")
lblSales = Format (lblSales.Text, "Percent")
lblSales.Text = Format (lblSales.Text, "Fixed")
lblSales.Text = Format ( "Percent", lblSales.Text)
Spaces are allowed in variable names
True
False
All numeric variables are automatically initialized to 0 if no initial value is specified when the variable is declared
True
False
A Boolean variable is initialized to the value True if no initial value is stated when the variable is declared.
True
False
A variable declared in the Declaration section of a form is called a procedure -level variable.
True
False
Instead of storing data in the properties of various controls, a programmers can create ____, which are memory locations inside the computer, to store data.
characters
variables
integers
strings
Which of the following statements declares a Double variable named dblTax
Dim dblTax as Integer
Dim dblTax as Double
Dim variableTax as Double
Dim as dblTax Double
Which of the following can store a number containing whole numbers?
Double
Integer
String
Boolean
Every numeric data type in Visual Basic has a ____ method that can be used to convert a string to that numeric data type.
Convert
Format
TryParse
Number
You declare a class level variable using the ____keyword
Dim
Mod
Private
Static
You create a named constant using the ____ statement
Fixed
Const
ContantFixed
Perm
Which of the following correctly assigns the text "correct" the the constant strCorrect?
Const As strCorrect String = "correct"
Const strCorrect As String = "correct"
Dim Const strCorrect = "correct"
Const conCorrect as String = "correct"
