Test formativ IF

Quiz
•
Computers
•
10th Grade
•
Medium
Elena Frunza
Used 3+ times
FREE Resource
24 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Selectați expresiile adevărate
8 <= 5
(4 + 5) / 2 > -8
6 != 3
2 * (3 + 1) == 3 * 3 - 2 + 4 / 4
7 == 77 / 7
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Selectați răspunsul care corespunde valorii variabilei b la sfârșitul îndeplinirii programului:
int a,b,c;
int main ()
{
a = 3;
if (a <5) b = -5 ; else b = 5;
return 0;
}
-5
5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Selectați răspunsul care corespunde valorii variabilei b la sfârșitul îndeplinirii programului:
int a,b,c;
int main ()
{
a = 2;
if (3* a < 5) b = 2 * a ;
else b = a -2;
return 0;
}
2
4
0
-2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Selectați răspunsul care corespunde valorii variabilei b la sfârșitul îndeplinirii programului:
int a,b,c;
int main ()
{
a = 7;
if (a % 5 < 3) b = a + 3 ; else b = a - 2;
return 0;
}
12
7
5
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Selectați răspunsul care corespunde valorii variabilei b la sfârșitul îndeplinirii programului:
int a,b,c;
int main ()
{
a = 7;
if (a % 3 == 2) b = 2 * a ; else b = a ;
return 0;
}
7
12
12
5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Selectați răspunsul care corespunde valorii variabilei b la sfârșitul îndeplinirii programului:
int a,b,c;
int main ()
{
a = 12;
if (a / 2 > 5) b = a / 2 ; else b = a +1 ;
return 0;
}
11
6
13
7
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Selectați răspunsul care corespunde valorii variabilei c la sfârșitul îndeplinirii programului:
int a,b,c;
int main ()
{
a = 8;
b = 16;
if (a == b / 2) c = a ; else c = b;
return 0;
}
8
12
4
16
Create a free account and access millions of resources
Similar Resources on Wayground
22 questions
IST CodeHS Unit 8 JavaScript Review

Quiz
•
9th - 12th Grade
20 questions
ความรู้พื้นฐาน Python

Quiz
•
10th Grade - University
20 questions
Программирование кобинированный тест

Quiz
•
10th Grade
20 questions
beginning c programing

Quiz
•
10th - 12th Grade
20 questions
Java Conditional Constructs

Quiz
•
9th - 10th Grade
20 questions
Basic Python

Quiz
•
10th - 12th Grade
20 questions
Python (The Basics)

Quiz
•
6th - 10th Grade
20 questions
Python Basics (CodeHS)

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade
20 questions
Understanding Information Processing Cycle

Quiz
•
10th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade