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!
public class One {
public string s; public int n;
public One (string s, int n) {this.s = s; this.n = n;}}
public struct Two {
public string s; public int n;
public Two (string s, int n) {this.s = s; this.n = n;}}
Нехай в клієнтському класі створені об'єкти
One cx = new One ( "Петров", 5), cy = new One ( "Петров", 5), cz = new One ( "Миронов", 4);
Two sx = new Two ( "Петров", 5), sy = new Two ( "Петров", 5), sz = new Two ( "Миронов", 4);
int res = 0;
В результаті виконання фрагмента коду
if (cx == cy) res = 1;
else if (sx.Equals (sy)) res = 5;
cx = cz; sx = sz; cz.n = 3; sz.n = 3;
if (cx.n == 3) res ++;
else if (sx.n == 3) res + = 2;
Яке значення отримає змінна res ?
( *** CSharp 3.1 *** )
( *** CSharp 3.1 *** )
( *** CSharp 3.1 *** )
( *** CSharp 3.1 *** )
public event Festival festival;
В цьому оголошенні Festival - це клас делегат, тому істинними є такі висловлювання:
( *** CSharp 3.1 *** )
( *** CSharp 3.1 *** )
( *** CSharp 3.1 *** )
( *** CSharp 3.1 *** )
( *** CSharp 3.1 *** )
( *** CSharp 3.1 *** )