Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

True / False Questions 1- You can pass arguments to sub procedures and function

ID: 3640638 • Letter: T

Question

True / False Questions

1- You can pass arguments to sub procedures and function procedures.

2- 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.

3. A function cannot have multiple arguments.

4. Which of the following statements about context menus is NOT true?

A. A program can have more than one context menu.
B. You can assign the same context menu to more than one control on the form.
C. A context menu can be assigned to a control by setting the control's ContextMenuStrip property.
D. The user can access a context menu on a button by right-clicking on the form.

5. Which of the following statements is NOT true?
A. A sub procedure is a procedure that performs actions.
B. A function procedure is a procedure that performs actions.
C. A sub procedure returns a value to the point from which it was called.
D. A function procedure returns a value to the point from which it was called.

6. 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.

Explanation / Answer

1. True 2. True 3. False 4. C. A context menu can be assigned to a control by setting the control's ContextMenuStrip property. 5. B. A function procedure is a procedure that performs actions.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote