Exam 3: Variables, Input, and Output
Exam 1: An Introduction to Computers and Problem Solving36 Questions
Exam 2: Visual Basic, Controls, and Events61 Questions
Exam 3: Variables, Input, and Output101 Questions
Exam 4: Decisions86 Questions
Exam 5: General Procedures70 Questions
Exam 6: Repetition73 Questions
Exam 7: Arrays87 Questions
Exam 8: Text Files65 Questions
Exam 9: Additional Controls and Objects90 Questions
Exam 10: Databases34 Questions
Exam 11: Object-Oriented Programming66 Questions
Select questions type
An assignment statement of the form intVar = 8 / 4 is not valid.
(True/False)
5.0/5
(42)
Given the data assigned to the string variable str2 shown below, which of the following statements will assign the value ALL to the string variable str1?
str2 = "WHEN ALL ELSE FAILS, READ THE DIRECTIONS"
(Multiple Choice)
4.9/5
(42)
What character is used to signify the beginning of a comment statement?
(Multiple Choice)
4.9/5
(41)
What will be the value of numVar when the following code is executed? Dim strVar As String, numVar As Integer
strvar "Now is the time for all good men"
numVar strVar. Indexof ("the time for")
(Multiple Choice)
4.8/5
(40)
The following statements assign the lowercase letters to the string variable alphabet.
Dim alphabet As String
alphabet = abcdefghijklmnopqrstuvwxyz
(True/False)
4.8/5
(39)
You can use a variable name in almost any place you could use a literal value.
(True/False)
4.8/5
(35)
The following statement is valid where dog and cat are variables of the same type.
dog = cat
(True/False)
4.8/5
(37)
An assignment statement is used to assign a value to a variable or property.
(True/False)
4.8/5
(33)
The exponential notation used in Visual Basic is exactly the same as standard mathematical notation.
(True/False)
4.7/5
(37)
What is the correct statement when declaring and assigning the value of 100 to an Integer variable called numPeople?
(Multiple Choice)
4.9/5
(38)
Which of the following arithmetic operations has the highest level of precedence?
(Multiple Choice)
4.8/5
(35)
What will be the output of the following statement?
txtBox.Text = (1234.567).ToString("C")
(Multiple Choice)
4.9/5
(37)
With Option Strict On, a statement of the form intVar = dblVar is not valid.
(True/False)
4.9/5
(30)
What will be the contents of the variable x after the following statement is executed? x = Math.Sqrt(((9 + 7) / (4 * 2)) + 2)
(Multiple Choice)
4.9/5
(39)
A variable declared outside of an event procedure is said to have class-level scope.
(True/False)
4.8/5
(37)
All comment statements must be placed at the beginning of a program.
(True/False)
5.0/5
(28)
Showing 21 - 40 of 101
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)