C#.NET Multiple choices


Total available count: 28
Subject - Microsoft Technologies
Subsubject - C#.NET

Which of the following is not a built-in reference type?


 

 

 

 



A


Solution:-

The built-in reference types supported by C# include Object, String, and Dynamic. All fundamental data types, Boolean, Date, Structs, and Enums are examples of value types. Examples of reference types include strings, arrays, objects of classes, etc.

Object:
An object is basically a block of memory that has been allocated and configured according to the blueprint. A program may create many objects of the same class. In an object-oriented language such as C#, a typical program consists of multiple objects interacting dynamically.

String:
A string is an object of type String whose value is text. Internally, the text is stored as a sequential read-only collection of Char objects. There is no null-terminating character at the end of a C# string; therefore a C# string can contain any number of embedded null characters ('').

Dynamic:
C# 4 introduces a new built-in reference type, dynamic. The type is a static type, but an object of type dynamic bypasses static type checking. In most cases, it functions like it has a type object. At compile time, an element that is typed as dynamic is assumed to support any operation.




Next 5 multiple choice(s)

1

What is the difference between uint and int?

2

What is the type of long keyword in C#?

3

The float keyword .net framework type?

4

A float point expression cannot contain the following sets of values...

5

A decimal indicates...

Comments