Ce efect are executarea secventei:
x=1;
while (x<=10)
{
if(x%2 ==1) cout <<x;
else cout<<x-1;
x=x+1;
}
Q Instructiuni repetitive C++
Quiz
•
Computers
•
9th - 10th Grade
•
Hard
Laurentiu Lambrinoc
Used 5+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Ce efect are executarea secventei:
x=1;
while (x<=10)
{
if(x%2 ==1) cout <<x;
else cout<<x-1;
x=x+1;
}
Niciun efect, ar genera eroare
1133557799
12345678910
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Scrieti valoarea lui x, dupa executarea secventei:
for(i=1;i<=5;i++)
x=x+1;
5
6
7
8
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Ce efect are executarea secventei ?
a=5;
if(a%5==0); cout<<"Divizibil prin 5";
else cout<<"Nu e divizibil prin 5";
Nu afiseaza nimic, da eroare
Divizibil prin 5
Nu e divizibil prin 5
4.
FILL IN THE BLANK QUESTION
3 mins • 1 pt
Scrieti programul C++ corespunzator algoritmului de mai jos!
citeşte x (număr natural nenul)
cât timp x>0 execută
citeşte y (număr natural)
dacă x>y atunci scrie x%10
altfel scrie y%10
x=y
sfarsit cat timp
5.
FILL IN THE BLANK QUESTION
3 mins • 1 pt
2. Scrieţi ce afişează secventa urmatoare pentru a=5 şi b=17!
…
cin>> a>>b;
if(a<b) {aux=a;a=b;b=aux;}
for(x=a; x>=b;x=x-1)
if( x%2!=0) cout<< x<<’ ’;
10 questions
Q - Functii Siruri de caractere
Quiz
•
9th - 10th Grade
10 questions
Сpp 1_3
Quiz
•
9th - 12th Grade
10 questions
Kuis Percabangan dan Perulangan
Quiz
•
10th Grade
5 questions
Q - Instructiunea FOR
Quiz
•
9th Grade
10 questions
Test if si for
Quiz
•
10th Grade
10 questions
С++ цикл for
Quiz
•
6th - 9th Grade
10 questions
C++ - PEI
Quiz
•
10th Grade
10 questions
while
Quiz
•
1st - 10th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)
Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
26 questions
June 19th
Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
27 questions
STAAR English 1 Review
Quiz
•
9th Grade