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;
15 questions
ELEMENTE DE BAZA ALE LIMBAJULUI C++
Quiz
•
10th Grade
10 questions
Vectori 1
Quiz
•
9th - 10th Grade
14 questions
C++ - Loops and Random Numbers
Quiz
•
9th - 12th Grade
14 questions
Limbajul de programare C++ ” INSTRUCȚIUNEA IF”
Quiz
•
10th Grade
10 questions
Bài tập trắc nghiệm C++
Quiz
•
3rd - 12th Grade
12 questions
Bab 1.4.2 - Operator Hubungan dan Operator Logikal dlm Struktur
Quiz
•
9th - 12th Grade
12 questions
Informatica 10 Operatori
Quiz
•
10th Grade
10 questions
Q - Functii Siruri de caractere
Quiz
•
9th - 10th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University