
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?
237
while(a%10==0) {
a=a/10; }
2
while(a%2==0) {
cnt++;
a=a/10; }
2
while(a>9) {
a=a/10; }
4
while(a>0) {
if(a%2==1)cnt++;
a=a/10; }
3
while(a>0) {
if(a%2==0)cnt++;
a=a/10; }
2.
REORDER QUESTION
1 min • 1 pt
Gasiti ordine
while(cin>>a) {
if(a==0) break;
while(a>0) {
s+=a%10;
a/=10; }
int a, cnt=0, s=0;
if(s%2==0) cnt++;
s=0; }
cout << cnt;
3.
MATCH QUESTION
1 min • 1 pt
Gasiti numarul de aparitie.
15
for(i=0; i<10; i++) {
for(j=0; j<5; j++)
cnt++;
}
100
for(i=0; i<5; i++) {
for(j=0; j<5; j++)
for(k=0; k<5; k++)
cnt++;
}
50
for(i=0; i<10; i++) {
for(j=0; j<10; j++)
cnt++;
}
25
for(i=0; i<5; i++) {
for(j=i; j<5; j++)
cnt++;
}
125
for(i=0; i<5; i++) {
for(j=0; 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?
45
for(i=0; i<10; i++) {
for(j=0; j<10; j++)
cout << "*"; }
25
for(i=0; i<5; i++) {
for(j=0; j<5; j++)
cout << "*"; }
100
for(i=0; i<10; i++) {
for(j=0; j<i+1; j++)
cout << "*"; }
15
for(i=0; i<5; i++) {
for(j=0; j<i+1; j++)
cout << "*"; }
50
for(i=0; i<10; i++) {
for(j=0; j<5; 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?