Online Exam Quiz

questionQuestion  1 to 30

What is the extension of a web.config file?

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

Which of the following is a method to start a thread in .NET?

  • Start()
  • Begin()
  • Run()
  • Initiate()
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 attribute is used to specify the primary key in Entity Framework?

  • [PrimaryKey]
  • [Key]
  • [Id]
  • [Primary]
Mark for review

Which of the following languages can be used to write .NET applications?

  • C#
  • VB.NET
  • F#
  • All of the above
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

What is the main entry point for a .NET application?

  • Main() method
  • Start() method
  • Begin() method
  • Init() method
Mark for review

What is the maximum length of a URL in ASP.NET?

  • 1024 characters
  • 2048 characters
  • 4096 characters
  • 8192 characters
Mark for review

Which class in .NET can be used for logging events?

  • EventLog
  • LogEvent
  • EventLogger
  • Logger
Mark for review

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

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

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

  • TextBox
  • Button
  • Label
  • Div
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

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

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

Which of the following statements about C# is false?

  • C# is case-sensitive
  • C# supports multiple inheritance
  • C# supports operator overloading
  • C# is managed by the CLR
Mark for review

What is Entity Framework in .NET?

  • An ORM framework
  • A web server
  • A database
  • A programming language
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 tool is used for managing .NET packages?

  • NuGet
  • NPM
  • Bower
  • Composer
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 does ADO stand for in ADO.NET?

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

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

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

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

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

What is the default port for HTTP?

  • 21
  • 80
  • 8080
  • 443
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 read data from a DataReader in .NET?

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

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

  • MailMessage
  • EmailMessage
  • Message
  • MailClient
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 does IIS stand for?

  • Internet Information Server
  • Internal Information Service
  • Internet Information Service
  • Internal Information Server
Mark for review

In MVC, what does the 'C' stand for?

  • Controller
  • Class
  • Client
  • Component
Mark for review

What is the role of the 'finally' block in exception handling?

  • To execute code after a try block
  • To catch exceptions
  • To log errors
  • To terminate the program
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