Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
control statement
:
Content language: Русский
English
Какие строки приведут к ошибке компилляции этого кода если он является частью метода? int k = 1; switch (k) { case 0: //1 case 1: Console.WriteLine("Case 1"); //2 case 2: //3 default: Console.WriteLine("Default"); //4 }
control statement
Что напечатает программа: class Program { static bool SomeMethod() { Console.WriteLine("Method was invoked"); return true; } static void Main(string[] args) { if (true & false & SomeMethod()) { Console.WriteLine("Inside IF operator"); } } }
control statement
Что напечатает следующий код: static bool Method1() { Console.WriteLine("in Method1"); return false; } static bool Method2() { Console.WriteLine("in Method2"); return true; } static void Main(string[] args) { if (Method1() & Method2()) { Console.WriteLine("inside if"); } }
control statement
Что напечатает следующий код: static bool Method1() { Console.WriteLine("in Method1"); return false; } static bool Method2() { Console.WriteLine("in Method2"); return true; } static void Main(string[] args) { if (Method1() && Method2()) { Console.WriteLine("inside if"); } }
control statement
Какое ключевое слово используется для прекращения выполнения конструкций switch, for, while?
control statement
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes