Online Exam Quiz

questionQuestion  1 to 30

Which of the following is not a .NET data provider?

  • OLE DB
  • ODBC
  • SQL Server
  • JDBC
Mark for review

What is the purpose of the 'async' keyword in C#?

  • To define asynchronous methods
  • To define synchronous methods
  • To handle exceptions
  • To declare variables
Mark for review

What is the purpose of the Web.config file in ASP.NET?

  • Configure application settings
  • Store user credentials
  • Design web pages
  • Define database schema
Mark for review

Which of the following is not a valid data type in C#?

  • int
  • double
  • string
  • var
Mark for review

What is the purpose of the Global.asax file?

  • Handle application-level events
  • Define web form structure
  • Style the web page
  • Store database connection strings
Mark for review

Which class is used to connect to a SQL Server database in .NET?

  • SqlServerConnection
  • SqlConnection
  • SqlDatabase
  • SqlConnect
Mark for review

Which of the following is not a valid ASP.NET server control?

  • TextBox
  • Button
  • Label
  • Div
Mark for review

Which control is used to display a list of items in ASP.NET?

  • ListView
  • GridView
  • DataGrid
  • Repeater
Mark for review

Which method is used to concatenate two strings in C#?

  • Concat()
  • Append()
  • Join()
  • Add()
Mark for review

Which method is used to release unmanaged resources before an object is destroyed?

  • Dispose()
  • Finalize()
  • Release()
  • Terminate()
Mark for review

What is the file extension for a web form in ASP.NET?

  • .html
  • .aspx
  • .cshtml
  • .webform
Mark for review

Which method is used to register a route in ASP.NET MVC?

  • RegisterRoute()
  • MapRoute()
  • DefineRoute()
  • AddRoute()
Mark for review

What does the abbreviation CLR stand for?

  • Common Language Runtime
  • Common Language Resource
  • Common Language Resolution
  • Common Language Reference
Mark for review

Which class is used to work with JSON data in .NET?

  • JsonParser
  • JsonConvert
  • JsonSerializer
  • JsonHandler
Mark for review

What is the default session timeout in ASP.NET?

  • 5 minutes
  • 10 minutes
  • 20 minutes
  • 30 minutes
Mark for review

Which of the following is not a type of authentication in ASP.NET?

  • Windows
  • Forms
  • Passport
  • Client
Mark for review

Which tool is used for managing .NET packages?

  • NuGet
  • NPM
  • Bower
  • Composer
Mark for review

What is a Partial View in MVC?

  • A part of a web service
  • A part of a view
  • A part of a model
  • A part of a controller
Mark for review

What does ADO stand for in ADO.NET?

  • ActiveX Data Object
  • Advanced Data Object
  • ActiveX Database Object
  • None of the above
Mark for review

What is the extension of a web.config file?

  • .conf
  • .xml
  • .config
  • .web
Mark for review

What is Razor in ASP.NET MVC?

  • A server-side templating engine
  • A client-side scripting language
  • A database
  • A type of .NET framework
Mark for review

In .NET, what is the namespace used for threading?

  • System.Threading
  • System.Thread
  • System.Threading.Tasks
  • System.Task
Mark for review

What is the use of the 'var' keyword in C#?

  • To declare variables with an implicit type
  • To declare constants
  • To handle exceptions
  • To create a class
Mark for review

What is the use of the 'using' statement in C#?

  • To include namespaces
  • To manage resources
  • To handle exceptions
  • To declare variables
Mark for review

Which method is used to explicitly kill a user's session?

  • Session.Abandon()
  • Session.End()
  • Session.Kill()
  • Session.Dispose()
Mark for review

Which object is used to send an email message in .NET?

  • MailMessage
  • EmailMessage
  • Message
  • MailClient
Mark for review

Which protocol is used for communication between a client and server in ASP.NET?

  • TCP
  • HTTP
  • FTP
  • SMTP
Mark for review

Which method is used to read data from a DataReader in .NET?

  • Read()
  • Execute()
  • Fetch()
  • Load()
Mark for review

Which control would you use to bind data from a database to a dropdown list?

  • ListBox
  • ComboBox
  • DropDownList
  • DataList
Mark for review

Which method can be used to post data back to the same page in ASP.NET?

  • IsPostBack
  • PostData
  • PostBack
  • SamePage
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review