Home

1000+ Visual Basic MCQ for IBPS Clerk [Solved]

Thursday 9th of March 2023

Sharing is caring

1. Visual Basic has ____________ number of editions
A. 3
B. 4
C. 5
D. 6
Answer : A
2. The arrange property of MDI form is available at design time.
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. 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
5. 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
6. In case of visual basic, IDE means :
A. Internal Database Engineering.
B. Integrated Database Environment.
C. Integrated Development Environment.
D.
Answer : C
7. 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
8. In runtime it is not possible to change the form size.
A. True
B. False
C.
D.
Answer : B
9. It is possible to build an application without using any form:
A. True
B. False
C.
D.
Answer : A
10. The full form of IIS is :
A. Indian Institute of Science.
B. Internet Information Service
C. Industrial Information Services.
D.
Answer : B
11. Terminate is a valid event in form operation
A. True
B. False
C.
D.
Answer : A
12. 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
13. 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
14. In visual basic, number of loop control structure is _____________.
A. 4
B. 5
C. 6
D. 7
Answer : C
15. Activate event is called before load event
A. True
B. False
C.
D.
Answer : B
16. 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
17. 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
18. 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
19. It is possible to declare 'Dynamic Array' in visual basic.
A. True
B. False
C.
D.
Answer : A
20. It is possible to insert a picture in a option button control.
A. True.
B. False
C.
D.
Answer : A
21. 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
22. 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
23. To get the property window in visual basic you have to press
A. F6
B. F3
C. F4
D. F5
Answer : C
24. In visual basic 'Break' statement could be used along with "Select Case"
A. True
B. False
C.
D.
Answer : B
25. There are _________________ no. of built in windows dialog boxes provided by common dialogs control.
A. 6
B. 7
C. 8
D. 9
Answer : A
26. 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
27. 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
28. Now() function will return the current drive and directory you are working on as return value.
A. True
B. False
C.
D.
Answer : B
29. 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
30. What is the default value for multi-select property of list box control.
A. 1
B. 2
C. 0
D. none
Answer : C
31. In visual basic you can draw something in
A. Picture box control.
B. Image control.
C. Shape control.
D.
Answer : A
32. 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
33. 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
34. 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
35. The maximum length of a variable is _____________ characters.
A. 255
B. 254
C. 256
D. 257
Answer : A
36. To run an application you have to press :
A. F3
B. F6
C. F5
D. F7
Answer : C
37. List count property returns total number of items in list box control.
A. True
B. False
C.
D.
Answer : A
38. In a text box control the default caption for text box is text1.
A. True
B. False
C.
D.
Answer : B
39. It is possible to change the password character property of text box control at run time.
A. True
B. False
C.
D.
Answer : B
40. 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
41. 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
42. cell alignment property can be used to align the cells with different alignment style
A. True
B. False
C.
D.
Answer : A
43. The title of the dialog box can be changed.
A. True
B. False
C.
D.
Answer : A
44. The fundamental property of RichTextBox control is
A. Text property
B. TextRTF property
C. RTFText property
D. All of the above
Answer : C
45. which should be included when an application is used without any forms
A. subroutines
B. function
C. main
D. sub-main
Answer : D
46. In timer control _____________ is the most important property.
A. Interval.
B. Front
C. backcolor
D.
Answer : A
47. Sort is a method by which elements can be sorted in flexgrid control
A. True
B. False
C.
D.
Answer : B
48. 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
49. 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
50. 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

Sharing is caring