
Q Instructiuni repetitive C++
Authored by Laurentiu Lambrinoc
Computers
9th - 10th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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<<’ ’;
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
10 questions
Image Representation Lesson 2
Quiz
•
9th Grade
10 questions
python
Quiz
•
10th Grade
10 questions
Microsoft Word 2019 - Unit 1
Quiz
•
10th Grade
10 questions
Soạn thảo văn bản Microsoft Word
Quiz
•
1st Grade - University
10 questions
Diagramas de Flujo
Quiz
•
7th - 10th Grade
10 questions
Паскаль
Quiz
•
10th Grade
10 questions
CHƯƠNG TRÌNH CON BT1
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade