C# Data Types

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

What is the default value of a char?

'\0'

What is the minimum value of a sbyte?

-128

What is the value range of a sbyte?

-128 to 127

What is the value range of an int?

-2,147,483,648 to 2,147,483,647

What is the value range of a short?

-32,768 to 32,767

What is the value range of a long?

-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

What is the default value of a byte?

0

What is the value range of a ulong?

0 to 18,446,744,073,709,551,615

What is the range of values for a byte?

0 to 255

What is the value range of a uint?

0 to 4,294,967,295

What is the value range of a ushort?

0 to 65,535

What is the default value of a double?

0.0D

What is the default value of a float?

0.0F

What is the default value of a long?

0L

What is the default value of a decimal?

0M

What is the size of a byte?

1 Byte

What is the maximum value of a sbyte?

127

How many bits and bytes does a decimal have?

128 bits / 16 bytes

What is the amount of precision a double has?

15-17 digits

What is the size in bits of a char?

16 bits

What kinds of values can a char hold?

16-bit Unicode Characters

What is the size of a bool?

2 Bytes

What is the size of a short?

2 Bytes

What is the level of precision a decimal have?

28-29 digits

What is the size in bits of a uint?

32 bits

What is the size of float in bits and bytes?

32-bits / 4 bytes

What is the size of an int?

4 Bytes

What is the amount of precision a float has?

6-9 digits

What is the size in bits of a ulong?

64 bits

What is the size in bits and bytes of a double?

64 bits / 8 bytes

What is the size of a long?

8 Bytes

What is the difference between a short and a ushort?

A short is a signed 16-bit integer with values between -32,768 to 32,767. A ushort is a unsigned 16-bit integer with values between 0 to 65,535.

What data type is best used for financial and monetary calculations?

Decimal

What is the default value of a bool?

False

What is another name of a short?

Signed 16-Bit Integer

What is the characteristics of a sbyte?

Size: 1 Byte Values: -128 to 127 Signed 8-bit Integer Default Value: 0

What are the characteristics of a byte?

Size: 1 Byte Values: 0 to 255 Unsigned 8-bit integer Default Value: 0

What are the characteristics of a decimal?

Size: 16 Bytes Precision: 28-29 digits 128-bit floating point type Default value: 0M

What is the characteristics of a GUID?

Size: 16 Bytes Used to create a unique identifier that can be used across all computers and networks.

What are the characteristics of a char?

Size: 2 Bytes Value: A 16-bit Unicode Character Default Value: '\0'

What are the characteristics of a short?

Size: 2 Bytes Values: -32,768 to 32,767 Signed 16-bit Integer Default Value: 0

What are the characteristics of a ushort?

Size: 2 Bytes Values: 0 to 65,535 Unsigned 16-Bit Integer Default Value: 0

What are the characteristics of a bool?

Size: 2 Bytes Values: True or False Default Value: False

What are the characteristics of a float?

Size: 4 Bytes Precision: 6-9 digits 32-bit floating-point type Default value: 0.0F

What are the characteristics of an int?

Size: 4 Bytes Values: -2,147,483,648 to 2,147,483,647 Signed 32-Bit Integer Default Value: 0

What are the characteristics of a uint?

Size: 4 Bytes Values: 0 to 4,294,967,295 Unsigned 32-Bit Integer Default Value: 0

What are the characteristics of a long?

Size: 8 Bytes Values: -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 Signed 64-bit Integer Default Value: 0L

What are the characteristics of a ulong?

Size: 8 Bytes Values: 0 to 18,446,744,073,709,551,615 Unsigned 64-bit integer Default Value: 0L

What are the characteristics of a double?

Size: 8 bytes Precision: 15-17 digits 64-bit floating-point type Default Value: 0.0D

What are structs used for?

To encapsulate small groups of related variables.

What is another name of a ulong?

Unsigned 64-bit integer

What are the approved types for an enum?

byte, sbyte, short, ushort, int, uint, long, or ulong.

What is the default type of each element in an enum?

int


Set pelajaran terkait

Chapter 9 Quiz - Supply Management

View Set

بيتر ميلاد : شرح وحدات اللغة الأنجليزية 3ث

View Set

2401AHS Therapeutic Exercise : Neuromuscular Viva

View Set

Week 3 Triage Practice Questions (Mandy)

View Set