VB08 MCQ ANSWER
Drjoseph1. A collection of lines of instruction is called a(n)
[removed]A) program
[removed]B) algorithm
[removed]C) system
[removed]D) programmer
2. What type of items are valid for use in the value list of a Case clause?
[removed]A) literals
[removed]B) variables
[removed]C) expressions
[removed]D) all of the above
3. When the user clicks a button, _________ is triggered.
[removed]A) a prompt
[removed]B) a setting
[removed]C) a method
[removed]D) an event
4. What character is used to signify the beginning of a comment statement?
[removed]A) apostrophe
[removed]B) exclamation mark
[removed]C) asterisk
[removed]D) backslash
5. What effect will the following statement have? lblOne.Visible = False
[removed]A) Enable lblOne
[removed]B) Delete lblOne
[removed]C) Make lblOne invisible
[removed]D) It is not a valid Visual Basic statement.
6. Which of the following is NOT a valid filename?
[removed]A) MYFILE.TXT
[removed]B) MYDATA*.TXT
[removed]C) SALES.TXT
[removed]D) ONEFILE.TXT
7. In Visual Basic, tooltips assist by showing a small caption about the purpose of each icon on the Toolbar. How do you make a tooltip appear?
[removed]A) Right click the Toolbar icon, select purpose from the available options.
[removed]B) Position the mouse pointer over the icon for a few seconds, the tooltip will appear.
[removed]C) Hold your shift key, then click the appropriate Toolbar icon to display its purpose.
[removed]D) Hold your Alt key, then click the appropriate Toolbar icon to display its purpose.
8. Which of the following is NOT considered part of a good top-down design chart?
[removed]A) A module should accomplish as many tasks as possible.
[removed]B) Modules should proceed from general to specific as you read down the chart.
[removed]C) Modules should be as independent of each other as possible.
[removed]D) The design should be readable.
9. Which of the following is NOT a reason for using procedures?
[removed]A) They break a complex problem down into smaller pieces.
[removed]B) They make a program run faster.
[removed]C) They can be reused easily.
[removed]D) They make it possible for a team of people to work together on a single program.
10. Top-down design refers to
[removed]A) an obsolete programming practice in which a program is written without procedures in one large module.
[removed]B) a program design where the key event procedures act like supervisors, delegating tasks to various Sub procedures.
[removed]C) a method of organizing a team of programmers.
[removed]D) a method of increasing the speed of a program.
11. When using the logical operator “And”, what part of the expression must be true?
[removed]A) only the left part.
[removed]B) only the right part
[removed]C) both parts
[removed]D) either the left or right part, but not both.
12. The acronym GUI stands for
[removed]A) graphical user interface.
[removed]B) graphing user introduction.
[removed]C) graphical unit interface.
[removed]D) graphical user input.
13. Which of the following is the proper order of procedures used in the problem-solving process?
[removed]A) design, analysis, coding, testing
[removed]B) analysis, testing, design, coding
[removed]C) analysis, design, coding, testing
[removed]D) analysis, design, testing, coding
[removed]E) design, testing, analysis, coding
14. Which property is available for most controls that allows you to hide/unhide them either manually by setting the property or by setting it during run time via code?
[removed]A) Clear
[removed]B) Visible
[removed]C) Refresh
[removed]D) View-Control
15 .The process of transmitting values to a Sub procedure is known as ______________.
[removed]A) passing
[removed]B) conveying
[removed]C) sending
[removed]D) referencing
16. The three main logical operators are ________, _________, and ________.
[removed]A) And, Or, Not
[removed]B) Or, Not, If
[removed]C) And, Not, If
[removed]D) False, And, True
17. Keywords in Visual Basic are words that
[removed]A) should be used when naming variables.
[removed]B) are used to name controls, such as TextBox1, Command2, etc.
[removed]C) have special meaning and should not be used when naming variables.
[removed]D) are used as prefixes for control names (such as txt, btn, lbl, and lst).
18. Different items appearing in the same value list of a Select Case block must be separated by a ____________.
[removed]A) semi colon
[removed]B) pair of quotation marks
[removed]C) colon
[removed]D) comma
19. Constructs in which an If block is contained inside another If block are called:
[removed]A) multi-If blocks
[removed]B) nested If blocks
[removed]C) sequential If blocks
[removed]D) none of the above
20.Which of the following is NOT a main component of a personal computer?
[removed]A) microprocessor
[removed]B) disk drive
[removed]C) keyboard
[removed]D) receiver
21. The symbol for the string concatenation operator is
[removed]A) @
[removed]B) %
[removed]C) #
[removed]D) &
[removed]E) !
22. A variable that is visible to every procedure in a form’s code without being passed is called a __________ variable.
[removed]A) class-level
[removed]B) global
[removed]C) public
[removed]D) local
23. Which of the following statements is a valid assignment statement?
[removed]A) txtBox = "Hello World"
[removed]B) txtBox.Text = "Hello World"
[removed]C) "Hello World" = txtBox.Text
[removed]D) Text.txtBox = "Hello World"
24. What does the rectangle flowchart symbol represent?
[removed]A) input/output
[removed]B) terminal
[removed]C) decision
[removed]D) connector
[removed]E) process
25. A programmer would press the F4 key to
[removed]A) run a program.
[removed]B) display the Properties window.
[removed]C) display the Solution Explorer window.
[removed]D) terminate a program.
- 10 years ago
Purchase the answer to view it
- vb08questions_answer.docx