Programare cu C++ medie 9

Programare cu C++ medie 9

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Массивы в C++: ввод/вывод

Массивы в C++: ввод/вывод

6th - 8th Grade

11 Qs

C++ While Loops

C++ While Loops

6th - 8th Grade

15 Qs

C++ References

C++ References

6th - 12th Grade

12 Qs

С++ цикл for

С++ цикл for

6th - 9th Grade

10 Qs

Test vectori Cls 8

Test vectori Cls 8

8th Grade

9 Qs

BÀI THỰC HÀNH 2

BÀI THỰC HÀNH 2

7th - 8th Grade

13 Qs

C++ Functions

C++ Functions

6th - 8th Grade

11 Qs

Вспоминаем условный оператор

Вспоминаем условный оператор

8th - 10th Grade

10 Qs

Programare cu C++ medie 9

Programare cu C++ medie 9

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Ali Cabas

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

for(int i=0; i<100; i++) {

if(i%2==0) continue;

else cout << "*"; }

Cate * afiseaza?

100

0

1

50

2.

REORDER QUESTION

1 min • 1 pt

Gasiti ordine

while(cin>>a)

int a, s=0, cnt=0;

if(s%2==0) cnt++;

s=0; };

cout << cnt;

if(a==0) break;

while(a>0) {

s+=a%10;

a=/10; }

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

if( (a%2==0 && a%3==0) || (a%5==1 && a>99 && a<1000) )

375

121

76

3176

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

while(a>9) {

ca=a; s=0;

while(ca>0){

s+=(ca%10)*(ca%10);

ca=ca/10; }

a=s; }

cout << a;

Ce afiseaza daca a=89

1

145

4

20

5.

MATCH QUESTION

1 min • 1 pt

Daca a=31057

0

a/1000*100+a%100

3157

a/100%10

105

a%10000/10

10

a/10000+a%10

57

a%1000

6.

MATCH QUESTION

1 min • 1 pt

Care potriveste daca a=35053

3

while(a>0) {

nr=nr*10+a%10;

a=a/10; }

3505

while(a%10==3)

a=a/10;

35

while(a>99)

a=a/10;

350

while(a%2==1)

a=a/10;

35053

while(a>9)

a=a/10;

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

for(int i=0; i<100; i++) {

if(i%2==1) break;

else cout << "*"; }

50

100

1

0

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?