Home

DRDO - Visual Basic 1000+ MCQ [Solved] PDF Download

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. If the user wants to select the multiple files from file open and filesave dialog boxes then the flag must be set to
A. cdlOFNMultiselsectAllow
B. cdlOFNAllowMultiselect
C. It is not possible to select more than one file at a time
D. None
Answer : B
3. Flag property is used to adjust the function of each common dialog box
A. True
B. False
C.
D.
Answer : A
4. 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
5. Visual Basic has ____________ number of editions
A. 3
B. 4
C. 5
D. 6
Answer : A
6. cell alignment property can be used to align the cells with different alignment style
A. True
B. False
C.
D.
Answer : A
7. Suppose there is a data control named data1. What will be the effect if the following code is inserted
A. Data1.recordset.movefirst
B. The record pointer will move to the first record of the record set
C. The pointer will move to the first record of the original table that contains the data
D. It will refresh the recordset
Answer : B
8. 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
9. Terminate is a valid event in form operation
A. True
B. False
C.
D.
Answer : A
10. 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
11. The full form of IIS is :
A. Indian Institute of Science.
B. Internet Information Service
C. Industrial Information Services.
D.
Answer : B
12. Isnull(), IsEmpty() determines weather any variable has been initialize or not
A. True
B. False
C.
D.
Answer : A
13. _____________ property of any control cannot change at run time.
A. color
B. name
C. caption
D.
Answer : B
14. The default startup object can not be changed in a project
A. True
B. False
C.
D.
Answer : B
15. 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
16. It is possible to change the password character property of text box control at run time.
A. True
B. False
C.
D.
Answer : B
17. It is possible in visual basic to specifying array limit like from 1 to 10
A. True
B. False
C.
D.
Answer : A
18. It is possible to insert a picture in a option button control.
A. True.
B. False
C.
D.
Answer : A
19. To enable apply button in dialog box ; flag value should be set to
A. cdlCFApply
B. cdlcfTTOnly
C. cdcclHelpButton
D. None of the above
Answer : A
20. Currency variable stores fixed point numbers with :
A. 2 decimal digits.
B. 3 decimal digits.
C. 4 decimal digits.
D. 6 decimal digits.
Answer : C
21. To run an application you have to press :
A. F3
B. F6
C. F5
D. F7
Answer : C
22. Time variable is used to store date and time in visual basic
A. True
B. False
C.
D.
Answer : B
23. when using 'do until-loop' statement as stated below
I=10
Do until I>5
Print I
I=I+1
Loop
This statement will print

A. it will generate a run time error
B. no output will be shown
C. 10 11 12 13 14 15
D. none of the above
Answer : B
24. 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
25. To add the commondialog control to any project one has to include it from
A. File menu->component->Microsoft Common Dialog Control 6.0
B. Project menu->Component-> Microsoft Common Dialog Control 6.0
C. Component menu->project-> Microsoft Common Dialog Control 6.0
D. None of the above
Answer : B
26. 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
27. When using do loop-while statement then the statements within the loop body will be executed only once if the condition does not fulfilled
A. True
B. False
C.
D.
Answer : A
28. To get the property window in visual basic you have to press :
A. F3
B. F6
C. F4
D. F6
Answer : C
29. The project extension name of a VB project is .vbj
A. True
B. False
C.
D.
Answer : B
30. 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
31. There are _________________ no. of built in windows dialog boxes provided by common dialogs control.
A. 6
B. 7
C. 8
D. 9
Answer : A
32. Min and Max property can be used with Font common dialog box to determine
A. To controlling dialog box size
B. The minimum and maximum size displayed in the size list
C. None of the above
D.
Answer : B
33. The amount of text any one can place in text box is maximum 64 kb.
A. True
B. False
C.
D.
Answer : A
34. 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
35. Through which property of option button control one can change the font color of the caption.
A. Back color
B. Font color
C. Fore color
D. None
Answer : C
36. It is possible to declare 'Dynamic Array' in visual basic.
A. True
B. False
C.
D.
Answer : A
37. The arrange property of MDI form is available at design time.
A. True
B. False
C.
D.
Answer : B
38. The extension name of a Visual Basic form is _____________.
A. .frm
B. .txt
C. .prj
D. .vbp
Answer : A
39. In timer control _____________ is the most important property.
A. Interval.
B. Front
C. backcolor
D.
Answer : A
40. Which property of list box control reports the number of selected items.
A. ListIndex
B. Selected
C. Selcount
D. NewIndex
Answer : C
41. Activate event is called before load event
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. Visual Basic produce:
A. 3 types of executable code.
B. 2 types of executable code.
C. 4 types of executable code
D. none of the above.
Answer : B
44. What is the default value for multi-select property of list box control.
A. 1
B. 2
C. 0
D. none
Answer : C
45. CommonDialog1.ShowOpen
Filename1=CommonDialog1.Filename
The above code will

A. Set the filename1 by the selected filename from the common dialog contol.
B. First displays the open dialog box and let the user select any file from any
C. location and then set the filename1 by the selected filename.
D. Both are true.
Answer : B
46. In a text box control the default caption for text box is text1.
A. True
B. False
C.
D.
Answer : B
47. When someone uses the code like list1.list(1); then it will return the first item of the list box control.
A. True
B. False
C.
D.
Answer : B
48. Function can return array as return value:
A. True
B. False
C.
D.
Answer : A
49. 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
50. Delete method of the recordset of Data Control or Data Access Object is delete the record which is pointed out by the record pointer.
A. True
B. False
C.
D.
Answer : A

Sharing is caring