
Programare cu C++ nivel medie 6

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Ali Cabas
Used 18+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
if(a/100%10%2==1 && a%100<a/1000)
23017
1151
54215
5502
2.
MATCH QUESTION
1 min • 1 pt
Care potriveste?
while(a>0) {
if(a%2==0 && a%10>m) m=a%10;
a=a/10; }
suma cifrelor pare
while(a>0) {
if(a%2==0) s=s+a%10;
a=a/10; }
numarul de cifre pare
while(a>0) {
if(a%2==0) cnt++;
a=a/10; }
cel mai mic cifra impar
while(a>0) {
if(a%2==1 && a%10<m) m=a%10;
a=a/10; }
cel mai mare cifra par
3.
MATCH QUESTION
1 min • 1 pt
Care potriveste?
a/1000>0
ultima cifra par
a/1000%10%2==0
are cel putin 4 cifre
a%100
numarul obtinut din ultimele 2 cifre
a%2==0
cifra miilor par
4.
REORDER QUESTION
1 min • 1 pt
Gasiti ordine.
else if(a%10==m)
c++;
a=a/10; }
while(a>0) {
if(a%10>m) {
m=a%10;
c=1; }
int n, a, m=0, c=0;
cin >> n;
for(int i=0; i<n; i++) {
cin >> a;
}
cout << m << " " << c;
}
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Ce face programul respectiv?
sterge ultima cifra din numarul a
formeaza un alt numar cu cifre pare
se obtine inversul numarul a
sterge toate cifrele in afara de ultima cifra
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
while(a>0) {
if(a%10<a/10%10)
cout << a%10 << " ";
a=a/10; }
Daca numarul a=325143 ce afiseaza?
3 1 5 2
3 4 2 3
3 1 2
3 1 2 3
7.
DRAG AND DROP QUESTION
1 min • 1 pt
for(int i=0; i<n; i++) {
for(int j=0; j< (a) ; j++) cout << " ";
for(int j=0; j< (b) ; j++) cout << "*";
cout << endl; }
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
SDA Review Questions 21 - 30

Quiz
•
7th Grade
10 questions
Boolean Comparison

Quiz
•
7th - 12th Grade
7 questions
cls a VIIa

Quiz
•
7th Grade
10 questions
HTML

Quiz
•
7th Grade
12 questions
Programare cu C++ nivel incepatori 5

Quiz
•
6th - 8th Grade
10 questions
Programare cu avansat 4

Quiz
•
6th - 8th Grade
12 questions
Web Development

Quiz
•
8th - 10th Grade
6 questions
Revision

Quiz
•
7th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade