.NET and C# Programming Fundamentals
Test your knowledge of .NET framework, C# language features, ASP.NET web development, and related Microsoft technologies
Questions
Which language makes the best use of Common Language Runtme(CLR)?
- C++
- C#
- JAVA
- VB
How is the Nullable variable declaration done?
- Nullable<bool> b=null;
- bool b=null;
- <Nullable> bool b=null;
- bool b= <Nullable>;
What is the Correct tree structure of an Application in C#?
- Namespace>class>manifest>elements
- Manifest>class>namespace>elements
- Manifest>namespace>class>element
- None of these
Process of converting a value stored in a variable of one data type to a value of another type is called as?
- Data Conversion
- Interfacing
- Boxing
- Casting
C# allows two references pointing to the same object
- True
- False
What are Reference Type in .NET?
- String
- Object
- Both
- None of these
What happens when you change the web.config file at run time?
- Application runs without any change
- Application automatically close
- Application automatically restart
- Cannot change the web.config file at run time
Which one is not a valid namespace in .net framework?
- System.Data.OleDb
- System.Web
- System.Data.xml
- System.Data.SqlClient
What is the difference between Server.Transfer & Response.Redirect
- Server.Transfer needs a roundtrip, Response.Redirect does not
- Server.Transfer can transfer user between 2 applicaions
- Response.Redirect needs roundtrip, Server.Transfer does not
- No Difference
In which event, controls are fully loaded ?
- Page_Init
- Page_Load
- Control Events
- None
Select the control which does not have any visible interface
- DataList
- Repeater
- DropDownList
- DataGrid
How to throw an exception if marshaling encounters an unmappable Unicode character that is converted to an ANSI character?
- Set ThrowOnUnmappableChar = True
- Set ThrowOnmappableChar = True
- Set ThrowOnmappableChar = False
- Set ThrowOnUnmappableChar = False
WCF can be hosted in
- Web Service
- VisualStudio Setup
- both A and B
- IIS
Namespace for Unit Testing
- Microsoft.Visualstudio.TestTools.UnitTestingFramework
- Visualstudio.TestTools.UnitTesting
- System.UnitTesting
- None of the above
What tool is used to manage the GAC ?
- GacUtil.exe
- RegSvr.exe
- GacSvr32.exe
- GacMgr.exe
CTS(Common Type System) defines and standardizes the data types to ensure compatibility across all .NET complaint languages.
- True
- False
An assembly contains the logical structure of assembly component.
- True
- False
Stack is used to maintain objects on a permanent basis.
- True
- False