Care dintre urmatoarele este echivalenta secventei
s=0;
pentru i=1, 100, 1 executa
daca i mod 5=0 atunci s=s+i
sfarsit pentru
Instructiuni repetitive
Quiz
•
Computers
•
9th Grade
•
Hard
Laurentiu Lambrinoc
Used 6+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Care dintre urmatoarele este echivalenta secventei
s=0;
pentru i=1, 100, 1 executa
daca i mod 5=0 atunci s=s+i
sfarsit pentru
s=0
repeta
daca i mod 5=0 atunci s=s+i
pana cand i<=100
s=0
i=0
cat timp i<=100 executa
daca i mod 5=0 atunci s=s+i
i=i+1
sfarsit cat timp
s=0
i=0
cat timp i<=n executa
daca i mod 5=0 atunci s=s+i
i=i+1
sfarsit cat timp
s=0
repeta
daca i mod 5=0 atunci s=s+i
i=i+1
pana cand i<=n
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Ce s-ar afisa in urma executarii secventei de mai jos, daca pentru n ar fi introdusa valoarea 10?
Citeste n
S=0
Pentru i=1, n, 2 executa
s=s+i*i;
Sfarsit pentru
Scrie s
165
0
385
100
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Care dintre urmatoarele sunt instructiuni repetitive?
Repeta <instructiune> pana cand <conditie>
daca <conditie> atunci repeta <instructiune>
cat timp<conditie> repeta<instructiune>
pentru <var>=<valoare_initiala>, <valoare_finala>, <pas> executa <instructiune>
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cu ce pot fi inlocuite punctele de suspensie din urmatorul algoritm pentru a obtine in urma executiei sale suma divizorilor numarului x ?
citeste x;
s=0;
pentru i=1, x DIV 2, 1 execută
...
sfârșit pentru
scrie s
s=s+ x DIV i
daca x mod i<>0 atunci s=s+i
s=s+x MOD i
daca x mod i=0 atunci s=s+i
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Ce valoare va avea n in urma executarii secventei de mai jos?
n=3294
s=0
cat timp n<>0 executa
s=s+n mod 10
n=n div 10
sfarsit cat timp
scrie s
0
18
1
4
9 questions
9B2
Quiz
•
5th - 9th Grade
5 questions
Prezentari Powerpoint
Quiz
•
8th - 10th Grade
10 questions
X_Пон_мас_ариф
Quiz
•
9th - 12th Grade
9 questions
Algoritmi și Date – evaluarea cunoștințelor
Quiz
•
9th Grade
10 questions
Limbajul pseudocod
Quiz
•
6th - 9th Grade
7 questions
Structura_repetitiva_cu_test_final
Quiz
•
6th Grade - University
6 questions
Operatori si expresii
Quiz
•
5th - 9th Grade
10 questions
DIV // & MOD %
Quiz
•
9th - 10th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University