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
Test nr. 3 C++

Quiz
•
10th Grade
20 questions
Întrebări despre Algoritmi

Quiz
•
8th Grade - University
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
18 questions
Limbajul PASCAL

Quiz
•
9th - 10th Grade
20 questions
Algebra booleană

Quiz
•
10th Grade
24 questions
Test formativ IF

Quiz
•
10th Grade
Popular Resources on Quizizz
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
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th 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
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade