.NET FRAMEWORK, ASP.NET, C# BASICS Online Test

What’s the .NET collection class that allows an element to be accessed using a unique key?
SortedListClass
HashTableClass
CollectionBase
Stack
Queue
Which of the following is true about read only variables?
can be allocated at compile time
can be allocated at runtime
declaration and initialization can be separated
all of the above
Defining two methods with the same name but with different parameters is called
Loading
Overloading
Encapsulation
Inheritance
Difference between Convert and Parse methods?
Convert converts the values, Parse is for parsing.
Both are Same
Convert allows null values, Parse cannot
None of the above
Default return type of an Event is
String
Integer
Events don't have any return type
None of above
Convert.ToString() and ToString() has main difference:
ToString() handle null values but Convert.ToString() don't
Convert.ToString() handle null values but ToString() don't
ToString() output as per format supplied
Convert.ToString() only handle null values
How does assembly versioning in .NET prevent DLL Hell?
The runtime checks to see that only one version of an assembly is on the machine at any one time.
.NET allows assemblies to specify the name AND the version of any assemblies they need to run.
The compiler offers compile time checking for backward compatibility.
It doesn’t
What is a delegate?
A light weight thread or process that can call a single method.
A reference to an object in a different process.
An inter-process message channel.
A strongly typed function pointer.
What is a satellite Assembly?
A peripheral assembly designed to monitor permissions requests from an application.
Any DLL file used by an EXE file.
An assembly designed to alter the appearance or ‘skin’ of an application.
An assembly containing localized resources for another assembly.
What is boxing in .NET?
Encapsulating an object in a value type.
Encapsulating a copy of an object in a value type.
Encapsulating a value type in an object.
Encapsulating a copy of a value type in an object.
The C# keyword ‘int’ maps to which .NET type?
System.Int16
System.Int32
System.Int64
System.Int128
System.Int256
What is the difference between Server.Transfer and Response.Redirect?
Response.Redirect is used to post a form to another page.Server.Transfer is used to redirect the user to another page or site.
Server.Transfer is used to post a form to another page. Response.Redirect is used to redirect the user to another page or site.
Server.Transfer is used to get a form from another page. Response.Redirect is used to redirect the user to same page or site.
Answer 2 and Answer 3
What data type does the RangeValidator control support?
Integer,String and Date.
Integer and String only
Only String
Only Integer
In the URL listed below, what does the string (nav45m672ren60vizat) represent? http://server.com/(nav45m672ren60vizat)/page.aspx
CookieID
connectionStringID
DatabaseID
ApplicationID
SessionID
Which one of the following object oriented techniques allows you to make changes to your code without impacting calling classes
Interface
Inheritance
Polymorphism
Abstraction
Encapsulation
Can we overwrite one web.config file with another web.config file in an ASP.NET application?
Yes
No
What is the name of the Web page property that you can query to determine that a Web page is being requested without data being submitted?
FirstGet
Initialized
IncludesData
IsPostBack
What method must be overridden in a custom control?
The Build() method
The Control_Build() method
The Render() method
The default constructor
How do you explicitly kill a user session?
Session.Close( )
Session.Discard( )
Session.Abandon( )
Session.End( )
How many web.config files can be there in an ASP.NET application?
Only One
Only Two
More than One
Upto 10
Join the .NETCommunity
Description:

Contains .net framework, asp.net and c# basics logical questions.

Discussion

Kishan Lohar

Awesome Way of Learning

3016 days 23 hours 39 minutes ago

Sushil

Nice i like it........

3082 days 3 hours 47 minutes ago

Sudhakar

good one

3105 days 15 hours 41 minutes ago

Debojyoti Saha

Nice ..:)

3160 days 5 hours 44 minutes ago

Nandan Basak

Grate

3196 days 2 hours 14 minutes ago

krish

Nice

3196 days 4 hours 50 minutes ago

MAnikandan v

BY
mani

This very useful thanks

3956 days 20 hours 43 minutes ago

venkat

good questions.nice collection

3990 days 1 hours 29 minutes ago

amaladevi

is too nice to remember all those things

4040 days 8 hours 43 minutes ago

navin

its so helpful

4107 days 4 hours 54 minutes ago

Harjeet Singh
Microsoft .NET technologies consultant
User
1 Member Recommends
166 Followers

Your Facebook Friends on WizIQ

More Tests By Author

ASP.NET INTERVIEW QUESTION ANSWERS QUIZ (BASIC + ADVANCE )
20 Questions | 26473 Attempts

ASP.NET question answers test
10 Questions | 11315 Attempts