Variabila x este de tip întreg și memorează un număr nenul. Indicați expresia C/C++ cu valoarea 1 dacă
2020 este divizor al lui x.
SN 2020 V9
Quiz
•
Computers
•
4th Grade
•
Medium
Catalin Cocosila
Used 4+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
Variabila x este de tip întreg și memorează un număr nenul. Indicați expresia C/C++ cu valoarea 1 dacă
2020 este divizor al lui x.
x/(x/2020)==0
x/(x%2020)==0
x%(x%2020)==0
x%(x/2020)==0
2.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
Variabilele i și j sunt de tip întreg. Indicați expresia care poate înlocui zona punctată astfel încât, în
urma executării secvenței obținute, să se afișeze pe ecran valorile alăturate.
(i/2)*j+(j/2)*i
(i%2)*j+(j%2)*i
(i/2)*i+(j/2)*j
(i%2)*i+(j%2)*j
3.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
Pentru a verifica dacă într-un tablou unidimensional există elementul cu valoarea x=19 se aplică
metoda căutării binare, iar succesiunea de elemente a căror valoare se compară cu x pe parcursul
aplicării metodei este 8, 20, 19. Elementele tabloului pot fi:
(4,8,10,20,15,19,70)
(8,20,19,47,50,70)
(2,5,7,8,19,20,70)
(8,8,20,20,19,19)
4.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
O expresie C/C++ care are valoarea 1 este:
ceil(20)-1==floor(20)
ceil(20.91)==floor(20.19)
ceil(20.19)==ceil(20.91)
ceil(20.19)==floor(20.91)
5.
MULTIPLE CHOICE QUESTION
5 mins • 10 pts
Variabilele x, y, z, w și r sunt de tip întreg, iar r are inițial valoarea 0. Indicați o secvență echivalentă
cu cea de mai jos.
if (x==y) if(z==w) r=1; else r=2; else r=3;
if (x==y && z==w) r=1; else if(x==y && z!=w) r=2; else r=3;
if (x==y || z==w) r=1; else if(x==y || z!=w) r=2; else r=3;
if (x==y && z==w) r=1; else if(x==y && z!=w) r=2; else if(x!=y && z!=w) r=3;
if (x==y || z==w) r=1; else if(x==y || z!=w) r=2; else if(x!=y || z!=w) r=3;
10 questions
Kl. 4_Skróty klawiaturowe
Quiz
•
4th Grade
9 questions
Jak dobrze znająsz MSP?
Quiz
•
1st Grade - University
10 questions
Wielki quiz Mincraft
Quiz
•
3rd - 12th Grade
10 questions
Python Math
Quiz
•
1st - 12th Grade
5 questions
Nie daj się wciągnąć w sieć. O bezpieczeństwie w internecie.
Quiz
•
4th Grade
10 questions
Dbi 2023
Quiz
•
1st - 5th Grade
10 questions
Nowe technologie
Quiz
•
1st - 6th Grade
10 questions
Горячие клавиши Windows
Quiz
•
1st - 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
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
math review
Quiz
•
4th Grade
20 questions
Parts of Speech
Quiz
•
3rd - 6th Grade
20 questions
Fun Trivia
Quiz
•
2nd - 4th Grade
20 questions
Basic multiplication facts
Quiz
•
4th Grade
26 questions
June 19th
Quiz
•
4th - 9th Grade
20 questions
Math Review
Quiz
•
4th Grade
12 questions
Story Elements
Quiz
•
4th Grade