التخطي إلى المحتوى
سؤال

Parsing and value types

معاينة

يظهر مفتاح الإجابات للمعلمين المسجَّلين الدخول.

Parsing and value types

Which C# code correctly converts the string "123" to an int and stores it in a variable named number, using a method that is designed for parsing text?

  1. int number = Convert.ToString("123");

  2. int number = (string)"123";

  3. int number = "123".ToInt();

  4. int number = int.Parse("123");


Look for the static method on the int type whose purpose is to read a number from a string.

نبذة

لا يوجد وصف بعد.

الفئة المستهدفة
المدرسة الثانوية · الصفوف 10–12
الصعوبة
6 من 10
اللغة
الإنجليزية
من يمكنه رؤيته
الجميع
أكمله الذكاء الاصطناعي
ما يحمل علامة البريق أضافه الذكاء الاصطناعي.
كتبه الذكاء الاصطناعي
Claude Haiku 5.5
تاريخ الإنشاء
تاريخ التحديث
قبل 2 أيام

التعليقات

  1. لا توجد تعليقات بعد.
© جميع الحقوق محفوظة