Preview

Visual Basic: Multiple Choice Questions

Satisfactory Essays
Open Document
Open Document
595 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Visual Basic: Multiple Choice Questions
Question 1 | | 2 / 2 points |
The ____ function displays an input dialog box, which is one of the standard dialog boxes available in Visual Basic. | | A) | InputBox | | | | B) | DialogBox | | | | C) | OutputBox | | | | D) | ShowBox | | Question 2 | | 2 / 2 points |
A variable that has block scope can be used ____. | | A) | within the procedure in which it is declared | | | | B) | only within the statement block in which it is declared | | | | C) | within any statement blocks in the program | | | | D) | within any procedures in the program | | Question 3 | | 2 / 2 points |
All expressions containing a comparison operator will result in a(n) ____ answer. | | A) | floating-point | | | | B) | integer | | | | C) | true or false | | | | D) | string | | Question 4 | | 2 / 2 points |
When using the Select Case statement, the data type of the ____ must be compatible with the data type of the selectorExpression. | | A) | Case expression | | | | B) | Case Else clause | | | | C) | instructions | | | | D) | expressions | | Question 5 | | 2 / 2 points |
The expression 1 To 5 in the Case 1 To 5 clause specifies the range of numbers from ____. | | A) | 2 to 5, inclusive | | | | B) | 2 to 4, inclusive | | | | C) | 1 to 4, inclusive | | | | D) | 1 to 5, inclusive | | Question 6 | | 0 / 2 points |
In situations where the selection structure has many paths from which to choose, it is often simpler and clearer to code the selection structure using the ____ statement. | | A) | Select Case | | | | B) | Begin/End | | | | C) | If/Then | | | | D) | Do/Loop | | Question 7 | | 2 / 2 points |
The ____ in a flowchart represents the multiple-alternative selection structure’s condition. | | A) | circle | | | | B) | diamond | | | | C) | square | | | | D)

You May Also Find These Documents Helpful

Related Topics