1 Marks

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 25

Dept.

of Computer Science (SF), BHC Question Bank (UG)

Web Applications Development(6th Semester)


U15CS6:4

Unit I

1. Which language is not a true object-oriented programming language?


(a) VB.NET (b) VB 6 (c) C++ (d) C#
2. Common language specification (CLS)
(a) is an execution engine for all .net application
(b) is similar to JVM as in Java
(c) defines standard rules for defining .Net compliant languages
(d) is a compiler

3. What does IDE stand for?


(a) Integrated Development Environment
(b) Integrated Design Environment
(c) Interior Development Environment
(d) Interior Design Environment
4. What is CTS in .NET?
(a) Defines rules concerning data types
(b) Defines a set of rules for all compilers to generate manage code for
.NET (c)Describes a set of features that different languages have in
common (d)None of the above

5. Which is not an integer data type?


(a) Single (b) Byte (c) Short (d) Integer
6. Which is a numeric data type?
(a) Floating point (b) Integer (c) Boolean (d) Both (a) and (b).
7. Which is a valid statement for declaring a variable?
(a) Const Form As Integer (b) ConstmyForm As Integer
(c) Dim Form As Integer (d) DimmyForm As Integer
8. VB.Net identifiers:
(a) are case sensitive.(b) can begin with an underscore.
(c) can begin with a number. (d) Both (a) and (b).
9. With A = False and B = True, which statement evaluates as True?

103
Dept. of Computer Science (SF), BHC Question Bank (UG)

(a) A AND A (b) A AND B (c) B AND A (d) B AND B


10. The left side of an assignment statement will hold:
(a) a variable. (b) an object property.(c) an expression. (d) Both (a) and (b).
11. What happens when a parameter in a procedure is declared ByVal?
(a) Only arguments of numeric data types are allowed.
(b) A reference to the argument is sent to the procedure.
(c) A copy of the argument is sent to the procedure.
(d) Both (a) and (b).
12. Which sequence of char data types is listed from lowest to highest?
(a) a, A, z, Z (b) a, z, A, Z (c) A, a, Z, z (d) A, Z, a, z
13. Which of the following does the actual .Net code execute?
(a)CLS (b)MSIL (c) CTS (d)CLR
14. Which is a valid statement for declaring a variable?
(a) Const Form As Integer (b) ConstmyForm As Integer
(c) Dim Form As Integer (d) DimmyForm As Integer
15. 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) Comparison, arithmetic, and logical.

16. Full name of CLI is-


A) Common Language Independence B) Common Language Intermediate
C) Common Library Infrastructure D) Common Language Infrastructure

17. Visual Studio.NET provides which feature:


A) debugging B) application deployment C) syntax checking D) All of the above

18. ___________ is not the core part of Visual Studio IDE.


A) Solution Explorer B) Tool box C) Start Menu D) Designer Window

19. What is the full form of CLR?


A) Common Language Run B) Class Language Runtime C) Class Language Run
D) Common Language Runtime

20. Which does the Solution Explorer not display?


A) Form Properties B) Reference Folder C) Form File D) Assemble File

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)

22. The .Net class library:

a) contains over 25,000 classes. b) uses namespaces to manage all of the classes.

c) has the System.Form namespace for classes used in Windows-based application.

d) Both a and b.

23. When using a procedure the calling code sends data via the:

a) actual argument to the formal parameter of the procedure.

b) formal argument to the actual parameter of the procedure.

c) actual parameter to the formal argument of the procedure.

d) formal parameter to the actual argument of the procedure.

24. In Visual Basic, we work with objects that have _______.


A) Programmer preference B) Projects, solutions, and procedures
C) Classes, actions, and disciplines D) Properties, methods, and events

25. “dim” is a _______


A) data type B) keyword C) operator D) symbol

26. Which of the following is a basic data type in VB.NET?


A) Boolean B) Byte C) Char D) All of the above.

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)

29. Which of the following is not part of the IDE:


A) Code editor window B) Properties window C) Form layout window
D) General window

30.Which of the following is a basic data type in VB.NET?


A) Boolean B) Byte C) Char D) All of the above.

105
Dept. of Computer Science (SF), BHC Question Bank (UG)

31. How many types of Data type mostly used in VB.Net ?


A) 4 B) 5 C) 6 D) 3

32. Which one is a numeric data type?


A) Floating point B) Integer C) Boolean D) Both a and b.

33. MOD is ___________ operator in VB.Net


A) Assignment B) Logical C) Arithmetic D) Comparison

34. How many types of Operator used in VB.Net?


A) 2 B) 3 C) 4 D) 5

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)

37. How many size of character in variable name ?


A) 256 B) 255 C) 300 D) 200

38. How many type of String Data Type?


A) 1 B) 2 C) 3 D) 4

39. Which character is used to store date or time in date data type?
A) * B) $ C) # D) {}

40. Which one of the following is correct?


A) int a=16, a>>2 = 4 B) int b=-8, b>>1 = -4
C) int a=16, a>>> 2= 4 D) All of the Above

106
Dept. of Computer Science (SF), BHC Question Bank (UG)

Unit II

1. When a condition in an If…Then statements tests true:

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.

e.) a condition can never test true.

2. The End If statement is required:

a.) in all If…Then statements.b.) in all Multi-line statements with Else.

c.) in Single Line statements. d.) Both a and b.

e.) All of the above.

3. Which statements are optional in an If…Then statement?

a.) If b.) Then c.) Else d.) Both a and b. e.) All of the above.

4. 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 e.) All of the
above.

5. How many times is the test expression of a Select Case evaluated?

a.) 0 b.) 1 c.) 2 d.) Once for each Case. e.) It depends on the value of the
test expression.

6. Which is not a type of Select Case test construct?

a.) simple value b.) complex value c.) relational value with Is d.)
range of values with Toc

e.) All of the above are types of test constructs.

7. What happens in a Select Case construct when a test value matches the
test expression?

a.) The corresponding block of statements is run.

107
Dept. of Computer Science (SF), BHC Question Bank (UG)

b.) The next Case test value is checked.

c.) The Case Else statement is run.

d.) The Select Case construct is exited.

8. Do...Loop is an iterative statement because

it: a.) selects a block of statements to run.

b.) runs the same block of statements repeatedly. c.)

selects a block of statements and runs it repeatedly.

d.) selects a block of statements and runs it a specified number of times.

9. Which is true of a Do…Loop?

a.) The While condition goes after the Do keyword.

b.) The Until condition goes after the Do keyword. c.)

The While condition goes after the Loop keyword. d.)

The Until condition goes after the Loop keyword.

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.

12. The For…Next Loop is used when:

a.) a choice is made based on a Boolean condition.

b.) a block of statements is executed an unknown number of

times. c.) a block of statements is executed a known number of

times. d.) Both a and b.

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.

14. Which is not a valid Exit statement?

a.) Exit Do b.) Exit For c.) Exit Form d.) Exit Select

e.) Exit Sub

15. What is the syntax of Dynamic Array?


A) Dim Array_name (new_size)B) RedimArray_name (new_size)
C) Dim Array_name (size) D) RedimArray_name (size)

16. How many types of Array?


A) 2 B) 4 C) 3 D) 5

17. Which bracket is used for declaring Array in VB.Net?


A) ( ) B) [ ] C) { } D) All

18. Which of the following is a true about Object in VB.NET?

A )Object variable size is 4 bytes on 32-bit platform.

B )Object variable size is 8 bytes on 64-bit platform.

C ) Any type can be stored in a variable of type Object.

D ) All of the above.


19. Using a ________ variable does not enable us to create read-only properties that are
often required by a class.
A. public B. private C. protected D. friend

20. A ___________ performs invisible tasks even if you write no code.

A. destructor B. private method C. constructor D. function

21. The ___________________________________ does not describe inherited


member functions, inherited operators, and overridden virtual member functions.
A. Class Library Reference B. Library C. Objects D. Classes

22. The ______________________ group classes according to their common services.

109
Dept. of Computer Science (SF), BHC Question Bank (UG)

A. objects B. inheritance C. Namespaces D. programs

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

25. The corresponding .Net FCL type for Short is ___________.


A.System.Int32 B.System.Int64 C.System.Int16 D.System.Object

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

27. The ___________ method converts an OLE automation date value to a


DateTime Instance.
A. Today B. TimeOfDayC. Now D. FromOADate

27. The function procedures are ___________ by default.


A. public B. private C. protected D. inherited

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

32. ………………. namespace in vb.net provides an interface to many of the protocols


used on the internet.
A) SystemB) 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

35. The corresponding .Net FCL type for Short is ___________.


A.System.Int32 B.System.Int64 C.System.Int16 D.System.Object

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

37. The ___________ method converts an OLE automation date value to a


DateTime Instance.
A. Today B. TimeOfDayC. Now D. FromOADate

38. The function procedures are ___________ by default.


A. public B. private C. protected D. inherited

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

43. ………………. namespace in vb.net provides an interface to many of the protocols


used on the internet.
A) SystemB) System.collections C) System.NET D) System.Reflection

44. Which of the following statement is used to declare a delegate?

A) Event B) Delegate C) Operator D) Property

45. Which of the following operator returns a Type object for the specified type?

A) AddressOf B)Await C) GetType D )Function Expression

111
Dept. of Computer Science (SF), BHC Question Bank (UG)

46. Which of the following is not an valid declaration of an array?


A) int ( ) a = new int (3); B) int a ( ) ( ) = new int (3 ) ( 3);

C) int ( ) ( ) a = new int (3) ( ); D) int ( ) ( ) a = new int ( ) (3);

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)

C) Computer Objective Model D) Component Object Model


14. What is the full form of API in VB.Net?
A) Application Programming Interface
B) Application Program Interface
C) Application Programming Interchange
D) Application program Interchange
15. Overriding and Overloading is the method of____________
A) Public B) Inheritance C) Polymorphism D) Abstraction
16. In ……………… window we can write code.
A) Immediate window B) Locals window C) Code editor window D) None of these
17. What is the shortcut key to run the program?
A) F2 B) F5 C) F7 D) F4
18. OLE is not a part of common language runtime.
A) True B) False
19. Dispose keyword is used in-
A) Public B) Destructor C) Friend D) Constructor
20. _____________ is a similar type of Private member.
A) Friend B) Public C) Overriding D) Protected
21. A _________ performs invisible tasks even if you write no code.
A) Friend B) Private Method C) Constructor D) Function
22. Whenever an application is created, a _________ is added.
A) Form B) Class C) Property D) Object
23. The _____ model does not offer a model for source code reuse.
A) COM+ B) DCOM C) COM D) .Net
24. The function procedures are ___________ by default.
A) Public B) Private C) Protected D) Inherited
25. __________ is the ability to create procedures that can operate on objects of
different types.
A) Abstraction B) Encapsulation C) Polymorphism D) Inheritance
26. __________ is the process by which you can derive new classes from other classes.
A) Abstraction B) Encapsulation C) Polymorphism D) Inheritance
27. Which is an example of Visual Basic Objects?
A) Control Objects B) ASP.Net C) ADO.Net D) All of the above

114
Dept. of Computer Science (SF), BHC Question Bank (UG)

28. What is the full form of ADO?


A) Active Data Object B) ActiveX Data Object

C) Active Database Object D) Active Data Objective


29. What is SQL?
A) Structure Query Language B) Structured Query Language
C) Structure queries languages D) Select Query Language

30. Which one is a database program ?


A) Oracle B) SQL Server C) Microsoft ODBC Data Source D) All of the above
Correct Answer : D

31Which is not a type of error programmers look for?

a.) Logic b.) Runtime c.) Superficial d.) Syntax

32. Which action will raise an exception?

a.) Dividing by zero. b.) Assigning the string “Hi” to an integer variable.

c.) Accessing an empty CD drive. d.) All of the above.

33. An Exception is another name for a:

a.) compile error. b.) logic error. c.) runtime error. d.) superficial error.

34. 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

35. 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

36. The reference library of Visual Basic books is called:

(a) MSDN Library (b) Help Library (c) Contents (d) Topic pane

37. ______ is one of the common properties of the control.

(a) AutoSize (b) Value (c) Appearance (d) MaxLength

115
Dept. of Computer Science (SF), BHC Question Bank (UG)

38. Visible property sets two Boolean values

(a) True (b) False

39. ________ property is used to display text when you keep your mouse cursor on
that control.

(a) Enabled (b) Text (c) ToolTipText (d) Mouse pointer

40. ________ is the common event for almost all the controls.

(a) KeyPress (b) Click (c) Timer (d) Scroll

41. ________event occurs when user presses any key.

(a) KeyPress (b) Keydown (c) Keyup (d) Mousemove

42. _________event occurs when user clicks a mousekey

a. MouseMoveb. MouseUp c. MouseDown d.KeyPress

43. _________ event occurs when mouse moves over any control.

a. MouseMove b. MouseUp c. MouseDown d.KeyPress

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)

17. Which of the following in not an integer?


A) Char B) Byte C) Integer D) Long 18. Which on
is not a valid variable name?
A) myName B) my.name C) my-name D) MYNAME
19. Which data type is used for ‘City name’ ?
A) Integer B) Boolean C) Floating Point D) String 20.
Which bracket is used for declaring Array in VB.Net?
A) ( ) B) [ ] C) { } D) All
21. How many categories in Toolbox of VB.Net?
A) 9 B) 10 C) 6 D) 8
22. Which of the following Common Method used in Textbox?
A) Show( ) B) Hide ( ) C) Remove ( ) D) Focus ( )
23. Which Control is used for display message in Window of VB.Net?
A) Text box B) Label C) List View D) Display Message
24. Standard Prefix for Textbox is ____________.
A) txt B) text C) tx D) txtb
25. Which method is not used in Items Collection in Listbox?
A) Add B) Clear C) Count D) Delete
26. Which one is correct?
A) Listbox.Items.Remove(Item) B) Listbox.Items.Clear( )
C) Listbox.Items.Contain(Item) D) All of these
27. Which of the following provides quick access to commonly used commands in
the programming environment ?
A) Toolbox B) Object browser C) Toolbar D) None of these
28. ………. control is used to provide an identifiable grouping for other controls.
A) Frame B) Label C) List box D) Command button
29. ………….. combines the features of the text box and list box.
A) Picture box B) Check box C) Combo box D) Option button
30. By default, the textbox control can hold text as ……..
A) Multiple lines B) Single line C) Password character D) None of these
31Which is true about the prompt argument?

a.) It can be made of multiple values concatenated into one string.

b.) It can include the vbCrLf constant.

118
Dept. of Computer Science (SF), BHC Question Bank (UG)

c.) It can include the ampersand symbol to concatenate strings.

d.) Both a and b.

e.) All of the above.

32. In order to process a number typed in a TextBox the programmer

must: a.) use the Val function to convert the Text value.

b.) use the CDbl function to convert the Text value.

c.) use the IsNumeric function to convert the Text value.

d.) Both a and b.

33. Which TextBox method does not use the clipboard?

a.) Clear b.) Copy c.) Cut d.) Paste

34. Which TextBox property should always be changed first?

a.) AcceptsReturn b.) BorderStyle c.) Font d.) Name

35. Which is not a valid value for the ListBox SectionMode Property?

a.) one b.) MultiSimple c.) MultiExtended d) All of the above.

36. 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.

37. Which method of a ListBox will remove just one item at a time?

a.) Items.RemoveAt b.) Item.RemoveAt c.)Items.ClearAt d.) Item.ClearAt

38. The Items property of a

ComboBox: a.) is a collection of items.

b.) is the same as the Items property of a

ListBox. c.) contains methods and properties.

e.) All of the above.

39. Which value for the ComboBox DropDownStyle property allows a user to type in
data?

a.) DropDown b.) DropDownSimple c.) DropDownList d.) Both a and b.

119
Dept. of Computer Science (SF), BHC Question Bank (UG)

40. Which two controls combined to form the ComboBox control?

a.) ListBox and TextBox b.) ListBox and InputBox

c.) ListBox and MsgBox d.) Label and TextBox

41Which is not a standard dialog box?

a.) ColorDialog b.) FontDialog c.) OpenDialog d.) ZoomDialog

42. Why are standard dialog boxes

used? a.) They are easy to create.

b.) They provide functionality familiar to users.

c.) Developers can create their own versions of Dialog boxes.

d.) Both a and b.

43. How are dialog boxes implemented in a program?

a.) A dialog control is placed in the component tray. b.) A

dialog control is placed on the form.

c.) Both a and b.

44. The standard prefix for a dialog control is:

a.) dal. b.) dia. c.) dil. d.) dlg.

45. What is the method used to activate the color dialog box?

a.) ActivateDialog b.) DisplayDialog c.) ExhibitDialog d.) ShowDialog

46. The name of the class used to programmatically create a color dialog box is:

a.) Color b.) ColorBox c.) ColorDialog d.) ColorDisplay

47. The name of the class used to programmatically create a font dialog box is:

a.) Font b.) FontBox. c.) FontDialog. d.) FontDisplay.

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)

50. Which dialog control allows the user to zoom in on a document?

a.) PrintDialog b.) PrintPreview c.) PageSetupDialog d.) Both a and b.

121
Dept. of Computer Science (SF), BHC Question Bank (UG)

Unit V

1. Choose the form in which Postback occur

A. HTMLForms B. Webforms C. Winforms

2. Web.config file is used...

A. Configures the time that the server-side codebehind module is called

B. To store the global information and variable definitions for the application

C. To configure the web server

D. To configure the web browser

3. Which of the following object is not an ASP component?

A. LinkCounter B. Counter C. AdRotator D. File Access

4. The first event triggers in an aspx page is.

A. Page_Init() B. Page_Load() C. Page_click()

5. Difference between Response.Write() andResponse.Output.Write().

A. Response.Output.Write() allows you to buffer output

B. Response.Output.Write() allows you to write formatted output

C. Response.Output.Write() allows you to flush output

D. Response.Output.Write() allows you to stream output

6. Which of the following method must be overridden in a custom control?

A. The Paint() method B. The Control_Build() method

C. The default constructor D. The Render() method

7. How do we create a FileSystemObject?

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")

8. Which of the following tool is used to manage the GAC?

A. RegSvr.exe B. GacUtil.exe C. GacSvr32.exe D. GacMgr.exe

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

10. We can manage states in asp.net application using

A. Session Objects B. Application Objects C. Viewstate D. All of the above

11. Attribute must be set on a validator control for the validation to work.

A. ControlToValidate B. ControlToBind C. ValidateControl D. Validate

12. Caching type supported by ASP.Net

A. Output Caching B. DataCaching C. a and b D. none of the above


13. What is used to validate complex string patterns like an e-mail

address? A. Extended expressions

B. Basic expressions

C. Regular expressions

14. File extension used for ASP.NET files.

A. .Web B. .ASP C. .ASPX D. None of the above

15. An alternative way of displaying text on web page using

A. asp:label B. asp:listitem C. asp:button

16. Why is Global.asax is used?


A. Declare Global variables B. Implement application and session level events

C. No use

17. Which of the following is not a member of ADODBCommand object?

A. ExecuteScalar B. ExecuteStream C. Open D. ExecuteReader

123
Dept. of Computer Science (SF), BHC Question Bank (UG)

18. Which DLL translate XML to SQL in IIS?

A. SQLISAPI.dll B. SQLXML.dll C. LISXML.dll D. SQLIIS.dll

19. Default Session data is stored in ASP.Net.

A. StateServer B. Session Object C. InProcess D. all of the above

20. Default scripting language in ASP.

A. EcmaScript B. VBScript C. PERL D. JavaScript

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?

A. Application object B. Session object C. Response object D. Server object

23. Which of the following ASP.NET object encapsulates the state of the client?

A. Session object B. Application object C. Response object D. Server object

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

C. equals() method D. RequiredFieldValidator

26. Mode of storing ASP.NET session

A. InProc B. StateServer C. SQL Server D. All of the above

27. Which of the following is not the way to maintain state?

A. View state B. Cookies C. Hidden fields D. Request object

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

A. < credential> element B. < authentication> element

C. < authorization> element D. < identity> element

30. __________ is a special subfolder within the windows folder that stores the shared
.NET component.

A. /bin B. GAC C. Root Ans: GAC

31. Which of the following is the performance attributes of processModel?

A. requestQueue limit B. maxWorkerThreads C. maxIdThreads D. All

32. Which of the following is faster and consume lesser memory?

A. SQLDataReader B. Data Set

33. Which of the following is the way to monitor the web application?

A. MMC Event viewers B. Performance logs C. Alerts Snap-ins D. ALL

34. The ________________ property affects how the .Net Framework handles dates,
currencies, sorting and formatting issues.

A. CurrentUICulture B. CurrentCulture

35. Where do we include the user lists for windows authentication?

A. < Credential> B. < authorization> C. < identity> D. < authentiation>

36. Where do we include the user lists for Form authentication?

A. < credential> B. < authorization> C. < Identity> D. < authentication>

37. Which of the following authentication is best suited for a corporate network?

A. Windows B. Form C. User D. All

38. What attributes do you use to hide a public .Net class from COM?

A. DLLImport Attributes B. ComVisible attributes

C. COM Interop D. All

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.

A. Regression tests B. Integration tests C. Unit tests D. Load test

41. The .NET Framework provides a runtime environment called..... ?

A. RMT B. CLR C. RCT D. RC

Ans: CLR

42. In ASP.NET in form page the object which contains the user name is ______ ?

A. Page.User.Identity B. Page.User.IsInRole C. Page.User.Name

D. None of the Above

43. Find the term: The .NET framework which provides automatic memory management using
a technique called ______________ ?

A. Serialization B. Garbage Collection C. Assemblies D. Overriding

44. Which of the following denote ways to manage state in an ASP.Net Application?

A. Session objects B. Application objects C. ViewState D. All the Above

45. What is the base class from which all Web forms inherit?

A. Master Page B. Page Class C. Session Class D. None of the Above

46. WSDL stands for ___________ ?

A. Web Server Description Language B. Web Server Descriptor Language

C. Web Services Description Language D. Web Services Descriptor Language

47. Which of the following must be done in order to connect data from some data resource
to Repeater control?

A. Set the DataSource property B. Call the DataBind method

C. Both A. and B. D. None of the Above

48. Which of the following is FALSE?

A. ASP.NET applications run without a Web Server

126
Dept. of Computer Science (SF), BHC Question Bank (UG)

B. ASP+ and ASP.NET refer to the same thing

C. ASP.NET is a major upgrade over ASP

D. None of the Above

49. Which of the following transfer execution directly to another page?

A. Server.Transfer B. Response.Redirect C. Both A. and B.

D. None of the Above

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

You might also like