Font size
WorksheetsASP. NET QUIZ_1
Total questions: 10
Worksheet time: 5mins
Which class is used to read text line by line from a file?
FileStream
file.Readline()
StreamReader
FileInfo
Which of the following is NOT a responsibility of the CLR?
Garbage Collection
Exception Handling
Just-In-Time (JIT) Compilation
Designing User Interface
Which looping statement in C# is best suited when the number of iterations is unknown?
for
while
do....while
switch
Which event of a Button control is fired when a user clicks the button?
OnClick
Oncommand
Onswitch
Onclick
If File.Move("a.txt", "b.txt") is executed, what happens?
File a.txt is moved as b.txt.
File a.txt is moved to b.txt and a.txt is deleted
File b.txt is moved to a.txt and a.txt is deleted
File b.txt is moved to a.txt and b.txt is deleted
The AdvertisementFile property of AdRotator control points to:
Image file containing ad details
xml file containing ad details
css file for styling and add details
a database table
In ASP.NET, GridView control is mainly used for:
Showing hierarchical data
Managing and editing session data
Showing ad data
Displaying and editing tabular data
Which control would you use if you want a user to navigate to another page but also perform a server-side event?
Hyperlink
LinkButton
Button
LinkHyper
What will be the output of the following code?
int a = 5;
int b = 2;
Console.WriteLine(a / b);
2.5
2
3
Error
The Common Language Runtime (CLR) is responsible for:
Compiling C# code into machine code
Memory management and garbage collection
Managing UI elements in ASP.NET
Only converting IL to CIL
