C#.NET Multiple choices

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

A decimal indicates...







C# - Data Types
C# is a strongly-typed language. It means we must declare the type of a variable that indicates the kind of values it is going to store, such as integer, float, decimal, text, etc.

Decimal Types: The decimal type is a 128-bit data type suitable for financial and monetary calculations. It has a 28-29 digit Precision. To initialize a decimal variable, use the suffix m or M. Like as, decimal x = 300.5m;

The following declares and initializes variables of different data types.

Example: Variables of Different Data Types

string stringVar = "Hello Slight Book World!!";
int intVar = 420;
float floatVar = 21.2f;
char charVar = 'Z';
bool boolVar = False;

C# mainly categorized data types into two types: Value types and Reference types. Value types include simple types (such as int, float, bool, and char), enum types, struct types, and Nullable value types. Reference types include class types, interface types, delegate types, and array types. 

Next 3 multiple choice(s)


If you want a numeric real literal to be treated as decimal, which suffix to be used?


What is the default boolean value in C#?


What are the pillars of Object-Oriented Programming?