Programare cu C++ medie 9

Programare cu C++ medie 9

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Ai nhanh hơn For-do

Ai nhanh hơn For-do

5th Grade - University

10 Qs

Java Script 1.6. Цикл for

Java Script 1.6. Цикл for

1st - 12th Grade

10 Qs

Scratch - skrypty kl. 5

Scratch - skrypty kl. 5

7th - 8th Grade

15 Qs

Loops in JavaScript

Loops in JavaScript

6th - 8th Grade

10 Qs

Оператор for - считаем итерации!

Оператор for - считаем итерации!

8th - 9th Grade

8 Qs

JavaScript Basics

JavaScript Basics

6th - 8th Grade

10 Qs

Vòng lặp for

Vòng lặp for

7th Grade - University

10 Qs

Test Cls 7 Sem I

Test Cls 7 Sem I

6th Grade

12 Qs

Programare cu C++ medie 9

Programare cu C++ medie 9

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Ali Cabas

Used 7+ 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)

if(a==0) break;

while(a>0) {

s+=a%10;

a=/10; }

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

s=0; };

cout << cnt;

int a, s=0, cnt=0;

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

57

a%10000/10

10

a/1000*100+a%100

0

a/100%10

105

a/10000+a%10

3157

a%1000

6.

MATCH QUESTION

1 min • 1 pt

Care potriveste daca a=35053

350

while(a>99)

a=a/10;

3

while(a>9)

a=a/10;

3505

while(a%2==1)

a=a/10;

35

while(a%10==3)

a=a/10;

35053

while(a>0) {

nr=nr*10+a%10;

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?