Looking for Об'єктно-орієнтоване програмування (2025, С.Д. Приходченко) test answers and solutions? Browse our comprehensive collection of verified answers for Об'єктно-орієнтоване програмування (2025, С.Д. Приходченко) at do.nmu.org.ua.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Який спосіб виклику виключення є коректним?
Що буде виведено на консоль?
public static void Main(string[] args)
{ { int digit = 5; }
Console.WriteLine(digit);
}
Що буде виведено на консоль?
byte firstValue = 200;
byte secondValue = 100;
Console.WriteLine(firstValue + secondValue);
Що буде виведено на консоль?
Console.writeLine("Text" + "
test");
Що буде виведено у результаті виконання програми?
class Program
{ static void Main(string[] args)
{ var a = new A { B = 3 };
Console.Write(a is System.Object);
var o = a as System.Object;
Console.Write(o.B); } }
public class A
{ public int B; }
Де результат дорівнюватиме true, якщо перший рядок:
int a = 1, b = 5; bool some = false;
?
Що буде виведено у результаті виконання програми?
class Program
{ static void Main(string[] args)
{ Console.WriteLine(Average(5, 3, 7));
Console.ReadLine(); }
public static double Average(params int[] values)
{ double sum = 0;
for (int i = 0; i < values.Length; i++) { sum += values[i]; }
return sum/values.Length; } }
Що буде виведено на консоль?
bool isValid = 1;
Console.WriteLine(isValid);