.NET and C# Programming Fundamentals

Test your knowledge of .NET framework, C# language features, ASP.NET web development, and related Microsoft technologies

18 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which language makes the best use of Common Language Runtme(CLR)?

  1. C++
  2. C#
  3. JAVA
  4. VB
Question 2 Multiple Choice (Single Answer)

How is the Nullable variable declaration done?

  1. Nullable<bool> b=null;
  2. bool b=null;
  3. <Nullable> bool b=null;
  4. bool b= <Nullable>;
Question 3 Multiple Choice (Single Answer)

What is the Correct tree structure of an Application in C#?

  1. Namespace>class>manifest>elements
  2. Manifest>class>namespace>elements
  3. Manifest>namespace>class>element
  4. None of these
Question 4 Multiple Choice (Single Answer)

Process of converting a value stored in a variable of one data type to a value of another type is called as?

  1. Data Conversion
  2. Interfacing
  3. Boxing
  4. Casting
Question 5 True/False

C# allows two references pointing to the same object

  1. True
  2. False
Question 6 Multiple Choice (Single Answer)

What are Reference Type in .NET?

  1. String
  2. Object
  3. Both
  4. None of these
Question 7 Multiple Choice (Single Answer)

What happens when you change the web.config file at run time?

  1. Application runs without any change
  2. Application automatically close
  3. Application automatically restart
  4. Cannot change the web.config file at run time
Question 8 Multiple Choice (Single Answer)

Which one is not a valid namespace in .net framework?

  1. System.Data.OleDb
  2. System.Web
  3. System.Data.xml
  4. System.Data.SqlClient
Question 9 Multiple Choice (Single Answer)

What is the difference between Server.Transfer & Response.Redirect

  1. Server.Transfer needs a roundtrip, Response.Redirect does not
  2. Server.Transfer can transfer user between 2 applicaions
  3. Response.Redirect needs roundtrip, Server.Transfer does not
  4. No Difference
Question 10 Multiple Choice (Single Answer)

In which event, controls are fully loaded ?

  1. Page_Init
  2. Page_Load
  3. Control Events
  4. None
Question 11 Multiple Choice (Single Answer)

Select the control which does not have any visible interface

  1. DataList
  2. Repeater
  3. DropDownList
  4. DataGrid
Question 12 Multiple Choice (Single Answer)

How to throw an exception if marshaling encounters an unmappable Unicode character that is converted to an ANSI character?

  1. Set ThrowOnUnmappableChar = True
  2. Set ThrowOnmappableChar = True
  3. Set ThrowOnmappableChar = False
  4. Set ThrowOnUnmappableChar = False
Question 13 Multiple Choice (Single Answer)

WCF can be hosted in

  1. Web Service
  2. VisualStudio Setup
  3. both A and B
  4. IIS
Question 14 Multiple Choice (Single Answer)

Namespace for Unit Testing

  1. Microsoft.Visualstudio.TestTools.UnitTestingFramework
  2. Visualstudio.TestTools.UnitTesting
  3. System.UnitTesting
  4. None of the above
Question 15 Multiple Choice (Single Answer)

What tool is used to manage the GAC ?

  1. GacUtil.exe
  2. RegSvr.exe
  3. GacSvr32.exe
  4. GacMgr.exe
Question 16 True/False

CTS(Common Type System) defines and standardizes the data types to ensure compatibility across all .NET complaint languages.

  1. True
  2. False
Question 17 True/False

An assembly contains the logical structure of assembly component.

  1. True
  2. False
Question 18 True/False

Stack is used to maintain objects on a permanent basis.

  1. True
  2. False