Home

Visual Basic MCQ Solved Paper for CEED

Thursday 9th of March 2023

Sharing is caring

1. In case of visual basic, IDE means :
A. Internal Database Engineering.
B. Integrated Database Environment.
C. Integrated Development Environment.
D.
Answer : C
2. It is possible to build an application without using any form:
A. True
B. False
C.
D.
Answer : A
3. 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
4. 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
5. which should be included when an application is used without any forms
A. subroutines
B. function
C. main
D. sub-main
Answer : D
6. what will be the output of the code below :
private sub command_click()
dim I as integer
I=0
Do
Print I
Loop until I>10
End sub

A. it will generate compile time error
B. it will generate runtime error
C. it is an endless loop
D. 0 1 2 3 4 5 6 7 8 9 10
Answer : C
7. It is possible to pass different number parameters to a function when call the function on different time.
A. To do this one can use in the parameter list of that function
B. paramarray keyword with the array declaration
C. argument should be passed as array
D. none of the above
Answer : B
8. The maximum length of a variable is _____________ characters.
A. 255
B. 254
C. 256
D. 257
Answer : A
9. 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
10. It is possible to change the password character property of text box control at run time.
A. True
B. False
C.
D.
Answer : B
11. 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
12. Print' statement can be used to print any statement on the screen.
A. True
B. False
C.
D.
Answer : A
13. 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
14. The extension name of a Visual Basic form is _____________.
A. .frm
B. .txt
C. .prj
D. .vbp
Answer : A
15. 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
16. IsDate() function returns true if its argument is a valid date and time
A. True
B. False
C.
D.
Answer : B
17. 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
18. It is possible to insert a picture in a option button control.
A. True.
B. False
C.
D.
Answer : A
19. The size of 'Boolean' data type is :
A. 1 Byte.
B. 2 Bytes.
C. 4 Bytes.
D. 8 Bytes.
Answer : B
20. 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
21. In a text box control the default caption for text box is text1.
A. True
B. False
C.
D.
Answer : B
22. Time variable is used to store date and time in visual basic
A. True
B. False
C.
D.
Answer : B
23. 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
24. 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
25. To run an application you have to press :
A. F3
B. F6
C. F5
D. F7
Answer : C
26. It is possible to declare 'Dynamic Array' in visual basic.
A. True
B. False
C.
D.
Answer : A
27. Flag property is used to adjust the function of each common dialog box
A. True
B. False
C.
D.
Answer : A
28. It is possible in visual basic to specifying array limit like from 1 to 10
A. True
B. False
C.
D.
Answer : A
29. 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
30. 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
31. The amount of text any one can place in text box is maximum 64 kb.
A. True
B. False
C.
D.
Answer : A
32. What is the default value for multi-select property of list box control.
A. 1
B. 2
C. 0
D. none
Answer : C
33. cell alignment property can be used to align the cells with different alignment style
A. True
B. False
C.
D.
Answer : A
34. 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
35. List count property returns total number of items in list box control.
A. True
B. False
C.
D.
Answer : A
36. Function can return array as return value:
A. True
B. False
C.
D.
Answer : A
37. CommonDialogs control is visible at runtime
A. True
B. False
C.
D.
Answer : B
38. Activate event is called before load event
A. True
B. False
C.
D.
Answer : B
39. Visual Basic has ____________ number of editions
A. 3
B. 4
C. 5
D. 6
Answer : A
40. 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
41. Instr$(text1.text,"visual") will returns :
A. No. of times the string "visual" is present in the string in text1.text.
B. It puts the control where it finds the text "visual" in the string given in text1.text.
C. First occurrence of the text "visual" within the string given in text1.text
D. None of the above.
Answer : C
42. 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
43. Constants are processed faster than variables :
A. True
B. False
C.
D.
Answer : A
44. Now() function will return the current drive and directory you are working on as return value.
A. True
B. False
C.
D.
Answer : B
45. 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
46. To get the property window in visual basic you have to press :
A. F3
B. F6
C. F4
D. F6
Answer : C
47. 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
48. _____________ property of any control cannot change at run time.
A. color
B. name
C. caption
D.
Answer : B
49. The arrange property of MDI form is available at design time.
A. True
B. False
C.
D.
Answer : B
50. It is possible to load a MDI form without any childform.
A. True
B. False
C.
D.
Answer : A

Sharing is caring