
Programare cu C++ medie 10
Authored by Ali Cabas
Computers
6th - 8th Grade
Used 17+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MATCH QUESTION
1 min • 1 pt
Daca a=237000
Care se potriveste?
3
while(a>0) {
if(a%2==1)cnt++;
a=a/10; }
2
while(a%2==0) {
cnt++;
a=a/10; }
237
while(a%10==0) {
a=a/10; }
2
while(a>9) {
a=a/10; }
4
while(a>0) {
if(a%2==0)cnt++;
a=a/10; }
2.
REORDER QUESTION
1 min • 1 pt
Gasiti ordine
cout << cnt;
int a, cnt=0, s=0;
while(cin>>a) {
if(a==0) break;
if(s%2==0) cnt++;
s=0; }
while(a>0) {
s+=a%10;
a/=10; }
3.
MATCH QUESTION
1 min • 1 pt
Gasiti numarul de aparitie.
100
for(i=0; i<5; i++) {
for(j=0; j<5; j++)
for(k=0; k<5; k++)
cnt++;
}
125
for(i=0; i<10; i++) {
for(j=0; j<5; j++)
cnt++;
}
25
for(i=0; i<5; i++) {
for(j=0; j<5; j++)
cnt++;
}
15
for(i=0; i<10; i++) {
for(j=0; j<10; j++)
cnt++;
}
50
for(i=0; i<5; i++) {
for(j=i; j<5; j++)
cnt++;
}
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Daca a=120 si b=75
while(a%2==0) a=a/2;
while(b%5==0) b=b/5;
a si b devine?
0 0
5 2
30 15
15 3
5.
DRAG AND DROP QUESTION
1 min • 1 pt
Afisam primele 10 numere fibonacci (1 1 2 3 5 8 13 21 34 55) :
int a=1, b=1, c;
for(int i=0; i< (a) ; i++) {
(b)
(c) a=b; (d)
}
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Daca avem
8 23
1213 445 42146 32322 234234 23 452 1432
Ce afiseza progamul
23 1432
Numere Insuficiente
234234 23
1432 1432
7.
MATCH QUESTION
1 min • 1 pt
Care se potriveste?
15
for(i=0; i<5; i++) {
for(j=0; j<5; j++)
cout << "*"; }
45
for(i=0; i<5; i++) {
for(j=0; j<i+1; j++)
cout << "*"; }
100
for(i=0; i<10; i++) {
for(j=0; j<i+1; j++)
cout << "*"; }
50
for(i=0; i<10; i++) {
for(j=0; j<5; j++)
cout << "*"; }
25
for(i=0; i<10; i++) {
for(j=0; j<10; j++)
cout << "*"; }
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Робот Карел 01
Quiz
•
6th - 7th Grade
15 questions
HTML - pagina de bază și formatarea textului
Quiz
•
8th Grade
10 questions
Computer Lab Rules & Behaviors
Quiz
•
6th - 8th Grade
15 questions
Szövegszerkesztés - Formázások 2
Quiz
•
6th - 7th Grade
12 questions
Подія, обробник події. Графічний інтерфейс. Модуль tkinter.
Quiz
•
8th Grade
10 questions
G8-Excel 1
Quiz
•
8th Grade
10 questions
Bài tập lần 1
Quiz
•
7th Grade
14 questions
2B Examen Bimestre 1
Quiz
•
7th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade