PRN211 – Full Exam 2025-2026 Questions
And Correct Answers Graded A+
Complete this sentence: At the heart of events are.
A. Delegates
B. Buttons
C. Methods
D. Threads - ANSWERSA
With the constraint "where T: class", what it means?
A. The type argument must be a non-nullable value type, either nullable or non-nullable
B. The type argument must be a reference type, either nullable or non-nullable. This constraint applies
also to any class, interface, delegate, or array type.
C. The type argument must be a reference type. This constraint applies also to any class, interface,
delegate, or array type. T must be a non-nullable reference type
D. None of the others - ANSWERSC
With the constraint "where T: new()", what it means?
A. The type argument must be a non-nullable value type. The new constraint implies the class constraint
and struct constraint
B. None of the others
C. The type argument must be a reference type, either nullable or non-nullable
D. The type argument must have a public parameterless constructor. When used together with other
constraint must be constraints, the new() specified last - ANSWERSD
Which one in the below events is fired secondly during the page load?
A. PreRender()
B. Init()
,C. Unload()
D. Load() - ANSWERSD
Which keyword is used when you wish to explicitly reference the fields and members of the current
object?
A. abstract
B. base
C. this
D. virtual - ANSWERSC
Which event occurs when the form is closed?
A. Closed
B. Deleted
C. Destroyed
D. Disposed - ANSWERSA
Which sentence about properties is correct?
A. Properties can be static
B. Properties have only set block.
C. Properties must have set and get block.
D. Properties have only get block. - ANSWERSA
Validity of a page can be checked using the _______ property.
A. ValidateControl
B. IsValidControl
C. IsValid
D. ControlToValidate - ANSWERSC
Does DataTable class support a method that allows obtaining the data reader-like navigation scheme?
,A. No
B. Yes - ANSWERSB
Which sentence about Cookie is correct?
A. Cookie is often realized as a text file on the web server.
B. The exact location of cookie files does not dependent on which browser is using.
C. Cookie is often realized as a text file on the user's machine.
D. Cookie is used to maintain sensitive information about the current user. - ANSWERSC
How many web.config files an ASP.NET application can have?
A. An ASP.NET application don't have web.config file.
B. Only 1.
C. Greater than or equal 1. - ANSWERSC
What is output of the following code?
using System;
class Program
{
static void Main()
{
Display<System.Int32>();
}
static void Display<T>()
{
Console.WriteLine(typeof(T).ToString());
}
}
A. ToString()
B. System.Int32
, C. Compile error
D. Runtime error - ANSWERSB
What is reason for using client-side scripting?
A. To query data from database.
B. To validate user input before posting back to the web server.
C. To implement codes required high security.
D. To upload a file to the web server. - ANSWERSB
Which sentence is NOT correct?
A. Explicit conversions are kind of type conversions.
B. Explicit conversions require a cast
C. Explicit conversions are guaranteed to succeed
D. With explicit conversions, information might be lost - ANSWERSC
What are required services in an ASP.NET Web server?
A. World Wide Web Publishing and HTTP SSL
B. IIS Admin and World Wide Web Publishing
C. Messenger and IIS Admin
D. HTTP SSL and Messenger - ANSWERSB
Which sentence about BufferedStream is correct?
A. BufferedStream provide a temporary storage for a stream of bytes that may be committed to storage
at a later time
B. BufferedStream is used to store textual information to a file.
C. BufferedStream provides random access to streamed data stored in memory rather than a physical
file.
D. BufferedStream allows for random file access with data represented as a stream of bytes. -
ANSWERSA
And Correct Answers Graded A+
Complete this sentence: At the heart of events are.
A. Delegates
B. Buttons
C. Methods
D. Threads - ANSWERSA
With the constraint "where T: class", what it means?
A. The type argument must be a non-nullable value type, either nullable or non-nullable
B. The type argument must be a reference type, either nullable or non-nullable. This constraint applies
also to any class, interface, delegate, or array type.
C. The type argument must be a reference type. This constraint applies also to any class, interface,
delegate, or array type. T must be a non-nullable reference type
D. None of the others - ANSWERSC
With the constraint "where T: new()", what it means?
A. The type argument must be a non-nullable value type. The new constraint implies the class constraint
and struct constraint
B. None of the others
C. The type argument must be a reference type, either nullable or non-nullable
D. The type argument must have a public parameterless constructor. When used together with other
constraint must be constraints, the new() specified last - ANSWERSD
Which one in the below events is fired secondly during the page load?
A. PreRender()
B. Init()
,C. Unload()
D. Load() - ANSWERSD
Which keyword is used when you wish to explicitly reference the fields and members of the current
object?
A. abstract
B. base
C. this
D. virtual - ANSWERSC
Which event occurs when the form is closed?
A. Closed
B. Deleted
C. Destroyed
D. Disposed - ANSWERSA
Which sentence about properties is correct?
A. Properties can be static
B. Properties have only set block.
C. Properties must have set and get block.
D. Properties have only get block. - ANSWERSA
Validity of a page can be checked using the _______ property.
A. ValidateControl
B. IsValidControl
C. IsValid
D. ControlToValidate - ANSWERSC
Does DataTable class support a method that allows obtaining the data reader-like navigation scheme?
,A. No
B. Yes - ANSWERSB
Which sentence about Cookie is correct?
A. Cookie is often realized as a text file on the web server.
B. The exact location of cookie files does not dependent on which browser is using.
C. Cookie is often realized as a text file on the user's machine.
D. Cookie is used to maintain sensitive information about the current user. - ANSWERSC
How many web.config files an ASP.NET application can have?
A. An ASP.NET application don't have web.config file.
B. Only 1.
C. Greater than or equal 1. - ANSWERSC
What is output of the following code?
using System;
class Program
{
static void Main()
{
Display<System.Int32>();
}
static void Display<T>()
{
Console.WriteLine(typeof(T).ToString());
}
}
A. ToString()
B. System.Int32
, C. Compile error
D. Runtime error - ANSWERSB
What is reason for using client-side scripting?
A. To query data from database.
B. To validate user input before posting back to the web server.
C. To implement codes required high security.
D. To upload a file to the web server. - ANSWERSB
Which sentence is NOT correct?
A. Explicit conversions are kind of type conversions.
B. Explicit conversions require a cast
C. Explicit conversions are guaranteed to succeed
D. With explicit conversions, information might be lost - ANSWERSC
What are required services in an ASP.NET Web server?
A. World Wide Web Publishing and HTTP SSL
B. IIS Admin and World Wide Web Publishing
C. Messenger and IIS Admin
D. HTTP SSL and Messenger - ANSWERSB
Which sentence about BufferedStream is correct?
A. BufferedStream provide a temporary storage for a stream of bytes that may be committed to storage
at a later time
B. BufferedStream is used to store textual information to a file.
C. BufferedStream provides random access to streamed data stored in memory rather than a physical
file.
D. BufferedStream allows for random file access with data represented as a stream of bytes. -
ANSWERSA