Cum putem sa verificam daca un număr are exact 2 sau 4 cifre?

Programare cu C++ nivel medie 1

Quiz
•
Computers
•
4th - 8th Grade
•
Medium
Ali Cabas
Used 18+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
if(a>9 && a<10000)
if(a>9 && a<100 && a>999 && a<1000)
if((a>9 && a<100) || (a>999 && a<1000))
if(a<10000 || a<100)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cum verificați daca un număr este par cu exact 3 cifre?
if(a%2==0 && a<1000)
if(a%2==0 && a>99)
if(a%2==1 && a>99 && a<1000)
if(a%2==0 && a>99 && a<1000)
3.
REORDER QUESTION
1 min • 1 pt
Programul scris afișează numărul mai mare, găsiți ordine corecta.
int a, b;
else
cout << b;
cin >> a >> b;
if(a>b)
cout << a;
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
if(a>9 && a<100 && a%2==1)
34
154
155
55
5.
MATCH QUESTION
1 min • 1 pt
Care potriveste?
a/10%10
par
a%2==0
ultima cifra
a/100>1
are cel putin 3 cifre
a%10
are o cifra
a<10
penultima cifra
6.
REORDER QUESTION
1 min • 1 pt
Programul respectiv gaseste daca toate numerele sunt, afiseaza da sau nu.
Gasiti ordine.
else
cout << "nu";
cin >>a>>b>>c;
if(a==b && b==c)
cout << "da";
int a, b, c, cnt=0;
7.
MATCH QUESTION
1 min • 1 pt
Care potriveste?
2005
if(a/1000>1 && a%2==1)
2504
if(a/100%10>a%10)
43
if(a<100 && a/10%10%2==0)
2010
if(a/10%10%2==1 && a/1000>1)
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
HTML podstawy

Quiz
•
8th Grade - University
10 questions
Algoritmi

Quiz
•
5th Grade
10 questions
Instructiunea If

Quiz
•
6th Grade
16 questions
Algoritmi V

Quiz
•
5th Grade
15 questions
Hyperlink Tags (HTML)

Quiz
•
6th - 12th Grade
15 questions
Câu lệnh điều kiện

Quiz
•
8th Grade
12 questions
Introducere în Algoritmică/ Flowgoritm

Quiz
•
5th Grade
9 questions
Test Limbajul C++

Quiz
•
7th Grade - University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade