0% found this document useful (0 votes)
6 views15 pages

Question Bank

This document is a question bank for the ASP.NET Programming course for III BCA students, covering various topics related to .NET and ASP.NET. It includes multiple-choice questions, descriptive questions, and programming exercises categorized into different units. The document outlines the academic year, subject details, and the structure of the question bank, including levels of difficulty for each question.

Uploaded by

NPR ASC
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views15 pages

Question Bank

This document is a question bank for the ASP.NET Programming course for III BCA students, covering various topics related to .NET and ASP.NET. It includes multiple-choice questions, descriptive questions, and programming exercises categorized into different units. The document outlines the academic year, subject details, and the structure of the question bank, including levels of difficulty for each question.

Uploaded by

NPR ASC
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

DEPARTMENT OF COMPUTER APPLICATIONS

QUESTION BANK

Class Name: III BCA Batch: 2024-2027 Academic Year/Sem :2026-2027 (Odd)

Subject Name: ASP .NET Programming Subject Code: SCAPC52

No of Credits: 5 No of Hrs/Week: 6 Total No of Hrs: 90

Subject Incharge: Ms.L. Christina

K
Q/N Question
Level
Unit – I
Part – A Choose the Best Answer
1. Which component manages memory in .NET? K1
A) CTS B) CLS C) CLR D) FCL
2. The full form of CLR is: K1
A) Common Language Resource B) Common Language Runtime C) Common
Logic Runtime D) Code Language Runtime
3. FCL stands for: K1
A) Framework Code Library B) Framework Class Library C) Functional Class
Library D) File Class Library
4. Which is NOT a .NET language? K1
A) C# B) [Link] C) F# D) Java
5. C# is a: K1
A) Low-level language B) Object-oriented language C) Assembly language D)
Scripting language
6. Which type stores true/false? K1
A) int B) char C) string D) bool
7. Assignment operator is: K1
A) == B) = C) != D) :=
8. Addition operator: K1
A) % B) / C) + D) *
9. ++i is: K1
A) Post-increment B) Pre-increment C) Pre-decrement D) Post-decrement
10. Decision-making statement: K1
A) for B) while C) if D) break
11. Switch works with: K1
A) double B) float C) int D) array
12. Loop that executes at least once: K1
A) for B) while C) do-while D) foreach
13. foreach is used for: K1
A) keywords B) classes C) methods D) collections/arrays
14. new keyword is used to: K1
A) Delete B) Import C) Create objects D) Loop
15. Reference type: K1
A) int B) float C) bool D) string
16. Arrays in C# are: K1
A) Dynamic B) Fixed-size C) Linked D) None
17. First index of array: K1
A) 1 B) -1 C) 0 D) 2
18. String length property: K1
A) Len() B) Size() C) Length D) Count
19. String is: K1
A) Mutable B) Immutable C) Dynamic D) None
20. CLR provides: K1
A) OS services B) Browsing C) Garbage collection D) HTML parsing
21. Equality operator: K1
A) = B) += C) == D) <>
22. Entry-controlled loop: K1
A) for B) do-while C) foreach D) switch
23. CTS ensures: K1
A) Compilation B) Common data types C) Security D) GUI design
24. CLS ensures: K1
A) Same OS B) Same assembly C) Language interoperability D) Same library
25. NOT a primitive type: K1
A) int B) char C) string D) bool
26. String concatenation operator: K1
A) = B) % C) + D) #
27. break keyword: K1
A) return B) break C) skip D) stop
28. continue keyword: K1
A) Ends loop B) Skips iteration C) Exits method D) Restarts program
29. Value type: K1
A) string B) object C) int D) array
30. Arrays belong to namespace: K1
A) None B) Web C) System D) Forms
31. MSIL to native code converter: K1
A) OOPS B) JIT C) CTS D) CLS
32. C# compiles into: K1
A) Machine code B) Java bytecode C) MSIL D) HTML
33. Garbage collector frees: K1
A) Local variables B) Unsafe blocks C) Unused managed objects D) Registers
34. Namespace for console I/O: K1
A) [Link] B) [Link] C) [Link] D) System
35. Unary operator: K1
A) + B) - C) % D) !
36. Constant keyword: K1
A) var B) static C) const D) readonly
37. Correct array declaration: K1
A) int a() B) array int C) int[] a = new int[5]; D) int[] a;
38. Keyword to create instance: K1
A) class B) this C) new D) return
39. [Link](): K1
A) Split B) Replace C) Join strings D) Read data
40. Logical AND: K1
A) & B) && C) || D) !
41. Logical OR: K1
A) && B) & C) || D) !=
42. Variables start with: K1
A) number B) symbol C) space D) letter/underscore
43. Convert string to int: K1
A) [Link]() B) Convert.ToInt32() C) [Link]() D) [Link]
44. Substring method: K1
A) Split B) Trim C) Substring() D) Insert
45. i <= 10 is: K1
A) Assignment B) Relational operator C) Logical D) Bitwise
46. All classes derive from: K1
A) Assembly B) Object C) Library D) [Link]
47. Loop repetition is: K1
A) Jump B) Iteration C) Execution D) Stack
48. Keyword to define class: K1
A) obj B) public C) class D) struct
49. [Link]() is used for: K1
A) Add strings B) Remove characters C) Compare strings D) Reverse
50. sizeof returns: K1
A) Height B) Length C) Code size D) Storage size
Part – B Question 7 Mark /Each
51. Explain the architecture of the .NET Framework with diagram. K3

52. Describe the components of the CLR in detail. K3

53. Explain the Framework Class Library (FCL) and its categories with examples K3

54. Explain primitive types and variables in C# with examples K2

55. Discuss arithmetic, relational, logical, and assignment operators with examples. K2

56. Explain conditional statements (if, if-else, switch) with examples K2

57. Explain looping constructs (for, while, do-while, foreach) with suitable programs K2

58. Explain object creation, constructors, and methods in C#. K3

59. Describe arrays and types of arrays (single, multi, jagged) with examples. K2

60. Explain different string operations in C# K2

Part – C Question 10 Mark /Each


61. Explain .NET architecture, CLR components, CTS, CLS, and JIT in detail with K4
diagram.
62. Write detailed notes on C# fundamentals: variables, data types, operators, K4
expressions, control flow.
63. Explain looping statements with syntax and programs for each K4

64. Explain conditional statements with syntax and programs K4

65. Discuss arrays and string handling functions in C# with complete examples K4

Unit – II

Part – A Choose the Best Answer (5x 1= 5 Marks)


1. [Link] runs on which runtime? K1
a) JVM b) PHP Engine c) CLR d) IIS
2. [Link] is part of which framework? K1
a) Java b) Python c) .NET Framework d) Android
3. [Link] web form file extension is: K1
a) .asp b) .html c) .aspx d) .txt
4. Common IDE used for [Link] is: K1
a) Eclipse b) Visual Studio c) NetBeans d) Android Studio
5. Code-behind file uses which extension? K1
a) .html b) .exe c) .cs d) .xml
6. [Link] supports which programming model? K1
a) Batch b) Script-based c) Event-driven d) Linear
7. IDE stands for: K1
a) Internet Dev Editor b) Internal Debug Engine c) Integrated Development
Environment d) Interface Design Executo
8. Which of these is a server control? K1
a) <p> b) <span> c) asp:Label d) <h1>
9. Which property shows/hides a control? K1
a) Show b) Display c) Visible d) Block
10. Which event fires for a Button? K1
a) Load b) Init c) Click d) Start
11. HTML controls run on: K1
a) Client-side b) Server-side c) Network d) Both
12. Server controls run on: K1
a) Client b) Server c) Browser d) OS
13. Which attribute makes an HTML control act as a server control? K1
a) type b) id c) runat="server" d) name
14. asp:TextBox default mode is: K1
a) Multiline b) Password c) SingleLine d) Hidden
15. Which property masks characters? a) Text b) Show c) Mask d) K1
TextMode="Password"
16. List controls include: K1
a) Label b) Button c) DropDownList d) Panel
17. Which control allows multiple selection? K1
a) DropDownList b) Button c) ListBox d) Checkbox
18. Which property enables auto postback? K1
a) AutoLoad b) Reload c) AutoPostBack d) AutoRun
19. Page events start with: K1
a) Render b) Load c) Init d) End
20. Web Form must contain which tag? K1
a) <webform> b) <body> c) <form runat="server"> d) <page>
21. To get selected item of DropDownList: K1
a) Value b) Text c) ID d) SelectedValue
22. Which control displays static text? K1
a) TextBox b) Label c) Button d) FileUpload
23. Which control is used for file selection? K1
a) TextBox b) Label c) Button d) FileUpload
24. HTML <input type="text"> is equivalent to: K1
a) Button b) TextBox c) Label d) Panel
25. To group RadioButtons: K1
a) ID b) Text c) GroupName d) Name
26. IDE feature that suggests code is: K1
a) AutoCode b) CodeHelper c) IntelliSense d) SmartType
27. To submit form data: K1
a) Label b) ListBox c) Button d) Panel
28. Default form submission method in [Link]: K1
a) GET b) POST c) PUT d) DELETE
29. Which event belongs to DropDownList? K1
a) Click b) Init c) SelectedIndexChanged d) Load
30. Which control displays hyperlinks? K1
a) Button b) HyperLink c) TextBox d) Image
31. HTML control for email input: K1
a) number b) password c) email d) file
32. asp:CheckBox property to check/uncheck: K1
a) Enabled b) Visible c) Checked d) Verify
33. Which allows multi-line input? K1
a) Label b) Button c) TextBox (TextMode="MultiLine") d) CheckBox
34. [Link] web forms are used to create: K1
a) Desktop apps b) Dynamic web pages c) Games d) Firmware
35. Which property sets width of controls? K1
a) Size b) Width c) Length d) Range
36. HTML <select> corresponds to: K1
a) CheckBox b) Label c) DropDownList d) Panel
37. Which control is used to display images? K1
a) Label b) Button c) Image d) HyperLink
38. To disable a control: K1
a) Visible=false b) Enabled=false c) Run=false d) Off
39. [Link] supports which languages? K1
a) C#, [Link] b) SQL, Java c) HTML, CSS d) COBOL
40. Web form components are placed inside: K1
a) <html> b) <page> c) <form runat="server"> d) <body>
41. List control for selecting EXACTLY one item: K1
a) ListBox b) CheckBox c) RadioButtonList d) Panel
42. Which property is common to all server controls? K1
a) Height b) Width c) Text d) ID
43. Server controls use which prefix? K1
a) # b) asp- c) form: d) asp:
44. Web server that hosts [Link] apps: K1
a) Apache b) Tomcat c) IIS d) Nginx
45. HTML controls are processed by: K1
a) Browser b) CLR c) FCL d) OS
46. Web form life cycle event before rendering: K1
a) Load b) Init c) PreRender d) End
47. asp:DropDownList property for total items: K1
a) Size b) Full c) [Link] d) Length
48. HTML form uses which tag? K1
a) <body> b) <tag> c) <form> d) <table>
49. Web forms use which architecture? K1
a) MVC b) REST c) MVVM d) Event-driven
50. Component for managing server controls: K1
a) Browser b) Client c) Page Class d) IDE
Part – B Question 7 Mark /Each
51. Explain [Link] and its features. How does it differ from classic ASP? K2

52. Describe the [Link] IDE and its components used for developing web K3
applications
53. List the languages supported by [Link]. Explain the Common Language K2
Runtime (CLR) role in language interoperability.
54. Explain the concept of Web Forms. Describe the page life cycle with a neat K2
diagram.
55. Explain any five standard web form controls in [Link] along with their K3
properties and events
56. Describe HTML controls in [Link]. Compare HTML controls and Web K2
controls with examples.
57. Explain List Controls in [Link] (DropDownList, ListBox, BulletedList) with K3
their important properties and events
58. Explain the steps to create a simple [Link] Web Form application using Visual K2
Studio
59. Discuss the event-driven programming model in [Link] with suitable examples K3

60. Explain the architecture of [Link] and discuss its main components in detail. K2

Part – C Question 10 Mark /Each


61. Discuss in detail all standard Web Form controls in [Link], their properties, K4
methods, and events with examples
62. Compare Web controls and HTML controls in [Link]. Explain features, K4
limitations, important events, and usage scenarios with examples
63. Explain List Controls in [Link] K4

64. Describe the [Link] IDE (Visual Studio) in detail — toolbars, toolbox, solution K4
explorer, properties window, server explorer, and integrated debugging
environment. Include a diagram
65. Discuss in detail all standard Web Form controls in [Link], their properties, K4
methods, and events with examples.
Unit – III

Part – A Choose the Best Answer (5x 1= 5 Marks)


1. Which of the following is a Rich Control in [Link]? K1
A) TextBox B) Calendar C) Label D) Button
2. Which Rich Control allows selecting dates? K1
A) AdRotator B) TreeView C) Calendar D) Wizard
3. The event fired when a date changes in Calendar control is ____. K1
A) DateClick B) SelectionChanged C) DateChanged D) Click
4. Which control displays hierarchical data? K1
A) TreeView B) ImageMap C) Calendar D) Wizard
5. Validation controls run first on ____. K1
A) Mouse hover B) Page load C) Button click D) CSS load
6. RequiredFieldValidator checks for ____. K1
A) Numbers B) Blank fields C) File size D) Images
7. Which property sets the control to validate? K1
A) ControlID B) ControlName C) ControlToValidate D) ControlFocu
8. RegularExpressionValidator checks ____. K1
A) CSS B) Patterns C) Images D) File
9. CompareValidator is used for ____. K1
A) Matching values B) Uploading files C) Logging D) Encrypting
10. FileUpload control property to check if a file is selected: K1
A) HasFile B) FileExists C) CheckFile D) Loaded
11. FileStream class is present in ____. K1
A) [Link] B) [Link] C) [Link] D) [Link]
12. Which FileMode creates a new file? K1
A) Append B) Create C) Truncate D) Open
13. [Link] opens file for ____. K1
A) Reading B) Editing C) Adding data at end D) Deleting
14. [Link] allows ____. K1
A) No sharing B) Multiple read C) Only writing D) No access
15. StreamReader is used for ____. K1
A) Writing files B) Reading text files C) Opening websites D) Logging
16. StreamWriter is used for ____. K1
A) Editing images B) Writing to text files C) Copying files D) Creating folders
17. [Link] checks ____. K1
A) Permissions B) If file present C) File size D) File extension
18. [Link] is used to ____. K1
A) Encrypt B) Remove file C) Move file D) Execute file
19. To copy a file, you use ____. K1
A) [Link] B) FileShift C) FilePush D) FileClone
20. [Link] does ____. K1
A) Deletes file B) Shifts file to new path C) Uploads file D) Opens file
21. ValidationSummary displays ____. K1
A) Logs B) Pictures C) All validation errors D) Only last error
22. Which property of validator sets the error text? K1
A) Text B) Message C) ErrorString D) Info
23. RangeValidator checks ____. K1
A) File size B) Value range C) File name D) Color
24. The ImageMap control shows ____. K1
A) Video B) Clickable image areas C) Textbox D) Button
25. Which event fires when a Wizard step changes? K1
A) StepClick B) ActiveStepChanged C) StepMove D) ChangeStep
26. TreeView nodes are called ____. K1
A) Leaves B) Branches C) Nodes D) Items
27. File upload control method to save file: K1
A) MoveFile() B) SaveFile() C) SaveAs() D) Upload()
28. [Link] creates a ____. K1
A) Stream B) Array C) Database D) Form
29. Which namespace handles file operations? K1
A) [Link] B) [Link] C) [Link] D) [Link]
30. File appending is done by ____. K1
A) StreamWriter with append B) DataReader C) FileDelete D) Validator
31. Which property in FileUpload gives file name? K1
A) FileName B) Name C) UploadName D) FileText
32. The AdRotator control displays ____. K1
A) Videos B) Rotating images/ads C) Popups D) Icons
33. CustomValidator allows ____. K1
A) Custom CSS B) User-defined validation C) File compression D) Encryption
34. ValidationGroup property groups ____. K1
A) Buttons B) Validators C) Textboxes D) All of these
35. The File Class contains methods for ____. K1
A) Database queries B) File operations C) CSS editing D) Form design
36. [Link] opens a file for ____. K1
A) New only B) Existing only C) Both D) None
37. [Link] fails if file ____. K1
A) Exists B) Missing C) Hidden D) Encrypted
38. [Link] means ____. K1
A) No sharing allowed B) All sharing allowed C) Only read allowed D) Only
write allowed
39. StreamWriter writes data as ____. K1
A) Text B) Binary C) XML only D) Scripts
40. BinaryReader is used for ____. K1
A) Text only B) Binary files C) HTML D) SQL
41. BinaryWriter writes ____. K1
A) Binary data B) SQL commands C) HTML D) XML
42. [Link] converts ____. K1
A) CSS to HTML B) Virtual path to physical path C) File to image
D) Validation error to text
43. Which validation control checks for email patterns? K1
A) RangeValidator B) RegularExpressionValidator C) RequiredValidator
D) CompareValidator
44. Validation controls are located in ____. K1
A) [Link] B) [Link] C) [Link]
D) [Link]
45. [Link] writes data to ____. K1
A) Database B) Entire file C) Image control D) Network
46. [Link] reads ____. K1
A) Partial content B) Entire file text C) Video D) Compressed file
47. Uploading files requires ____. K1
A) SQL B) Server storage C) IIS D) All of these
48. Wizard control is used for ____. K1
A) Multi-step forms B) One-page design C) CSS design D) File upload
49. Calendar control displays ____. K1
A) Months & dates B) Database C) CSS D) System logs
50. FileInfo class is used for ____. K1
A) Getting file details B) Writing database C) Cookies D) Server log
Part – B Question 7 Mark /Each
51. Explain Rich Controls in [Link]. Describe their important properties and K3
events with examples.
52. Discuss the types of Validation Controls in [Link] and explain their properties K3
and events
53. Explain different File Stream classes in .NET. How are they useful in file K3
operations?
54. Describe File Modes in .NET. Explain each mode with suitable examples. K2

55. Explain File Share options in .NET and describe how file access is managed K2
between multiple users
56. Explain reading and writing operations in files using StreamReader and K3
StreamWriter with examples.
57. Discuss creating, moving, copying, and deleting files in .NET using [Link] K3
classes with examples.
58. Explain the procedure for uploading a file in [Link] using FileUpload control. K3
Include validations and code snippet
59. Discuss the purpose of FileStream class. Explain how to open files with different K2
FileModes.
60. Describe the role of FileShare K2

Part – C Question 10 Mark /Each


61. Explain in detail Rich Controls in [Link] such as Calendar, AdRotator, K4
FileUpload, and Wizard. Describe all major properties, methods, and events with
example
62. Write a detailed explanation of all Validation Controls (RequiredField, Range, K4
Compare, RegularExpression, Custom, ValidationSummary) with properties,
events, and sample [Link] code
63. Explain File Stream classes in depth (FileStream, StreamReader, StreamWriter, K4
BinaryReader, BinaryWriter). Discuss file access permissions, buffering, and
examples
64. Describe complete file operations in .NET: opening, reading, writing, closing, K4
creating, moving, copying, deleting, and checking existence of files using
[Link] namespace. Include programs.
65. Explain file uploading in [Link] using FileUpload control. Discuss server-side K4
validation, saving uploaded files, security considerations, and sample code
implementation
Unit – IV

Part – A Choose the Best Answer (5x 1= 5 Marks)


1. [Link] is mainly used for ____. K1
A) Networking B) Database access C) Animation D) Web hosting
2. Which class is used to open a connection to the database? K1
A) SqlCommand B) SqlConnection C) SqlAdapter D) SqlDataset
3. he method used to open a SQL Connection is ____. K1
A) Start() B) Begin() C) Open() D) Run()
4. Which object executes SQL commands? K1
A) SqlRun B) SqlCommand C) SqlReader D) SqlBinder
5. DataReader is used for ____. K1
A) One-way reading B) Two-way editing C) Writing XML D) Backup
6. DataReader reads data in ____. K1
A) Forward-only B) Reverse-only C) Random D) Paralle
7. Which object fills a DataSet? K1
A) SqlCommand B) SqlReader C) SqlFiller D) SqlDataAdapter
8. DataSet stores data in ____. K1
A) Table format B) Video format C) Audio format D) Image format
9. A DataSet can contain ____. K1
A) Only one table B) Multiple tables C) Only XML D) No tables
10. Which method executes queries that return a single value? K1
A) ExecuteReader B) ExecuteScalar C) ExecuteTable D) ExecuteFetch
11. Which control displays tabular data? K1
A) TextBox B) GridView C) Button D) Label
12. Connection string is stored in ____. K1
A) [Link] B) [Link] C) [Link] D) [Link]
13. DataAdapter works in ____. K1
A) Connected mode B) Disconnected mode C) Stream mode D) Console mode
14. ExecuteNonQuery is used for ____. K1
A) Insert/Update/Delete B) Select only C) Displaying data D) Creating labels
15. Data binding connects controls to ____. K1
A) Music files B) Data sources C) CSS files D) Videos
16. Which provider is used for SQL Server? K1
A) [Link] B) [Link] C) [Link] D)
[Link]
17. Which DataReader method moves to the next record? K1
A) Next() B) Move() C) Read() D) Fetch()
18. DataAdapter uses which method to fill DataSet? K1
A) Insert() B) Fill() C) Bind() D) Add()
19. DataSet works ____. K1
A) In-memory B) Online only C) With direct queries D) Without data tables
20. Which property of GridView enables editing? K1
A) Editable B) AllowEdit C) AutoGenerateEditButton D) EditMode
21. Which [Link] component supports disconnected architecture? K1
A) SqlCommand B) SqlConnection C) DataSet D) SqlReader
22. [Link] means ____. K1
A) Stored procedure B) Plain SQL query C) XML data D) Binary query
23. Which object represents an in-memory copy of data? K1
A) DataAdapter B) DataSet C) DataReader D) SqlCommand
24. To close a SqlConnection, we use ____. K1
A) End() B) Stop() C) Close() D) Cancel()
25. Which method of SqlCommand is used to fetch multiple rows? K1
A) ExecuteReader B) ExecuteScalar C) ExecuteNone D) ExecuteFetch
26. In GridView, sorting is enabled using ____. K1
A) AllowSort B) EnableSort C) AllowSorting D) SortMode
27. A DataSet is represented in ____. K1
A) XML format B) JSON format C) HTML format D) PHP format
28. Which control is used to display a single record at a time? K1
A) GridView B) DetailsView C) TextBox D) Panel
29. SqlConnection belongs to __ namespace. K1
A) [Link] B) [Link] C) [Link]
D) SqlSystem
30. A DataReader requires the connection to be ____. K1
A) Closed B) Open C) Hidden D) Undefined
31. DataBinding can be ____. K1
A) Single field B) Multiple fields C) Both A and B D) None
32. Which method is used to update the database using a DataAdapter? K1
A) Refresh() B) Update() C) Submit() D) Modify()
33. Which is a Data Control? K1
A) FileUpload B) GridView C) ImageButton D) CheckBox
34. DataTable is part of ____. K1
A) DataReader B) DataSet C) SqlCommand D) Connection pool
35. Which property holds the SQL query in SqlCommand? K1
A) Query B) Text C) Sql D) CommandString
36. DataBinding in [Link] is ____. K1
A) Automatic B) Manual C) Both A and B D) Optional only
37. Which control is best suited for master-detail view? K1
A) GridView B) DetailsView C) Both A & B D) Label
38. SqlDataAdapter acts as a ____. K1
A) Bridge between DataSet & DB B) Query builder C) Validation tool D) Login
system
39. Which method removes all rows from a DataTable? K1
A) Clear() B) Delete() C) Remove() D) Purge()
40. DataReader returns data as ____. K1
A) Objects B) Records C) Keys only D) Index only
41. Which property of DetailsView enables inserting records? K1
A) AutoInsert B) AllowInsert C) AutoGenerateInsertButton D) InsertMode
42. [Link] stands for ____. K1
A) ActiveX Data Object B) Advanced Data Operation C) Active Data Online
D) ActiveX Data Objects .NET
43. Which method of SqlConnection tests the connection status? K1
A) Check() B) State() C) Open() D) Ping()
44. The default CommandType is ____. K1
A) StoredProcedure B) Text C) TableDirect D) Query
45. DataAdapter performs ____. K1
A) Select only B) Insert only C) CRUD operations D) UI design
46. Which method converts DataSet to XML? K1
A) ToXML() B) MakeXML() C) WriteXml() D) ConvertXml()
47. Which property of SqlCommand stores command text? K1
A) Text B) Command C) QueryString D) Script
48. GridView is used to display ____. K1
A) Structured table data B) CSS C) Audio D) Video
49. Data binding at runtime is performed through ____. K1
A) Bind() B) DataBind() C) Read() D) Get()
50. Which of the following is connection-oriented? K1
A) DataReader B) DataSet C) DataTable D) DataAdapter
Part – B Question 7 Mark /Each
51. Explain the architecture of [Link]. Describe its key features and advantages. K3

52. Describe how to establish a database connection in [Link] using K2


SqlConnection. Include an example
53. Explain SqlCommand and its types (Text, StoredProcedure, TableDirect) with K3
examples
54. Discuss the working of DataReader. Explain its methods, properties, and K2
limitations
55. Explain the purpose of DataAdapter. Describe how DataAdapter fills and updates K3
the DataSet.
56. Explain DataSet structure. Describe DataTable, DataColumn, and DataRelation K3
with examples
57. Explain the use of Data Controls in [Link] (GridView, DetailsView, K2
FormView) and list their important properties
58. Describe various types of DataBinding in [Link] and explain the difference K3
between simple and complex databinding
59. Explain disconnected architecture in [Link]. How does DataSet support it? K3

60. Discuss Command methods such as ExecuteNonQuery(), ExecuteScalar(), K2


ExecuteReader(). Give suitable examples.
Part – C Question 10 Mark /Each
61. Explain in detail [Link] architecture including Connection, Command, K4
DataReader, DataAdapter, and DataSet with a neat diagram.
62. Explain database connectivity using [Link] with complete steps: creating K4
connection, executing commands, retrieving data, handling exceptions. Include
sample code
63. Discuss DataSet in detail. Explain DataTables, DataRows, Constraints, Primary K4
keys, Relationships, and XML integration with examples.
64. Explain Data Controls in [Link] such as GridView, DetailsView, Repeater, and K4
FormView. Discuss properties, events, and databinding with code.
65. Describe DataBinding techniques in [Link]. Explain one-way, two-way, and K4
complex databinding with examples.
Unit – V

Part – A Choose the Best Answer (5x 1= 5 Marks)


1. Which event is raised when a row is deleted in GridView? K1
A) RowEditing B) RowDeleting C) RowCancelingEdit D) RowUpdating
2. Which property enables paging in GridView? K1
A) AllowSort B) AutoPage C) AllowPaging D) PageEnable
3. Which XML class is used for fast, forward-only reading of XML? K1
A) XmlWriter B) XmlDocument C) XmlReader D) XDocument
4. Authentication verifies ____. K1
A) Permissions B) Identity C) Password strength D) Cookies
5. Authorization determines ____. K1
A) Who can log in B) What a user can access C) Password format D) Session
duration
6. Which event triggers sorting in GridView? K1
A) PageIndexChanged B) DataBound C) Sorting D) RowUpdated
7. XML stands for ____. K1
A) Extra Markup Language B) Extensible Markup Language C) External
Marking List D) Extended Machine Language
8. Which property enables editing in GridView automatically? K1
A) AutoGenerateEditButton B) Editable C) AllowEditing D) EditMode
9. Which file stores security configuration in [Link]? K1
A) [Link] B) [Link] C) [Link] D) [Link]
10. XML files are primarily ____. K1
A) Binary data B) Hierarchical data C) Encrypted files D) Password files
11. Which class is used to create XML content? K1
A) XmlMaker B) XmlReader C) XmlWriter D) XmlLoad
12. Paging divides records into ____. K1
A) Columns B) Pages C) Rows D) Cells
13. A Web Form file uses the extension ____. K1
A) .html B) .cs C) .config D) .aspx
14. Which tag manages authentication in [Link]? A) <pages> B) <authorization> K1
C) <authentication> D) <data>
15. XmlDocument works based on ____. K1
A) DOM B) CSS C) HTML D) BOM
16. Sorting arranges data in ____. K1
A) Pages B) Order C) Tables D) Folders
17. Which GridView event triggers on page change? K1
A) PageIndexChanging B) Sorting C) RowDataBound D) RowDeleted
18. The default authentication for [Link] is ____. K1
A) Windows B) Forms C) None D) Custom
19. XML stores data using ____. K1
A) Attributes only B) Tags C) Comments D) Keys
20. Which object is used to access nodes in XmlDocument? K1
A) NodeInfo B) ElementSet C) XmlNode D) XmlBase
21. Authorization rules are defined using ____. K1
A) <auth> B) <authorization> C) <login> D) <access>
22. Which GridView property enables sorting? K1
A) SortEnable B) AllowSorting C) SortingPossible D) EnableSort
23. Which XML class supports LINQ operations? K1
A) XmlReader B) XmlWriter C) XmlDocument D) XDocument
24. What does GridView mainly display? K1
A) Audio B) Video C) Tabular data D) Images
25. Forms Authentication stores login info in ____. K1
A) Text file B) Cookie C) Database only D) XML only
26. XML nodes are also called ____. K1
A) Tags B) Elements C) Pages D) Scripts
27. The root element in XML is ____. K1
A) Top tag B) First tag C) Single parent D) Any tag
28. Which GridView event is used to update data? K1
A) RowEditing B) RowUpdating C) RowBound D) RowCancelingEdit
29. XML is mainly used to ____. K1
A) Design UI B) Store structured data C) Format CSS D) Create animation
30. Authentication asks ____. K1
A) What can you do? B) Who are you? C) Why are you here?
D) How secure are you?
31. GridView Delete automatically shows a(n) ____. K1
A) Button B) Dropdown C) Textbox D) Checkbox
32. Which XML class supports loading entire XML into memory? K1
A) XmlReader B) XmlWriter C) XmlDocument D) XmlEdit
33. Paging reduces ____. K1
A) Data loss B) Screen space C) Load time D) All
34. In [Link], login controls belong to ____. K1
A) Data controls B) Rich controls C) Validation controls D) Login controls
35. he grid event to cancel editing is ____. K1
A) RowCancelingEdit B) RowAbort C) CancelEdit D) StopEdit
36. XML comments start with ____. K1
A) // B) <!-- C) /* D) ??
37. Which security feature restricts users based on roles? K1
A) Authentication B) Authorization C) Encryption D) Cookies
38. [Link] web apps run on ____. K1
A) IIS B) Chrome C) Windows Media Player D) File Explorer
39. XML attribute values are written inside ____. K1
A) Curly braces B) Quotes C) Parentheses D) Hash marks
40. GridView uses __ to display data. K1
A) HTML table B) XML tree C) JSON file D) CSS grid
41. XmlWriter is mainly used for ____. K1
A) Reading XML B) Writing XML C) Deleting XML D) Encrypting XML
42. Which authentication is commonly used for intranet applications? K1
A) Forms B) Windows C) Custom D) None
43. Which method loads XML in XmlDocument? K1
A) fetch() B) GetXML() C) Load() D) ReadXML()
44. [Link] Web Forms use which programming model? K1
A) Event-driven B) Sequential C) Functional D) Procedural only
45. GridView displays each record as ____. K1
A) Column B) Row C) Cell D) Header
46. XML requires ____. K1
A) Closing tags B) CSS C) DataBinding D) Tables
47. Authorization is set in ____. K1
A) [Link] B) [Link] C) [Link] D) [Link]
48. GridView can be bound to ____. K1
A) Only XML B) Only SQL C) Many data sources D) None
49. XML is platform ____. K1
A) Dependent B) Neutral C) Hardware-based D) OS-specific
50. Creating an [Link] website begins with ____. K1
A) Adding database B) Opening Visual Studio C) Writing CSS D) Installing IIS
Part – B Question 7 Mark /Each
51. Explain deleting, editing operations in GridView control with suitable examples K3

52. How is sorting and paging enabled in a GridView? K2

53. What are XML classes in .NET? List their uses in Web applications K2

54. What are the major security features available in [Link] for protecting a K2
website

55. List and explain the steps involved in creating a simple [Link] Web K2
Application
56. Explain the need for authentication mechanisms in a web application K3

57. Describe how XML files can be manipulated through a Web Form in [Link] K3

58. Differentiate between Authentication and Authorization in website security. K2

Part – C Question 10 Mark /Each


59. Write a detailed note on the manipulation of XML documents using Web Forms, K4
highlighting the steps, controls, and code components involve
60. Explain the different XML classes in .NET Framework and describe how they are K4
used to create, read, write, and modify XML files in a Web Form
61. Discuss in detail the implementation of deleting, editing, sorting, and paging K4
operations in a GridView
62. Describe the complete process of developing an [Link] Web Application, K3
including project creation, interface design, server controls usage, event handling,
and deployment steps.
63. Elaborate on the security features of [Link] with emphasis on authentication, K4
authorization, secure configuration, and protection against common attack

Subject Incharge HoD

You might also like