Variables and Data Types in C#
שאלות 10
מפתח התשובות מוצג למורים מחוברים.
-
-
-
-
-
Declaring a constant
Which declaration correctly creates a constant named Pi of type double in C#?
constant double Pi = 3.14159;
double const Pi;
const double Pi = 3.14159;
const Pi double = 3.14159;
C# uses a specific keyword to mark a value as unchangeable. The keyword goes before the type, and a constant must be given its value when declared. -
-
Type for exact monetary values
Which C# numeric type is generally preferred for financial calculations that require exact decimal representation?
int
double
decimal
float
Binary floating-point types cannot represent many decimal fractions exactly. Look for the type designed for base-10 precision with a large number of significant digits. -
-
-
פרטים
A test on declaring variables, basic data types and simple operations in the C# language for high school students.
- מקצועות
- c#
- תגיות
- נוסף על ידי AI data types נוסף על ידי AI constants נוסף על ידי AI boolean expressions נוסף על ידי AI operators
- קהל יעד
- תיכון · כיתות י׳–י״א
- רמת קושי
- 6 מתוך 10
- שפה
- אנגלית
- מי יכול לראות
- כולם
- הושלם על ידי AI
- מה שמסומן בניצוץ נוסף על ידי AI.
- נוצר באמצעות AI
- Claude Haiku 5.5
- נוצר
תגובות