Home

Visual Basic MCQ Solved Paper for NEET PG

Thursday 9th of March 2023

Sharing is caring

1. 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
2. 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
3. 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
4. The other Single Document Interface forms are by default child of MDI form when MDI form is inserted.
A. True
B. False
C.
D.
Answer : B
5. Time() function is used to recover date & time.
A. True
B. False
C.
D.
Answer : B
6. Activate event is called before load event
A. True
B. False
C.
D.
Answer : B
7. To get the property window in visual basic you have to press
A. F6
B. F3
C. F4
D. F5
Answer : C
8. In runtime it is not possible to change the form size.
A. True
B. False
C.
D.
Answer : B
9. 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
10. 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
11. The extension name of a Visual Basic form is _____________.
A. .frm
B. .txt
C. .prj
D. .vbp
Answer : A
12. Sort is a method by which elements can be sorted in flexgrid control
A. True
B. False
C.
D.
Answer : B
13. It is possible to declare 'Dynamic Array' in visual basic.
A. True
B. False
C.
D.
Answer : A
14. While running an application you can change the value of any variable and see it's effect through ___________ window.
A. intermediate
B. Immediate
C. current
D.
Answer : B
15. It is possible to insert a picture in a option button control.
A. True.
B. False
C.
D.
Answer : A
16. 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
17. 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
18. In visual basic, number of loop control structure is _____________.
A. 4
B. 5
C. 6
D. 7
Answer : C
19. 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
20. The fundamental property of RichTextBox control is
A. Text property
B. TextRTF property
C. RTFText property
D. All of the above
Answer : C
21. Function Add(Num1 as integer, Num2 as integer) as integer
Add=Num1+Num2
Num1=0
Num2=0
End function
This body is an example of calling up a function by:

A. By optional argument.
B. By value.
C. By reference.
D.
Answer : C
22. 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
23. The full form of IIS is :
A. Indian Institute of Science.
B. Internet Information Service
C. Industrial Information Services.
D.
Answer : B
24. Visual Basic has ____________ number of editions
A. 3
B. 4
C. 5
D. 6
Answer : A
25. 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
26. 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
27. The title of the dialog box can be changed.
A. True
B. False
C.
D.
Answer : A
28. 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
29. The project extension name of a VB project is .vbj
A. True
B. False
C.
D.
Answer : B
30. To run an application you have to press :
A. F3
B. F6
C. F5
D. F7
Answer : C
31. CommonDialogs control is visible at runtime
A. True
B. False
C.
D.
Answer : B
32. Which property of list box control reports the number of selected items.
A. ListIndex
B. Selected
C. Selcount
D. NewIndex
Answer : C
33. 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
34. 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
35. The maximum length of a variable is _____________ characters.
A. 255
B. 254
C. 256
D. 257
Answer : A
36. 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
37. Time variable is used to store date and time in visual basic
A. True
B. False
C.
D.
Answer : B
38. Redim statement is used to :
A. Rename a variable.
B. Rename an array.
C. Redimension an array.
D.
Answer : C
39. Now() function will return the current drive and directory you are working on as return value.
A. True
B. False
C.
D.
Answer : B
40. It is possible to load a MDI form without any childform.
A. True
B. False
C.
D.
Answer : A
41. Constants are processed faster than variables :
A. True
B. False
C.
D.
Answer : A
42. RichTextBox1.BulletIndent=5 ; what will be the effect of this code if used in any program
A. It will set the bulleted indentation by the specified value
B. It will create a list of bullet of 5 items
C. All of the above
D.
Answer : A
43. Function can return array as return value:
A. True
B. False
C.
D.
Answer : A
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. By default 'Dim myvar' this statement:
A. allocates memory for integer variable
B. allocates memory for variant variable
C. allocates memory for Double variable
D. allocates memory for Boolean variable
Answer : B
46. List count property returns total number of items in list box control.
A. True
B. False
C.
D.
Answer : A
47. Terminate is a valid event in form operation
A. True
B. False
C.
D.
Answer : A
48. 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
49. 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
50. The size of 'Boolean' data type is :
A. 1 Byte.
B. 2 Bytes.
C. 4 Bytes.
D. 8 Bytes.
Answer : B

Sharing is caring