Exam 5: Menus, Common Dialog Boxes, Sub Procedures, and Function
Exam 1: Introduction to Visual Basic 201054 Questions
Exam 2: User Interface Design74 Questions
Exam 3: Variables, Constants, and Calculations58 Questions
Exam 4: Decisions and Conditions51 Questions
Exam 5: Menus, Common Dialog Boxes, Sub Procedures, and Function38 Questions
Exam 6: Multiform Projects69 Questions
Exam 7: Lists, loops, and Printing76 Questions
Exam 8: Arrays and Collections50 Questions
Exam 9: Web Applications66 Questions
Exam 10: Database Applications43 Questions
Exam 11: Data Files43 Questions
Exam 12: OOP: Creating Object-Oriented Programs51 Questions
Exam 13: Graphics, Animation, Sound, and Drag-And-Drop62 Questions
Exam 14: Additional Topics in Visual Basic60 Questions
Select questions type
If you want the user to be able to use the dialog boxes from the Windows environment so he can save files and change colors,you will need to add two common dialog components to your form,the SaveFileDialog for saving files,and the ColorDialog for changing colors.
Free
(True/False)
4.7/5
(36)
Correct Answer:
True
By default,all new menu items have their Enabled property set to True.
Free
(True/False)
4.8/5
(34)
Correct Answer:
True
When you call a sub procedure or a function procedure,you can send values,called arguments.
Free
(True/False)
4.9/5
(40)
Correct Answer:
True
An enabled menu item appears in black text and is available for selection.
(True/False)
4.9/5
(34)
Which of the following is the correct way to assign a font to a label using common dialog boxes after the statement FontDialog1.ShowDialog()has been executed?
(Multiple Choice)
4.7/5
(32)
If you click on an item in a menu that is grayed out,you will toggle it on,and it will appear in black text.
(True/False)
4.9/5
(41)
Which of the following is NOT true about menu items in Visual Basic?
(Multiple Choice)
4.8/5
(32)
Which of the following is NOT true about using keyboard access with a menu item?
(Multiple Choice)
4.8/5
(44)
Which property in a menu item's property window is used to change the words that will display in the menu?
(Multiple Choice)
4.8/5
(41)
Which of the following is NOT true about a menu item that has a check mark?
(Multiple Choice)
4.7/5
(43)
Which of the following is the method for showing common dialog boxes?
(Multiple Choice)
4.8/5
(40)
Which of the following is NOT true about passing arguments to procedures or functions?
(Multiple Choice)
4.8/5
(39)
It is possible to create procedures that are not associated with click events.
(True/False)
4.8/5
(30)
When an argument is sent ByVal,a copy of the argument's value is sent to the procedure so that the procedure cannot alter the original value.
(True/False)
4.7/5
(40)
The default for passing arguments to function procedures and sub procedures is ByRef.
(True/False)
4.8/5
(33)
Assume that you are working on a VB project where you need to change the color of the text in a text box named InformationTextBox.The color is to be selected by the user of the project.Explain which CommonDialog component you need to add to your form,indicate where it appears,and write the code needed to change the color of the text box.
A.Add a ColorDialog component,ColorDialog1.
B.It will appear in the component tray.
C.This is the code to show the dialog box: ColorDialog1.ShowDialog()
This is the code to change the textbox font color -
InformationTextBox.ForeColor = ColorDialog1.Color
(Essay)
4.8/5
(39)
Showing 1 - 20 of 38
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)