Variabilele a, b, c și d au următoarele valori: int a = 3, b = 5; bool c = true; float d = 2.5;
Care va fi rezultatul acestei instrucțiuni în limbajul C++:
if (c) cout << d; else cout << a;
Test if
Quiz
•
Computers
•
10th Grade
•
Medium
Eugeniu Bortnic
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Variabilele a, b, c și d au următoarele valori: int a = 3, b = 5; bool c = true; float d = 2.5;
Care va fi rezultatul acestei instrucțiuni în limbajul C++:
if (c) cout << d; else cout << a;
2.5
3
5
true
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Variabilele a, b, c și d au următoarele valori: int a = 3, b = 5; bool c = true; float d = 2.5;
Care va fi rezultatul acestei instrucțiuni în limbajul C++:
if (a>b) cout << d; else cout << a;
2.5
2
3
false
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Variabilele a, b, c și d au următoarele valori: int a = 3, b = 5; bool c = true; float d = 2.5;
Care va fi rezultatul acestei instrucțiuni în limbajul C++:
if (a==b) cout << b; else cout << d;
3
2.5
2
true
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Variabilele a, b, c și d au următoarele valori: int a = 3, b = 5; bool c = true; float d = 2.5;
Care va fi rezultatul acestei instrucțiuni în limbajul C++:
if (a!=b) cout << b; else cout << d;
false
2.5
2
5
5.
FILL IN THE BLANK QUESTION
2 mins • 1 pt
Variabilele a, b, c și d au următoarele valori: int a = 3, b = 5; bool c = true; float d = 2.5;
Care va fi rezultatul acestei instrucțiuni în limbajul C++:
if (a>d) cout << b; else cout << a;
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Variabilele a, b, c și d au următoarele valori: int a = 3, b = 5; bool c = true; float d = 2.5;
Care va fi rezultatul acestei instrucțiuni în limbajul C++:
if (a<d) cout << "Da"; else cout << "Nu";
Da
Nu
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variabilele a, b, c și d au următoarele valori: int a = 3, b = 5; bool c = true; float d = 2.5;
Care va fi rezultatul acestei instrucțiuni în limbajul C++:
if (a<b) cout << d; else cout << a;
10 questions
Instrucțiuni repetitive
Quiz
•
9th - 12th Grade
10 questions
Programming with C++
Quiz
•
9th - 12th Grade
6 questions
Tipuri de date real
Quiz
•
10th Grade
10 questions
Coding C++ - X2
Quiz
•
10th Grade
10 questions
Сpp 1_3
Quiz
•
9th - 12th Grade
10 questions
Functions in C++
Quiz
•
9th - 12th Grade
10 questions
Quiz C++ Grade 10
Quiz
•
9th - 12th Grade
12 questions
ПШ_C++_#1
Quiz
•
10th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes
Quiz
•
9th - 12th Grade