1 Marks
1 Marks
1 Marks
Unit I
103
Dept. of Computer Science (SF), BHC Question Bank (UG)
21. 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) All of the above.
104
Dept. of Computer Science (SF), BHC Question Bank (UG)
a) contains over 25,000 classes. b) uses namespaces to manage all of the classes.
d) Both a and b.
23. When using a procedure the calling code sends data via the:
27. Which of the following converts the expression to Boolean data type in
VB.NET? A) CBool(exp)B) CByte(exp) C) CChar(exp) D) CDate(expression)
28. Which of the following converts the expression to String data type in VB.NET?
A) CStr(exp) B) CSByte(exp) C) CShort(exp) D) CSng(exp)
105
Dept. of Computer Science (SF), BHC Question Bank (UG)
35. Which of the following converts the expression to Char data type in VB.NET?
A) CBool(exp) B) CByte(exp ) C) CChar(exp) D) CDate(exp)
36. Which of the following converts the expression to Date data type in VB.NET?
A) CBool(exp) B) CByte(exp) C) CChar(exp) D) CDate(exp)
39. Which character is used to store date or time in date data type?
A) * B) $ C) # D) {}
106
Dept. of Computer Science (SF), BHC Question Bank (UG)
Unit II
a.) the next Else statement is activated. b.) the next If statement is activated.
c.) the next Then statement is activated. d.) the End If statement is activated.
a.) If b.) Then c.) Else d.) Both a and b. e.) All of the above.
a.) If…Then b.) Select Case c.) Do…Loop d.) For…Next e.) All of the
above.
a.) 0 b.) 1 c.) 2 d.) Once for each Case. e.) It depends on the value of the
test expression.
a.) simple value b.) complex value c.) relational value with Is d.)
range of values with Toc
7. What happens in a Select Case construct when a test value matches the
test expression?
107
Dept. of Computer Science (SF), BHC Question Bank (UG)
10. Which Do…Loop statement should be used to process test scores where a test
score over 100 is a signal to stop the processing?
a.) Do While Score > 100 b.) Do Until Score > 100
c.) Loop While Score > 100 d.) Loop Until Score > 100
11. In the For…Next statement the default value for the Step is:
a.) -1 b.) 0 c.) 1 d.) 2 e.) There is no default for the step value.
13. The advantage of For…Next loops over Do…Loops is that they are:
a.) easier to read and maintain. b.) less prone to being infinite loops.
108
Dept. of Computer Science (SF), BHC Question Bank (UG)
c.) good for working with arrays. d.) Both a and b. e.) All of the above.
a.) Exit Do b.) Exit For c.) Exit Form d.) Exit Select
109
Dept. of Computer Science (SF), BHC Question Bank (UG)
23The _____ model does not offer a model for source code reuse.
A. COM+ B. DCOM C. COM D. .Net
24. _____ allow custom items of information about a program element to be stored with
an assembly’s metadata.
A.Properties B.Attributes C. Methods D. Classes
26. The member “clear” of the Array class that sets a range of array elements to zero, false
or null reference is a _____________ method.
A. Shared B. Method C. Class D. Object
28. Every optional argument in the procedure definition must specify a _________
value which must be a constant expression.
A. constant B. default C. integer D. character
29. ………………… is the ability to create procedures that can operate on objects
of different types.
A) Abstraction B) Encapsulation C) Polymorphism D) Inheritance
30. …………………… is the process by which you can derive new classes from
other classes.
A) Abstraction B) Encapsulation C) Polymorphism D) Inheritance
31. ………………. namespace in vb.net includes classes and interfaces that return
information about types, methods and fields and also have the ability to dynamically
create and invoke types.
A) System B) System.collections C) System.NET D) System.Reflection
33. The _____ model does not offer a model for source code reuse.
A. COM+ B. DCOM C. COM D. .Net
110
Dept. of Computer Science (SF), BHC Question Bank (UG)
34. _____ allow custom items of information about a program element to be stored with
an assembly’s metadata.
A.Properties B.Attributes C. Methods D. Classes
36. The member “clear” of the Array class that sets a range of array elements to zero, false
or null reference is a _____________ method.
A. Shared B. Method C. Class D. Object
39. Every optional argument in the procedure definition must specify a _________
value which must be a constant expression.
A. constant B. default C. integer D. character
40. ………………… is the ability to create procedures that can operate on objects
of different types.
A) Abstraction B) Encapsulation C) Polymorphism D) Inheritance
41. …………………… is the process by which you can derive new classes from
other classes.
A) Abstraction B) Encapsulation C) Polymorphism D) Inheritance
42. ………………. namespace in vb.net includes classes and interfaces that return
information about types, methods and fields and also have the ability to dynamically
create and invoke types.
A) System B) System.collections C) System.NET D) System.Reflection
45. Which of the following operator returns a Type object for the specified type?
111
Dept. of Computer Science (SF), BHC Question Bank (UG)
112
Dept. of Computer Science (SF), BHC Question Bank (UG)
Unit III
1. What is OOP’s?
A) Objective Oriented Program
B) Object Oriented Program
C) Objective Oriented Programming
D) Object Oriented Programming
2. How many types of Program Paradigm use in Programming?
A) 4 B) 2 C) 1 D) 3
3. Which one is not a feature of Object oriented programming?
A) Inheritance B) Polymorphism C) Private D) Object
4. What is the other name of ‘My Class’?
A) My Base B) Parent C) Child D) None of these
5. Which member of Access Specifier is Inheritable?
A) Protected Friend B) Public C) Private D) Protected
6. What is OLE?
A) Objective Linking and Embedding B) Object Linking and Embedding
C) Object Linking and Embedd D) Object Link and Embedding
7. Which one is the features of Constructor?
A) Initialize the Object B) Pass unlimited arguments
C) Use new keyword D) All of the Above
8. Code is:
A) Update-able in the form editor B) Instructions C) Seldom used D) An object
9. Event-driven languages are:
A) FORTRAN based B) Are used to write procedural languages
C) OOPD) Designed to make programming GUI easier
10. The application name always appears in the:
A) Properties window B) Intermediate window C) Code window D) Title bar
11. New keyword is used with the-
A) Destructor B) Constructor C) Both D) None of these
12. How many members in Access Specifier of VB.Net?
A) 2 B) 6 C) 4 D) 5
13. What is the full form of COM?
A) Computer Object Model B) Component Objective Model
113
Dept. of Computer Science (SF), BHC Question Bank (UG)
114
Dept. of Computer Science (SF), BHC Question Bank (UG)
a.) Dividing by zero. b.) Assigning the string “Hi” to an integer variable.
a.) compile error. b.) logic error. c.) runtime error. d.) superficial error.
(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
(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
(a) MSDN Library (b) Help Library (c) Contents (d) Topic pane
115
Dept. of Computer Science (SF), BHC Question Bank (UG)
39. ________ property is used to display text when you keep your mouse cursor on
that control.
40. ________ is the common event for almost all the controls.
43. _________ event occurs when mouse moves over any control.
116
Dept. of Computer Science (SF), BHC Question Bank (UG)
Unit IV
1. A ………. displays a list of items from which user can select one or more items.
A) Combo box B) List box C) Check box D) Scroll bar
2. How many Menus in VB.Net?
A) 10 B) 7 C) 11 D) 8
3. ……….. is a collection of files.
A) Class B) Group C) Project D) Form
4. Visual Basic maintains a project to file with the extension…..
A) frm B) vbp C) .vbs D) .cls
5. ………… indicates whether a particular condition is on or off.
A) Combo Box B) List Box C) Check Box D) None of these
6. In GUI , ……….. is a means of selecting one of several options.
A) Option Button B) Scroll Bar C) List Box D) Combo Box
7. ………….. control is used to represent the items in a hierarchical manner.
A) Tree View B) Grid View C) Progress Bar D) None of these
8. How many Dialogs in Dialog Category of tool box?
A) 3 B) 5 C) 7 D) 4
9. Which of the following Control is also called Looping Control?
A) Scroll Bar B) Timer C) List View D) Check Box
10. Shortcut Key is to open Code Designer
Window-A) Ctrl+F7 B) F7 C) F5 D) Shift+F7
11. Shortcut Key is to open Project Dialog Box-
A) Ctrl + O B) Ctrl + N C) Ctrl + P D) Ctrl + A
12. Shortcut Key is to open Solution Explorer Window-
A) Ctrl + S B) Ctrl + E C) Ctrl + R D) Ctrl + A
13. Which operator is used to check Inequality?
A) >< B) == C) <> D) >=<
14. Which operator is used for Power?
A) * B) ^ C) ^* D) $
15. Standard Prefix for Combo Box is ____________.
A) cb B) cmb C) cbm D) cmbb
16. Which of the following is an 8-byte integer?
A) Char B) Long C) Short D) Byte
117
Dept. of Computer Science (SF), BHC Question Bank (UG)
118
Dept. of Computer Science (SF), BHC Question Bank (UG)
must: a.) use the Val function to convert the Text value.
35. Which is not a valid value for the ListBox SectionMode Property?
a.) cause an error. b.) cannot be done. c.) de-select any selected item.
37. Which method of a ListBox will remove just one item at a time?
39. Which value for the ComboBox DropDownStyle property allows a user to type in
data?
119
Dept. of Computer Science (SF), BHC Question Bank (UG)
45. What is the method used to activate the color dialog box?
46. The name of the class used to programmatically create a color dialog box is:
47. The name of the class used to programmatically create a font dialog box is:
48. Which OpenFileDialog control property specifies the choices in the “Files of
type” dropdown box?
a.) FileName b.) FileNames c.) FileType d.) Filter
49. Which property is the same in the OpenFileDialog and the SaveFileDialog control?
a.) FileName b.) Filter c.) InitialDirectory d.) All of the above.
120
Dept. of Computer Science (SF), BHC Question Bank (UG)
121
Dept. of Computer Science (SF), BHC Question Bank (UG)
Unit V
B. To store the global information and variable definitions for the application
A. Server.CreateObject("Scripting.FileSystemObject")
B. Create("FileSystemObject")
C. Create Object:"Scripting.FileSystemObject"
122
Dept. of Computer Science (SF), BHC Question Bank (UG)
D. Server.CreateObject("FileSystemObject")
9. What class does the ASP.NET Web Form class inherit from by default?
A. System.Web.UI.Page B. System.Web.UI.Form
C. System.Web.GUI.Page D. System.Web.Form
11. Attribute must be set on a validator control for the validation to work.
B. Basic expressions
C. Regular expressions
C. No use
123
Dept. of Computer Science (SF), BHC Question Bank (UG)
21. How do you get information from a form that is submitted using the "post" method?
A. Request.QueryString B. Request.Form
C. Response.write D. Response.writeln
22. Which object can help you maintain data across users?
23. Which of the following ASP.NET object encapsulates the state of the client?
24. Which of the following object is used along with application object in order to ensure
that only one process acesses a variable at a time?
A. Synchronize B. Synchronize() C. ThreadLock D. Lock()
25. Which of the following control is used to validate that two fields are equal?
A. RegularExpressionValidator B. CompareValidator
28. You can have only one Global.asax file per project.
A. Yes B. No
124
Dept. of Computer Science (SF), BHC Question Bank (UG)
29. ______________ element in the web.config file to run code using the permissions of
a specific user
30. __________ is a special subfolder within the windows folder that stores the shared
.NET component.
33. Which of the following is the way to monitor the web application?
34. The ________________ property affects how the .Net Framework handles dates,
currencies, sorting and formatting issues.
A. CurrentUICulture B. CurrentCulture
37. Which of the following authentication is best suited for a corporate network?
38. What attributes do you use to hide a public .Net class from COM?
39. By default, code written with the Debug class is stripped out of release builds.
125
Dept. of Computer Science (SF), BHC Question Bank (UG)
A. Yes B. No
40. _________ tests make sure that new code does not break existing code.
Ans: CLR
42. In ASP.NET in form page the object which contains the user name is ______ ?
43. Find the term: The .NET framework which provides automatic memory management using
a technique called ______________ ?
44. Which of the following denote ways to manage state in an ASP.Net Application?
45. What is the base class from which all Web forms inherit?
47. Which of the following must be done in order to connect data from some data resource
to Repeater control?
126
Dept. of Computer Science (SF), BHC Question Bank (UG)
50. If one has two different web form controls in a application and if one wanted to know
whether the values in the above two different web form control match what control must
be used?
A. DataList B. GridView C. CompareValidator D. Listview
127