דילוג לתוכן
שאלה

var keyword

תצוגה מקדימה

מפתח התשובות מוצג למורים מחוברים.

var keyword

Which statement about the var keyword in C# is correct?

  1. var is only allowed for reference types such as string

  2. var variables can be declared without any initial value

  3. var makes a variable dynamically typed, so its type can change at run time

  4. The compiler infers the static type of a var variable from its initializer at compile time


Focus on when the type is determined: is it decided while the program runs, or while the code is compiled from the right-hand side of the declaration?

פרטים

אין תיאור עדיין.

קהל יעד
תיכון · כיתות י׳–י״ב
רמת קושי
6 מתוך 10
שפה
אנגלית
מי יכול לראות
כולם
הושלם על ידי AI
מה שמסומן בניצוץ נוסף על ידי AI.
נוצר באמצעות AI
Claude Haiku 5.5
נוצר
עודכן
אתמול

תגובות

  1. אין תגובות עדיין.
© כל הזכויות שמורות