Home

JEE Main - Visual Basic 1000+ MCQ [Solved] PDF Download

Thursday 9th of March 2023

Sharing is caring

1. 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
2. In timer control _____________ is the most important property.
A. Interval.
B. Front
C. backcolor
D.
Answer : A
3. Flag property is used to adjust the function of each common dialog box
A. True
B. False
C.
D.
Answer : A
4. 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
5. List count property returns total number of items in list box control.
A. True
B. False
C.
D.
Answer : A
6. IsDate() function returns true if its argument is a valid date and time
A. True
B. False
C.
D.
Answer : B
7. It is possible to load a MDI form without any childform.
A. True
B. False
C.
D.
Answer : A
8. 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
9. Function can return array as return value:
A. True
B. False
C.
D.
Answer : A
10. Sort is a method by which elements can be sorted in flexgrid control
A. True
B. False
C.
D.
Answer : B
11. 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
12. 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
13. It is possible to build an application without using any form:
A. True
B. False
C.
D.
Answer : A
14. It is possible to insert a picture in a option button control.
A. True.
B. False
C.
D.
Answer : A
15. 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
16. Dialog title property is used to change the title of any dialog box
A. True
B. False
C.
D.
Answer : A
17. There are _________________ no. of built in windows dialog boxes provided by common dialogs control.
A. 6
B. 7
C. 8
D. 9
Answer : A
18. Activate event is called before load event
A. True
B. False
C.
D.
Answer : B
19. The arrange property of MDI form is available at design time.
A. True
B. False
C.
D.
Answer : B
20. The title of the dialog box can be changed.
A. True
B. False
C.
D.
Answer : A
21. cell alignment property can be used to align the cells with different alignment style
A. True
B. False
C.
D.
Answer : A
22. In visual basic Bool variable stores
A. 2 bytes
B. 1 bytes
C. 4 bytes
D. none of the above.
Answer : D
23. Now() function will return the current drive and directory you are working on as return value.
A. True
B. False
C.
D.
Answer : B
24. 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
25. Time variable is used to store date and time in visual basic
A. True
B. False
C.
D.
Answer : B
26. 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
27. 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
28. Isnull(), IsEmpty() determines weather any variable has been initialize or not
A. True
B. False
C.
D.
Answer : A
29. 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
30. Which property of list box control reports the number of selected items.
A. ListIndex
B. Selected
C. Selcount
D. NewIndex
Answer : C
31. In visual basic the default unit is :
A. centimeter.
B. Inch.
C. Dpi.
D. Twips .
Answer : D
32. 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
33. 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
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 size of 'Boolean' data type is :
A. 1 Byte.
B. 2 Bytes.
C. 4 Bytes.
D. 8 Bytes.
Answer : B
36. 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
37. 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
38. Print' statement can be used to print any statement on the screen.
A. True
B. False
C.
D.
Answer : A
39. In visual basic, number of loop control structure is _____________.
A. 4
B. 5
C. 6
D. 7
Answer : C
40. 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
41. To get the property window in visual basic you have to press :
A. F3
B. F6
C. F4
D. F6
Answer : C
42. _____________ property of any control cannot change at run time.
A. color
B. name
C. caption
D.
Answer : B
43. 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
44. Constants are processed faster than variables :
A. True
B. False
C.
D.
Answer : A
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. 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
47. 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
48. In case of visual basic, IDE means :
A. Internal Database Engineering.
B. Integrated Database Environment.
C. Integrated Development Environment.
D.
Answer : C
49. It is possible to change the password character property of text box control at run time.
A. True
B. False
C.
D.
Answer : B
50. 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

Sharing is caring