Se consideră definite trei variabile de tip int: x, y şi z. O expresie C/C++ care are valoarea 1 dacă şi numai dacă x, y şi z au valori identice este:
BAC_Info_Stiinte_01

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Dan Calin
Used 16+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
x==y && x==z
x==y==z
x==y || x==z || y==z
!( x!=y && x!=z)
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Scrieti numărul afişat în urma executării algoritmului dacă pentru n se citeşte valoarea 6
19
20
21
22
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
O expresie C/C++ care are valoarea 1 este:
floor(7)+1==ceil(7)
floor(7.19)==ceil(7.19)
floor(7.19)==floor(7.91)
floor(7.91)==ceil(7.19)
4.
MULTIPLE SELECT QUESTION
3 mins • 1 pt
În secventa alăturată de instructiuni, variabilele i şi j sunt de tip întreg.
for(i=0;i<=4;i++){
for(.....)
cout<<j<<' ';
cout<<endl;
}
Completati zona punctată astfel încât, în urma executării secventei obtinute, să se afişeze pe ecran, în această ordine, numerele de mai jos.
0
1 0
2 1 0
3 2 1 0
4 3 2 1 0
j=0; j<=i, j++
j=i: j>=0; j=j-1
j=0; j<i+1; j=j+1
j=i; j>=0; j--
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Indicati care dintre expresiile C/C++ de mai jos are valoarea 1 dacă şi numai dacă numărul natural memorat în variabila întreagă n este divizibil cu 2 şi cu 7
!( (n%2==1) || (n%7!=0) )
(n%2==0) && (n%7!=0)
(n%2==0) || !(n%7==0)
(n%7==2) && (n%2==7)
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
O expresie C/C++ care are valoarea 1 este:
ceil(5)-1==floor(5)
ceil(5.19)==floor(5.19)
ceil(5.19)==ceil(5.91)
ceil(5.19)==floor(5.91)
7.
MULTIPLE SELECT QUESTION
3 mins • 1 pt
În secventa alăturată de instructiuni, variabilele i şi j sunt de tip întreg.
for(i=0;i<=4;i++){
for(.....)
cout<<j<<' ';
cout<<endl;
}
Completati zona punctată astfel încât, în urma executării secventei obtinute, să se afişeze pe ecran, în această ordine, numerele de mai jos.
4 3 2 1 0
3 2 1 0
2 1 0
1 0
0
j=4-i; j>=0; j=j-1
j=4; j>=0; j--
j=0; j<=i; j++
j=-i+4; j>-1; j--
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Structuri neomogene

Quiz
•
9th - 12th Grade
16 questions
Structuri repetitive în C++

Quiz
•
9th - 12th Grade
17 questions
Expresii logice

Quiz
•
11th Grade
17 questions
Elementele de bază ale limbajului C++

Quiz
•
10th Grade
15 questions
ELEMENTE DE BAZA ALE LIMBAJULUI C++

Quiz
•
10th Grade
18 questions
test Excel

Quiz
•
10th Grade
20 questions
Excel Quiz

Quiz
•
10th Grade
15 questions
Comunicarea pe internet

Quiz
•
1st - 10th Grade
Popular Resources on Quizizz
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
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

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