Programming With Visual Basic Questions and Answers Plus 60 Online Quiz
BROUGHT TO YOU BY; Obibinii Ba MediaSPONSORED BY; Let Us Build Africa Now-LUBAN
You can start the quiz by joining our LUBAN CLASS after going through these questions.
Please click on the Quiz Time icon below to start the quiz.
1. A ____________ is a file that contains program instructions called code.
a) Source file
b) Object file
c) Executable file
d) Program file
2. Which box contains the name of the selected object?
a) Select Box
b) Object Box
c) List Box
d) Display box
3. Which box displays the current values of each of the properties?
a) Settings Box
b) Display Box
c) Object box
d) Value Box
4. Which button is used to display the names in the property list by category?
a) Categorized button
b) Alphabetical button
c) Lexicographical button
d) Group button
5. What are listed in a Properties Window?
a) Attributes
b) Objects
c) Values
d) Items
6. By which button can you display the additional items?
a) Display Button
b) Show All Files Button
c) Visible Button
d) Show Button
7. _______________is the default name assigned to the label control.
a) Label0
b) Label1
c) NewLabel
d) DefaultLabel
8. Margin lines are ______________ in colour.
a) Blue
b) Red
c) Green
d) Black
9. Which property in the property list is used to change the text, style or size of the control’s text?
a) Font
b) Origin
c) Style
d) Appearance
10. To include an image on the form we use which toolbox?
a) Picture Box
b) Image box
c) Add Image box
d) Add Picture Box
11. While the Picture Box tool is included in the form, a triangle appears in the upper-left corner
of the control?
a) Edit Box
b) Property Box
c) Task box
d) Image box
12. To include the image file in the project itself, the Project Resource file radio button must be selected from which dialog box?
a) Select Resource Dialog box
b) Select Dialog box
c) Resource Dialog Box
d) Project Dialog Box
13. Which property is used to view the full image in the Picture Box?
a) View full image
b) StretchImage
c) View Image
d) Full Size Image
14. StretchImage Property is present in which dialog box?
a) Task list
b) Properties Window
c) Picture Task Window
d) View Window
15. Which is used to change the name of the picture?
a) Properties Window
b) Change Name
c) Edit Window
d) Picture Properties Window
16. __________ is commonly used to perform an immediate action when clicked.
a) Exit
b) Button control
c) Close
d) End
17. __________ in the Tool Box is used to add a button control to a form.
a) Button Tool
b) Add Button
c) New Button
d) Add new Button
18. The actions such as click, double-click, scrolling etc are __________
a) Events
b) Functions
c) Procedures
d) Actions
19. Object respond to an event by writing __________
a) Operations
b) Event procedures
c) Defining events
d) Defining actions
20. Where do you enter the event procedure’s code?
a) Event window
b) Properties window
c) Code Editor Window
d) Action Window
21. Which statement is used to define a class in visual basic?
a) Class statement
b) Event statement
c) Event class statement
d) Form class statement
22. A timer control is instantiated using __________
a) Timer tool
b) Control tool
c) Stopwatch tool
d) Timer Control Tool
23. What happens when a control is deleted from a form?
a) Does not delete the control’s code
b) Does delete the control’s code
c) Control is deleted in total
d) Control is not deleted, it can be brought back
24. __________ is used to delete a certain code from the code editor window.
a) Edit
b) Delete
c) Truncate
d) Free
25. __________ button is used to select a control from the form.
a) Exit button
b) Select button
c) Edit button
d) Delete button
26. __________ is used to close both the code from code editor and control from the form.
a) Me.close()
b) This.close()
c) Close All
d) Close()
27. __________ is used to remove a component of the form after a certain period of time.
a) Timer
b) Exit button
c) Remove button
d) Delete button
28. __________ is generally used to emphasize the text.
a) Italics
b) Underline
c) Bold
d) Regular
29. A __________ provides an area in the form for the user to enter data.
a) Text box
b) Button
c) Edit box
d) Label
30. It is inappropriate to assign access keys to __________
a) Text boxes
b) Label controls
c) Timer
d) Button
31. A __________ is an example that accepts user input and is determined by a label control.
a) Text box
b) Property box
c) Tool box
d) Button
32. Which button is used to save a solution?
a) Save Button
b) Save As Button
c) Save Solution Button
d) Save All Button
33. Which option is used to close the IDE?
a) Close
b) Close Solution
c) Close All
d) Close IDE
34. Which option is used to close the Solution?
a) Close
b) Close Solution
c) Close All
d) Exit
35. What is used to add a Label control to a form?
a) Label Tool
b) Add Tool
c) Add Control Tool
d) Add Label Tool
36. What is the purpose of the label control?
a) To display the text that the user is not allowed to edit while the application is not running
b) To display the text that the user is allowed to edit while the application is not running
c) To display the text that the user is not allowed to edit while the application is running
d) To display the text that the user is allowed to edit while the application is running
37. The size of _____________ is determined by the label’s margin property.
a) margin lines
b) label
c) border lines
d) label lines
38. A function can receive information either by value or by _________________
a) Reference
b) Address
c) Pointer
d) Value
39. ___________ is used to store temporary data by programmers.
a) Addressed Location
b) Variable
c) Pointer
d) RAM
40. ___________ data type can store any type of data.
a) Object
b) Universal
c) DataType
d) Common
41. A form’s ____________ event is triggered when the computer processes the Me.Close()
statement.
a) Close
b) Closing
c) FormClose
d) FormClosing
42. The __________ function temporarily converts the string to a number and then returns the number.
a) Val
b) Value
c) Integer
d) Convert
43. A _______________ allows you to select from a list of choices.
a) Combo Box
b) Combo List
c) Check Box
d) Radio Button
44. Variables declared in a form’s declaration section have _____________ scope.
a) Class
b) Procedure
c) Block
d) Object
45. What will be contained in Msg if grade entered by user is ‘d’?
grade=grade.Text.ToUpper
If grade==”A”
Msg =”Excellent”
ElseIf grade==”B”
Msg=”Very Good”
ElseIf grade==”C”
Msg=”Good”
ElseIf grade==”D”
Msg=”Fair”
Else
Msg=”Fail”
EndIf
a) Fair
b) Fail
c) Good
d) Excellent
46. ________________ statement is the last statement in the function.
a) Footer
b) Header
c) Return
d) Call
47. A __________ is a predefined procedure that performs a specific task.
a) Flowchart
b) Pseudocode
c) Function
d) Errors
48. A class-level variable is declared using ______________ keyword.
a) Private
b) Public
c) Dim
d) Static
49. A procedure-level variable is declared using ____________ keyword.
a) Private
b) Public
c) Dim
d) Static
50. Two procedures can have procedure-level variable whose names are same.
a) True
b) False
51. Text box’s ReadOnly Property is set to ______________ by default.
a) True
b) False
52. String comparison in Visual basic is case-sensitive.
a) True
b) False
53. A control can be added to a form by double-clicking its control icon in the Toolbox.
a) True
b) False
54. The form, label and picture box have identical properties.
a) True
b) False
55. If their machines are connected to the Internet, programmers can browse the Internet from the Visual Studio .NET IDE.
a) True
a) False
Please click on FOLLOW US icon below to follow Obibinii Ba Media to be the first to get more updates.
Thank you