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
The value of strVar.Length is the number of characters in the value of strVar.
Free
(True/False)
4.7/5
(33)
Correct Answer:
True
What will be displayed when the following lines are executed?
Dim x As Double = 2
'x = 3
txtBox.Text = CStr(x)
Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
C
When using the equal sign to assign values, the variable on the left hand side of the equal sign will always receive the value.
Free
(True/False)
4.7/5
(38)
Correct Answer:
True
Which of the following is not used to assign a value to a variable?
(Multiple Choice)
4.9/5
(48)
Given x = 3 and y = 1, what value will be assigned to the Double variable w when the following statement is executed?
w = (x + y) / (x - y)
(Multiple Choice)
4.8/5
(38)
Suppose the Double variable num has the value 123.4567. What value will the following statement assign to num?
num = Math.Round(num, 2)
(Multiple Choice)
4.9/5
(49)
The empty string is the same as a string that contains one space.
(True/False)
4.9/5
(33)
When a variable declared in one event procedure has the same name as a variable declared in another event procedure, any change to the value of one of the variables will affect the value of the other variable.
(True/False)
4.9/5
(33)
Which statement will display the words "Hello World" in a text box?
(Multiple Choice)
4.9/5
(37)
What is the correct syntax for displaying the value of the String variable myString in a text box?
(Multiple Choice)
4.9/5
(41)
If the value of the Date variable currently is the first day of 2011, then what is displayed by the statement txtBox.Text = CStr(currently.AddMonths(1))?
(Multiple Choice)
4.8/5
(36)
The value of DateDiff(DateInterval.Day, #1/1/2014#, #2/1/2014#) is 31.
(True/False)
4.9/5
(39)
The following statement contains what type of error?
txtAverage.Txt = CStr(CDbl(txtNum1.Text) + CDbl(txtNum2.Text) / 2)
(Multiple Choice)
4.7/5
(32)
Showing 1 - 20 of 101
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)