Home

Visual Basic MCQ Solved Paper for GATE

Thursday 9th of March 2023

Sharing is caring

1. 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
2. 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
3. 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
4. It is possible to load a MDI form without any childform.
A. True
B. False
C.
D.
Answer : A
5. In visual basic the default unit is :
A. centimeter.
B. Inch.
C. Dpi.
D. Twips .
Answer : D
6. The project extension name of a VB project is .vbj
A. True
B. False
C.
D.
Answer : B
7. Time variable is used to store date and time in visual basic
A. True
B. False
C.
D.
Answer : B
8. To run an application you have to press :
A. F3
B. F6
C. F5
D. F7
Answer : C
9. Activate event is called before load event
A. True
B. False
C.
D.
Answer : B
10. 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
11. In visual basic you can draw something in
A. Picture box control.
B. Image control.
C. Shape control.
D.
Answer : A
12. A single function of visual basic takes:
A. Fixed number of parameters
B. Unlimited number of parameters
C. All of the above
D. None of the above
Answer : B
13. In runtime it is not possible to change the form size.
A. True
B. False
C.
D.
Answer : B
14. ABS() function will generate a hole value when used with a number with fraction part (ex: 125.26598)
A. True
B. False
C.
D.
Answer : A
15. The full form of IIS is :
A. Indian Institute of Science.
B. Internet Information Service
C. Industrial Information Services.
D.
Answer : B
16. The default startup object can not be changed in a project
A. True
B. False
C.
D.
Answer : B
17. _____________ property of any control cannot change at run time.
A. color
B. name
C. caption
D.
Answer : B
18. The amount of text any one can place in text box is maximum 64 kb.
A. True
B. False
C.
D.
Answer : A
19. What will be the output when the statements below will execute :
Dim a as integer
a=0
while(a<5)
print a
a=a+1
end

A. It will generate the output like 0 1 2 3 4
B. It will generate a runtime error
C. It will generate a compiler error
D. It will display nothing
Answer : C
20. 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
21. It is possible to insert a picture in a option button control.
A. True.
B. False
C.
D.
Answer : A
22. 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
23. 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
24. 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
25. In visual basic Bool variable stores
A. 2 bytes
B. 1 bytes
C. 4 bytes
D. none of the above.
Answer : D
26. In case of visual basic, IDE means :
A. Internal Database Engineering.
B. Integrated Database Environment.
C. Integrated Development Environment.
D.
Answer : C
27. Suppose there are two forms; form1 and form2 ; if there are codes like : In form1.active event
Form2.show
And in form2.active event
Form1.show
Then what will be the output ?

A. Two forms will be just showed.
B. Two forms will be showed and the control will passed continuously to each other.
C. Nothing will be displayed
D. None of the above.
Answer : B
28. Function can return array as return value:
A. True
B. False
C.
D.
Answer : A
29. 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
30. IsDate() function returns true if its argument is a valid date and time
A. True
B. False
C.
D.
Answer : B
31. It is possible to declare 'Dynamic Array' in visual basic.
A. True
B. False
C.
D.
Answer : A
32. which control structure are working under false condition
A. do-while loop & do loop-while
B. while-wend & for loop
C. do-while loop & while wend loop
D. do-until loop & do loop-until
Answer : D
33. What is the default value for multi-select property of list box control.
A. 1
B. 2
C. 0
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. 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
36. You can get the ASCII value of any character or number by using
A. ASC() function
B. ASCII() function
C. There is no function to get the ascii value.
D.
Answer : A
37. The arrange property of MDI form is available at design time.
A. True
B. False
C.
D.
Answer : B
38. List count property returns total number of items in list box control.
A. True
B. False
C.
D.
Answer : A
39. To get the property window in visual basic you have to press
A. F6
B. F3
C. F4
D. F5
Answer : C
40. CommonDialogs control is visible at runtime
A. True
B. False
C.
D.
Answer : B
41. 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
42. 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
43. 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
44. It is possible to change the password character property of text box control at run time.
A. True
B. False
C.
D.
Answer : B
45. In a text box control the default caption for text box is text1.
A. True
B. False
C.
D.
Answer : B
46. In visual basic, number of loop control structure is _____________.
A. 4
B. 5
C. 6
D. 7
Answer : C
47. Time() function is used to recover date & time.
A. True
B. False
C.
D.
Answer : B
48. It is possible to build an application without using any form:
A. True
B. False
C.
D.
Answer : A
49. In visual basic 'Break' statement could be used along with "Select Case"
A. True
B. False
C.
D.
Answer : B
50. 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

Sharing is caring