Looking for Крос-платформне програмування test answers and solutions? Browse our comprehensive collection of verified answers for Крос-платформне програмування at moodle.chnu.edu.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Вихідний модуль містить код:
class Employee { рrivate int id; private float salary = 20000;
public Employee (int i, float z) {id = i; salary = z; }
public float Salary (int number) {return number;
( *** CSharp 2.0 *** )
( *** CSharp 3.1 *** )
(**CharpBase**)
(**CharpBase**)
(**CharpBase**)
class Program
{
static void Main() {System.Console.Write(_________); }
}
Серед наведених нижче кодів вкажіть код, яким необхідно замінити знаки підкреслення для отримання коректної програми, вирішальної поставлене завдання:
(**CharpBase**)
int s = 1;
int [,] a;
a = new int [,] {{0, 1, 2, 3}, {4, 5, 6, 7}, {8, 9, 10, 11}};
s + = a [1, 1] + a [2, 1]; s + = a [1, 2];
System.Console.Write( "{0} {1} {2} {3}", s, a.GetLength (0), a.GetLength (1), a.Rank);
Вкажіть результат виведення на консоль після спроби запустити програму на компіляцію і виконання:
(**CharpBase**)
(**CharpBase**)
long a = new long ();
ushort b = new ushort ();
System.Console.Write(a == b);
Вкажіть результат виведення на консоль після спроби запустити програму на компіляцію і виконання:
(**CharpBase**)