

C++ Part 7
Presentation
•
Computers
•
9th Grade
•
Practice Problem
•
Easy
Iaroslav Rudenco
Used 2+ times
FREE Resource
5 Slides • 5 Questions
1
ТЛ им. И.С. Нечуй - Левицкого
2
Выражение if используется для выполнения некоторого кода при соответствии условиям.
Условие определяет, какое выражение будет выполнено.
Если условие истинно, то выражение в фигурных скобках будет выполнено.
Если условие ложно, то выражение в фигурных скобках просто игнорируется и программа продолжает выполнение после тела оператора if
3
Multiple Choice
Укажите верный синтаксис для оператора if в C++
if (test) { }
if test
IF test
4
Оператор if используется для работы с условиями
Условие, указанное в операторе if не требует точки с запятой
Оператор if проверяет условие (7>4), убеждается, что оно истинно и затем выполняет оператор cout. Если мы поменяет оператор отношения с > на <, то выражение не будет выполнено и ничего не будет выводиться на экран.
5
Fill in the Blanks
Заполните пустые места, чтобы сравнить переменные и вывести на экран "hello!"
int x = 5;
int y = 3;
Type answer...
cout << "hello!";
}
Укажите через пробел.
6
7
Multiple Choice
Какой оператор используется для сравнения?
==
<<
*=
=
8
Оператор не равно вычисляет операнды, определяет равны ли они друг другу. Если операнды не равны, то условие считается истинным.
9
Fill in the Blanks
Заполните пустые места, чтобы сравнить переменные и вывести "not equal" на экран
int x = 10;
int y = 8;
if (x != _ ) {
cout << "not equal";
}
Type answer...
10
Fill in the Blanks
Заполните пустые места
int a = 98;
int b = 76;
if ( _ > b) {
cout << "greatest is" << a << endl;
}
if ( _ > a) {
Type answer...
}
ТЛ им. И.С. Нечуй - Левицкого
Show answer
Auto Play
Slide 1 / 10
SLIDE
Similar Resources on Wayground
8 questions
Standard Form to Scientific Notation
Presentation
•
8th Grade
9 questions
Levels of Organization
Presentation
•
9th Grade
11 questions
ethos pathos logos
Presentation
•
9th Grade
9 questions
Introduction to Linear Functions
Presentation
•
9th Grade
8 questions
Variables and Hypothesis Review
Presentation
•
9th - 10th Grade
9 questions
L02 - Intro to Py - IDE setup
Presentation
•
9th Grade
10 questions
Big Bang theory
Presentation
•
8th - 9th Grade
8 questions
Symmetry
Presentation
•
10th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade