Login
Sign up
Categories
IT & Programming
Design & Multimedia
Writing & Translation
Sales & Marketing
Admin Support
Engineering & Manufacturing
Finance & Management
Website Designing & Development
Database Management
Networking & Troubleshooting
Aviation & Aerospace
Softwares & Applications
Stocks & Investments
Electronics & Appliances
Online Tools
General Knowledge & Aptitude
Mathematics
Educational Subjects & Courses
Business & Organization
Health & Wellbeing
Culture & Ethics
IT Field Knowledge & Experience
Languages & Communication
Entrepreneurship & Leadership
Economics & Development
Mass Communication & Media
Research Methods & Evaluation
Public Relations & Dealings
Educational Methods and Research
Educational Subjects & Techniques
Crime & Justice
Governments & Policies
Cyber Security & Ethical Hacking
Hospitality & Tourism
Soft Skills & Personal Management
Transportation & Driving Rules
Forest and Nature
Religion
Skill Assessment
MCQs
Login
Sign up
Categories
IT & Programming
Design & Multimedia
Writing & Translation
Sales & Marketing
Admin Support
Engineering & Manufacturing
Finance & Management
Website Designing & Development
Database Management
Networking & Troubleshooting
Aviation & Aerospace
Softwares & Applications
Stocks & Investments
Electronics & Appliances
Online Tools
General Knowledge & Aptitude
Mathematics
Educational Subjects & Courses
Business & Organization
Health & Wellbeing
Culture & Ethics
IT Field Knowledge & Experience
Languages & Communication
Entrepreneurship & Leadership
Economics & Development
Mass Communication & Media
Research Methods & Evaluation
Public Relations & Dealings
Educational Methods and Research
Educational Subjects & Techniques
Crime & Justice
Governments & Policies
Cyber Security & Ethical Hacking
Hospitality & Tourism
Soft Skills & Personal Management
Transportation & Driving Rules
Forest and Nature
Religion
Skill Assessment
MCQs
Login
Sign up
Skill Assessments
>
IT & Programming
>
.NET Skill Assessment
>
Quiz # 3
.NET Quiz # 3
Instructions
Quiz:
.NET Quiz # 3
Subject:
Basic Net
Total Questions:
30 MCQs
Time:
30 Minutes
Note
Do not refresh the page while taking the test.
Results along with correct answers will be shown at the end of the test.
Start Quiz
.NET Quiz # 3
End Quiz
Question
1
of 30
00:00
In C#, it is possible to pass methods as arguments for other methods without modification.
False
True
Which of the following defines a String literal?
Contains exactly its variable name and nothing else
Contains numbers rather than letters
Contains only one character
A sequence of characters in double quotation marks
Which of the following defines a Thread?
A deprecated object that is no longer used
Does not exist
An object that wraps itself with other threads
An object that allows computer multitasking
In C#, how does the following code measures time? Thread.Sleep(time)
Milliseconds
Nanoseconds
Minutes
Seconds
Which of the following is not a component of the .NET framework?
Common Language Specification
JVM
Metadata and Assemblies
Windows Forms
In C#, which type of variable is declared inside a method?
Serial
Private
Static
Local
In the body of a method, which variable does C# use to refer to the current object whose method is being invoked?
that
do
this
call
In the ASP.NET server control, which provides an alternative way of displaying text on web page?
< asp:label >
< asp:button >
< asp:listitem >
In C#, which of the following describes a local variable?
Can be used anywhere in the program
Must accept a class
Represents a class object
Declared within a method
In C#, which of the following is the proper header for a class that intends to use an interface?
class MyClass ; Iface
class MyClass : Iface
class MyClass {IFace}
class MyClass Iface
In which of the following GC Collection mode does the garbage collector determine whether the current time is optimal to reclaim objects?
Forced
Optimized
Concurrent
Parallel
Where are the String class and Char structure found?
System namespace
System.Text namespace
System.Strings namespace
System.Chars namespace
Which of the following defines a delegate?
A means of passing arrays into methods
A class that encapsulates methods
A Washington representative
A substitue for an inherited method
Which of the following describes what this code snippet implies? namespace TestApplication { class HelloWorld {} }
TestApplication class contains the class HelloWorld
TestApplication class contains the namespace HelloWorld
TestApplication namespace contains the class HelloWorld
Compilation error
Which type of block encloses code that could throw an exception?
Exception
Catch
Try
Error
In C#, which code converts a string to lowercase?
string.ToLower();
string.ToLower(string);
ToLower(string);
String = string.ToLower(string);
In C#, which of the following is created from this code? class Test: Form { }
The class Test that inherits the class Form
The class Test : Form
The class Test : Form and the class Test that inherits the class Form
The class Form that inherits the class Test
In ASP.NET, which of the following is the extension of a web user control file?
.asmx
.ascx
.ashx
.aspx
Which of the following defines synchronization?
Delay a thread until there is sufficient memory and work to keep it up
Ensure that two concurrently-executing threads or processes do not execute specific portions of a program at the same time
Make every thread start and end at the same time
Make every thread do the same thing
In C#, which of the following does this code create? String mystring;
A class and a constructor
A class
A constructor
An object
Which of the following actions does an abstract class create?
May extend another class
All of these
May contain constructors
May contain instance variables
Which of the following .NET framework classes can be used for Custom Parallel Partitioning ?
ConcurrentBag<T>
OrderablePartitioner<TSource>
ConcurrentQueue<T>
BlockingCollection<T> Class
Which of the following is not contained in the ThreadPriority enumeration?
Lowest
ThreadPriority enumeration contains all of these.
Belownormal
Highest
Which of the following exceptions is thrown when a member/class lookup results in more than one member/class matching the lookup criteria?
FileNotFoundException
System.Reflection.AmbiguousMatchException
AppDomain.UnhandledException
FormatException
In which of the following Generations does the CLR allocate memory for new objects?
Generation 3
Generation 0
Generation 1
Generation 2
Which type of code is the following? public class A { IEmailSender _emailSender public A(IEmailSender emailSender) { _emailSender = emailSender; } private void SendEmail() { _emailSender.Send(); } }
Inheritance
Dependency injection
Tightly coupled classes
Method overloading
In C#, which of the following describes two StringBuilder objects that contain the same string?
They are two different objects
All of these
They represent the same memory location
They are both changed when a change is made to either
Your Web application, ABCWebApp1, is configured to use Windows Authentication. After granting a specific group NTFS permissions to access a specific file named ABC.doc, you need to ensure that users not belonging to this group cannot access the file. Which of the following should you include to ensure unauthorized access?
Configure the machine.config file to include the <authentication mode="[None]"> element
Configure the Web.config file to include the <identity impersonate="true"/> element
Configure the app.config file to include the <authentication mode="[None]"> element
Configure the machine.config file to include the <identity impersonate="true"/> element
Which of the following often results in an event?
Not an object type
Code used to force a user action
The result of a party
The result of a user action
Which of the following is the first event to be triggered in an .aspx page?
Page.Load
Page.PreRender
Page.Init
Submit Test
Prev Question
ABCd
Next Question
Liked this quiz? Share it with friends:
Share Quiz
Share
WhatsApp
Facebook
Twitter
LinkedIn
Or copy link:
Copy
Link copied to clipboard!
Copy
.NET Skill Assessment
Login to see Skill Score (It's Free)
Your Skill Level:
Poor
Retake Quizzes to improve it
Start Assessment
.NET Skill Assessment
Login to see Skill Score (It's Free)
Your Skill Level:
Poor
Retake Quizzes to improve it
Start Assessment