Home

1000+ Visual Basic MCQ for ESIC [Solved]

Thursday 9th of March 2023

Sharing is caring

1. CommonDialog control is the default control that anyone can find in the toolbar when a new project is started
A. True
B. False
C.
D.
Answer : B
2. Redim statement is used to :
A. Rename a variable.
B. Rename an array.
C. Redimension an array.
D.
Answer : C
3. Flag property is used to adjust the function of each common dialog box
A. True
B. False
C.
D.
Answer : A
4. It is possible in visual basic to specifying array limit like from 1 to 10
A. True
B. False
C.
D.
Answer : A
5. IsDate() function returns true if its argument is a valid date and time
A. True
B. False
C.
D.
Answer : B
6. Terminate is a valid event in form operation
A. True
B. False
C.
D.
Answer : A
7. It is possible to pass different number parameters to a function when call the function on different time.
A. To do this one can use in the parameter list of that function
B. paramarray keyword with the array declaration
C. argument should be passed as array
D. none of the above
Answer : B
8. It is not possible to change the back color property of option button control at run time.
A. True
B. False
C.
D.
Answer : B
9. In a programme body :
Private sub form_load()
X=inputbox("First No. :")
Y=inputbox("Second No. :")
Z=val(X) +val(Y)
Print Z
End sub
What will be the output ?

A. The summation of two numbers given in two input box
B. It will show the numbers given in the input box side by side
C. It will show nothing
D. None of the above
Answer : C
10. Activate event is called before load event
A. True
B. False
C.
D.
Answer : B
11. The arrange property of MDI form is available at design time.
A. True
B. False
C.
D.
Answer : B
12. It is possible to change the shortcut key assigned to any menu for accessing within the menu editor.
A. True
B. False
C.
D.
Answer : B
13. List count property returns total number of items in list box control.
A. True
B. False
C.
D.
Answer : A
14. Sorted property of list box control is a design time property and cannot be changed in runtime.
A. True
B. False
C.
D.
Answer : A
15. _____________ property of any control cannot change at run time.
A. color
B. name
C. caption
D.
Answer : B
16. If there is a control array of label for 10 elements, then what will be the fifth element in the array?
A. label(5)
B. label(3)
C. label(4)
D. None
Answer : C
17. Visual Basic has ____________ number of editions
A. 3
B. 4
C. 5
D. 6
Answer : A
18. In form load event, if the following code is written then guess what will be the output :
Dim I as integer, J as integer
I=0
J=5
While I<J
Print I
I=I+1
Wend

A. output will be 0 1 2 3 4
B. No output, blank form will be shown
C. Compiler error
D. None
Answer : B
19. It is possible to access a menu without using mouse, to access the menu ;pressing the Ctrl key and the letter assigned to access the menu
A. True
B. False
C.
D.
Answer : B
20. Function can return array as return value:
A. True
B. False
C.
D.
Answer : A
21. In visual basic you can draw something in
A. Picture box control.
B. Image control.
C. Shape control.
D.
Answer : A
22. Constants are processed faster than variables :
A. True
B. False
C.
D.
Answer : A
23. The project extension name of a VB project is .vbj
A. True
B. False
C.
D.
Answer : B
24. In a text box control the default caption for text box is text1.
A. True
B. False
C.
D.
Answer : B
25. MDI form1.Arrange vbTileHorizontal; this code in a MDI form will
A. If there are more than one MDI form then arrange them all in horizontal manner
B. Tiles all child form in horizontal manner
C. Tiles the MDI form horizontally
D. None of the above.
Answer : B
26. In visual basic, number of loop control structure is _____________.
A. 4
B. 5
C. 6
D. 7
Answer : C
27. The amount of text any one can place in text box is maximum 64 kb.
A. True
B. False
C.
D.
Answer : A
28. The extension name of a Visual Basic form is _____________.
A. .frm
B. .txt
C. .prj
D. .vbp
Answer : A
29. To run an application you have to press :
A. F3
B. F6
C. F5
D. F7
Answer : C
30. which should be included when an application is used without any forms
A. subroutines
B. function
C. main
D. sub-main
Answer : D
31. The title of the dialog box can be changed.
A. True
B. False
C.
D.
Answer : A
32. If you want a list box control with check box option, which property of list box control you will have to change.
A. Check box property
B. Check style property
C. Style property
D. None
Answer : C
33. One can change or read the alignment of one or more paragraph of rich text box control through
A. Text Alignment property
B. AlignmentSet property
C. SelAlignment property
D. None
Answer : C
34. You can get a dropdown list and as well as can add some text directly to ____________ Control.
A. listbox
B. command
C. Combo Box.
D. none of this
Answer : C
35. Which property of list box control reports the number of selected items.
A. ListIndex
B. Selected
C. Selcount
D. NewIndex
Answer : C
36. It is possible to load a MDI form without any childform.
A. True
B. False
C.
D.
Answer : A
37. The fundamental property of RichTextBox control is
A. Text property
B. TextRTF property
C. RTFText property
D. All of the above
Answer : C
38. It is possible to change the password character property of text box control at run time.
A. True
B. False
C.
D.
Answer : B
39. DocumentForm() it is
A. A function of MDI forms
B. An array of forms using as child into MDIform
C. None of the above
D.
Answer : B
40. If the Flag constant for the font common dialog box is cdlCFPrinterFonts then it causes the dialog box to show only the fonts supports by the printer specified by the hdc property
A. True
B. False
C.
D.
Answer : A
41. In visual basic 'Break' statement could be used along with "Select Case"
A. True
B. False
C.
D.
Answer : B
42. Print' statement can be used to print any statement on the screen.
A. True
B. False
C.
D.
Answer : A
43. To break a loop abnormally when satisfying a condition, we can use
A. Break statement
B. Exit statement
C. Both i & ii could be used.
D. None of the above.
Answer : B
44. To draw a form on the screen which event is being called up
A. Draw Event
B. Load Event
C. Paint Event
D. Either i or iii
Answer : C
45. There are _________________ no. of built in windows dialog boxes provided by common dialogs control.
A. 6
B. 7
C. 8
D. 9
Answer : A
46. In _______________ control you can get only drop-down list of the content but cannot add directly anything to that control.
A. text box
B. combo box
C. List Box Control
D.
Answer : C
47. What is the default value of MaxLength property of text box control?
A. 255 characters
B. 10 characters
C. 0 characters
D. Any of the above
Answer : C
48. It is possible to build an application without using any form:
A. True
B. False
C.
D.
Answer : A
49. Isnull(), IsEmpty() determines weather any variable has been initialize or not
A. True
B. False
C.
D.
Answer : A
50. In database application, any field does not contain any values can be recognized by:
A. Nothing value.
B. Null value.
C. Error value.
D. Empty value.
Answer : B

Sharing is caring