Вы находитесь на странице: 1из 8

NATIONAL SOCIETY OF INFORMATION TECHNOLOGY

Certificate Course in Visual Basic(VB) Programming


(3 Months)
Objective Question
Time: 1 Hour Total Marks – 100
Each Question are 2 Marks

1. RAD stands for


A.) Rapid Application Development B.) Randomly Application Development
C.) Reused Application Development D.) Rapid Application Development
2. “dim” is a _______
A.) Data Type B.) Keyword
C.) Operator D.) Symbol
3. how many tools available in visual basic.?
A.) 3 B.) 4
C.) 21 D.) 7

4. define the output


text1.text=”visual basic”
text2.text=mid(text1.text,8,5)
A.) Visual B.) ual Basic
C.) Visual bas D.) Basic
5. define the right output
text1.text=”hello”
text2.text=left(text1.text,3)
A.) hel B.) lo
C.) llo D.) elo
6. Event-driven languages are:
A.) FORTRAN based B.) Are used to write procedural languages
C.) OOP D.) Designed to make programming GUI easier
7. IDE is:
A.) Independent Development Enterprise
B.) A development environment for machine language
C.) A software project management tool
D.) An Integrated Development Environment for Visual Basic
8. Code is:
A.) Updateable in the form editor B.) Instructions
C.) Seldom used D.) An object
9. Controls are
A.) Code B.) Part of the Menus
C.) Rules D.) Objects
10. In the IDE, which of following is used to design the layout of an application?
A.) Form Designer window B.) Project Explorer window
C.) Context Menu D.) Form Layout window
11. The Object Browser:
A.) Displays the command buttons and textboxes etc.
B.) Shows frequently used shortcuts as objects
C.) Is a Context Menu
D.) Displays the object libraries and their combinations of data and code
12. The location of the form on the desktop during execution is determined by the:
A.) Form Designer window B.) Project Explorer window
C.) Context Menu D.) Form Layout window
13. The first procedure-oriented language was:
A.) FORTRAN B.) Basic
C.) COBOL D.) ADA
14. Visual Basic projects are identified by a:
A.) “.vbp” suffix B.) “.mak” suffix
C.) “.vbg” suffix D.) All of the above
15. Visual Basic forms are identified by a:
A.) “.frm” suffix B.) “.mak” suffix
C.) “.for” suffix D.) A special icon
16. To run an application in Visual Basic:
A.) Click on the start button (blue arrow) B.) Use the File Menu
C.) Use the Project Menu to select Run D.) None of the above
17. To exit Visual Basic:
A.) Click Alt-Q B.) Use the File Menu to select Quit
C.) Use the Window Menu to select Exit D.) Click on the diskette icon
18. The reference library of Visual Basic books is called:
A.) MSDN Library B.) Help Library
C.) Contents D.) Topic pane
19. In which year vb 6.0 version was launched
A.) 1991 B.) 1994
C.) 1996 D.) 1998
20. IDE stands for
A.) Integrated development environment B.) Integration development enviroment
C.) Integrated developing environment D.) Integration developing environment
21. What is the prefix of command ?
A.) cmd B.) command
C.) cmd1 D.) command1
22. What is the prefix of list box?
A.) Lst B.) list
C.) list box D.) box
23. How many tools available in visual basic?
A.) 40 B.) 30
C.) 21 D.) 31
24. Select the event
A.) Key up B.) got focus
C.) dbclick D.) all of the above
25. There are _______types of scrollbar
A.) 3 B.) 4
C.) 2 D.) 6
26. which is not a part of IDE
A.) Project Explorer Window B.) Code Window
C.) Form Layout Window D.) Text Box
27. RGB() stands for
A.) Red Green Blue B.) Red Gray Blue
C.) Green Blue Red D.) Red Green Black
28. Which language is not a true object-oriented programming language?
A.) VB .NET B.) VB 6
C.) C++ D.) C#
29. A GUI:
A.) Uses Buttons, Menus, And Icons B.) Should Be Easy For A User To Manipulate.
C.) Stands For Graphic Use Interaction D.) Both A And B
30. Visual Studio .NET provides which feature:
A.) Debugging B.) Application Development
C.) Syntax Checking D.) All of the Above
31. Which type of project can a developer choose in the New Project dialog box?
A.) Visual Basic Projects B.) Visual C# Projects
C.) Visual C++ Projects D.) Both A and B
32. Which is not a main component of the Visual Studio IDE?
A.) Solution Explorer B.) Tool Box
C.) Start Menu D.) Properties Window
33. Which does the solution explorer not display?
A.) Form Properties B.) Reference Folder
C.) Form File D.) Assemble File
34. Which is true about the name and text property of a control?
A.) They are the same when the control is first created.
B.) The text property changes to match any changes in the name property.
C.) They are never the same unless the programmer makes it that way.
D.) They are not allowed to be the same and an error will occur if they are.
35. Which are the standard prefixes for the Button and Combo box controls respectively?
A.) btn and chb B.) btn and cbo
C.) bto and cbo D.) cmd and cbo
36. Which task is accomplished in the Code editor?
A.) Adding Forms To The Project B.) Adding Controls To The Form
C.) Adding Event Procedures To The Form D.) All Of The Above
37. Which is not a feature of a GUI that makes learning a program easy for users?
A.) Online help B.) WYSIWYG formatting
C.) Dialog boxes D.) Icons
38. An object is composed of:
A.) Properties B.) Methods
C.) Events D.) All of the Above
39. Which is not true about forms and controls in Visual Basic?
A.) They are pre-built. B.) They are graphical objects
C.) Buttons can be created with
D.) All of the above are true
the drag and drop method.
40. Which is an example of Visual Basic Objects?
A.) Control objects B.) ADO.NET
C.) ASP.NET D.) All of the Above
41. Which is not a property of the Common control class?
A.) Show B.) BackColor
C.) Font D.) ForeColor
42. Which property determines whether a control is displayed to the user?
A.) Hide B.) Show
C.) Cursor D.) Enabled
43. The Button control can be activated:
A.) Programmatically Through The
B.) By Clicking The Button With The Mouse.
Click Event.
C.) With The Form’s Default
D.) Both A And B.
button Property.
44. The Cancel Button property belongs to which object?
A.) Button B.) Timer
C.) Label D.) Textbox
45. Which is not a common control event?
A.) Single Click B.) Click
C.) Double Click D.) Mouse Move
46. The Tick event is found only in which object?
A.) Form B.) Button
C.) Option D.) Label
47. Which phase of project development typically costs the most?
A.) Analysis B.) Design
C.) Implementation D.) Maintenance
48. Which is a numeric data type?
A.) Floating Point B.) Integer
C.) Boolean D.) All of the Above
49. The Date data type does not hold which type of information.
A.) Seconds B.) Hours
C.) Days D.) Months
50. The Boolean data type:
A.) Is Unsigned B.) Has Two States
C.) Is displayed by the program as yes or no D.) All of the Above
51. Which is a valid statement for declaring a variable?
A.) Const Form As Integer B.) Const myForm As Integer
C.) Private Dim Form As Integer D.) Dim myForm As Integer
52. VB.Net identifiers:
A.) Are Case Sensitive B.) Can Begin With An Underscore
C.) Can Begin With A Number D.) Both A And B
53. The name of a constant:
A.) Must both begin with a letter and be all upper case.
B.) Does not have to begin with a letter but must be all upper case
C.) Must begin with a letter but can be upper or lower case.
D.) Does not have to begin with a letter and be either upper or lower case.
54. The proper operator precedence, from first to last, is:
A.) Logical, comparison, and arithmetic.
B.) Arithmetic, comparison, and logical.
C.) Arithmetic, logical, and comparison.
D.) Logical, arithmetic, comparison.
55. With A = False and B = True, which statement evaluates as True?
A.) A and A B.) A and B
C.) B and A D.) B and B
56. Which operator is evaluated first?
A.) NOT B.) AND
C.) XOR D.) OR
57. The left side of an assignment statement will hold:
A.) A Variable B.) An Object Property
C.) An Experssion D.) Both A and B
58. Which function returns the numbers represented in the string “$56.7”?
A.) Abs B.) CDbl
C.) Int D.) Rnd
59. What is the extension of form
A.) .Ocx B.) .Frm
C.) Doc D.) .Vbp
60. Which function displays a pop-up window?
A.) MsgBox B.) InputBox
C.) Pop Up D.) None of these
61. Which TextBox method does not use the clipboard?
A.) Clear B.) Copy
C.) Cut D.) Paste
62. Which is not a valid value for the ListBox SectionMode Property?
A.) Multisimple B.) One
C.) MultiExtended D.) All of the Above
63. Setting the SelectedIndex property of a ListBox to -1 will:
A.) Cause an error B.) Cannot be done
C.) De-Select any selected item D.) Both A and B
64. Which value for the ComboBox DropDownStyle property allows a user to type in data?
A.) Drop Down B.) Drop Down Simple
C.) Drop Down List D.) None of these
65. Which statements are optional in an If…Then statement?
A.) If B.) Then
C.) End if D.) All of these
66. Which selection process is an example of multiple branches from a single expression?
A.) If...Then B.) Select Case
C.) Do...Loop D.) For…Next
67. Which of the following is not part of the IDE:
A.) Code editor window B.) Properties window
C.) Form layout window D.) General window
68. The application name always appears in the:
A.) Properties window B.) Intermediate window
C.) Code window D.) Title Bar
69. The color of a button is:
A.) One of its Properties B.) Not Updateable
C.) defined in the Project D.) Defined in the Intermediate Window
70. Methods are used to represent:
A.) Actions B.) Classes
C.) Instances D.) Events
71. Properties are used to represent:
A.) Actions B.) Classes
C.) Data D.) Events

72. In event-driven programming an event is generated by:


A.) The system B.) A user’s action
C.) the program itself D.) All of the Above
73. The Activated event is found only in which object?
A.) Form B.) Text Box
C.) Button D.) Label
74. Which is not an integer data type?
A.) Single B.) Byte
C.) Short D.) Integer
75. What is the name of the control for putting menus on a form?
A.) Form Menu B.) Menu Form
C.) Menu Control D.) Main Menu
76. The standard prefix for a menu item is:
A.) Men B.) Mnu
C.) Mit D.) Meu
77. Which symbol creates an access key in the text of a menu item?
A.) @ B.) #
C.) & D.) %
78. Which dialog control allows the user to zoom in on a document?
A.) Print Dialog B.) Print Preview
C.) Page Setup Dialog D.) All of the Above
79. What is the method used to activate the color dialog box?
A.) Activate Dialog B.) Display Dialog
C.) Show Dialog D.) Exhibit Dialog
80. The name of the class used to programmatically create a color dialog box is:
A.) Color B.) Color Box
C.) Color Dialog D.) Color Display
Answer:
1D 2 B 3C 4D 5A 6D 7D 8B 9C 10 A
11 D 12 D 13 A 14 D 15 A 16 A 17 A 18 A 19 A 20 A
21 A 22 A 23 C 24 D 25 C 26 A 27 A 28 B 29 D 30 D
31 D 32 D 33 A 34 D 35 A 36 D 37 D 38 A 39 C 40 D
41 C 42 C 43 D 44 A 45 A 46 C 47 A 48 D 49 C 50 A
51 D 52 B 53 D 54 B 55 D 56 A 57 D 58 B 59 B 60 C
61 A 62 D 63 C 64 A 65 C 66 B 67 D 68 D 69 A 70 A
71 C 72 D 73 A 74 A 75 D 76 B 77 C 78 B 79 C 80 C
81 82 83 84 85 86 78 88 89 90
91 92 93 94 95 96 97 98 99 100

Вам также может понравиться