Online Exam Quiz

questionQuestion  1 to 30

Which class in .NET is used to read and write files?

  • FileStream
  • FileReader
  • FileHandler
  • FileOperator
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 is the default port for HTTP?

  • 21
  • 80
  • 8080
  • 443
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 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

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

  • MailMessage
  • EmailMessage
  • Message
  • MailClient
Mark for review

What is the base class from which all Web Forms inherit?

  • Page
  • Form
  • WebPage
  • Control
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

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

  • To create an iterator
  • To handle exceptions
  • To declare variables
  • To create a thread
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 use of the 'using' statement in C#?

  • To include namespaces
  • To manage resources
  • To handle exceptions
  • To declare variables
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

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

  • Start()
  • Begin()
  • Run()
  • Initiate()
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 default session timeout in ASP.NET?

  • 5 minutes
  • 10 minutes
  • 20 minutes
  • 30 minutes
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 explicitly kill a user's session?

  • Session.Abandon()
  • Session.End()
  • Session.Kill()
  • Session.Dispose()
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 MVC, what does the 'C' stand for?

  • Controller
  • Class
  • Client
  • Component
Mark for review

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

  • TextBox
  • Button
  • Label
  • Div
Mark for review

Which attribute is used to specify the primary key in Entity Framework?

  • [PrimaryKey]
  • [Key]
  • [Id]
  • [Primary]
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 of the following is not a valid data type in C#?

  • int
  • double
  • string
  • var
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 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 type of authentication in ASP.NET?

  • Windows
  • Forms
  • Passport
  • Client
Mark for review

What does IIS stand for?

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

What does LINQ stand for?

  • Language Integrated Query
  • Linear Integrated Query
  • Language Input Query
  • List Integrated Query
Mark for review

What is the extension of a web.config file?

  • .conf
  • .xml
  • .config
  • .web
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