C#.NET Multiple choices


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

What is the difference between uint and int?


 

 

 

 



A


Solution:-

int, uint - 32 bits, or 4 bytes. int can store numbers from negative 2 billion to positive 2 billion, while uint store numbers from 0 to 4 billion. long, ulong - 64 bits, or 8 bytes.

Int means “signed integer” while Uint means “unsigned integer”. Unsigned integers only contain positive numbers (or zero). 

In addition there two alias types: 
'byte' which is the same as uint8 and 'rune' which is the same as int32. 

Generally, if you are working with integers you should just use the int type.




Next 5 multiple choice(s)

1

What is the type of long keyword in C#?

2

The float keyword .net framework type?

3

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

4

A decimal indicates...

5

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

Comments