28.02 C sharp

Quiz
•
Other
•
12th Grade
•
Medium
Gaukharka Marat
Used 14+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Какая строка кода содержит ошибку?
if (a > b)
Console.WriteLine("a больше b");
else if (a < b)
Console.WriteLine("a меньше b");
else
Console.WriteLine("a равно b");
if (a > b)
Console.WriteLine("a больше b");
else if (a < b)
Нет ошибки
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Что будет выведено в результате выполнения следующего кода?
```csharp
for (int i = 0; i < 3; i++)
{
Console.WriteLine(i);
}
0 1 2
1 2 3
0 1 2 3
1 2
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Сколько раз будет выполнен следующий цикл?
int i = 5;
while (i < 8)
{
i++;
}
2
3
4
5
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Какое минимальное количество раз будет выполнен следующий цикл?
int i = 10;
do
{
i++;
} while (i < 5);
0
1
5
10
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Соотнесите вывод программы с ее кодом:
int[] nums = {1, 2, 3};
foreach (var num in nums)
{
Console.WriteLine(num);
}
Выводит числа от 1 до 3 включительно
Выводит числа от 0 до 2 включительно
Выводит одно число 3
Не компилируется
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Как правильно объявить массив целых чисел?
int array[] = new int[5];
int[] array = new int[5];
array<int> = new int[5];
int array = new int[5];
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Какое значение будет в `x` после выполнения следующего кода?
int[] array = {1, 2, 3, 4, 5};
int x = array[2];
1
2
3
4
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Class 12 Part 2

Quiz
•
12th Grade
17 questions
Cicerone

Quiz
•
12th Grade
20 questions
Quiz sobre Semana 1 - Introducción y Operadores en Python

Quiz
•
12th Grade - University
11 questions
How well do you know about technology

Quiz
•
KG - Professional Dev...
12 questions
Quiz 1. Data Structures (OSTIM 2022)

Quiz
•
1st - 12th Grade
15 questions
AP Computer Science A Quarterly Exam

Quiz
•
12th Grade
10 questions
Contract Law

Quiz
•
10th - 12th Grade
10 questions
UKK_2024

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Video Games

Quiz
•
6th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade
20 questions
Parallel lines and transversals

Quiz
•
9th - 12th Grade
9 questions
Geometry and Trigonometry Concepts

Interactive video
•
9th - 12th Grade
10 questions
Angle Relationships with Parallel Lines and a Transversal

Quiz
•
9th - 12th Grade