

While loop
Presentation
•
Information Technology (IT)
•
9th - 12th Grade
•
Practice Problem
•
Easy
rps.informatika rps.informatika
Used 5+ times
FREE Resource
15 Slides • 9 Questions
1
2
3
4
5
6
Fill in the Blanks
Koliko puta će se izvršiti naredba unutar petlje WHILE u sljedećoj situaciji...
i=0;
while(i>5){
cout<<i<<endl;
i--;
}
Type answer...
7
Reorder
Složite sastavne dijelove naredbe while od vrha prema dnu
početna vrijednost varijable
naredba WHILE
uvjet
blok naredbi
promjena vrijednosti varijable
8
Drag and Drop
i=
while(i<
cout<<i<<" ";
i+=
9
10
11
12
Multiple Choice
Kako bi izgledala naredba FOR izvedena iz naredbe WHILE u prethodnom primjeru
for(cin>>n;n!=0;n/=2)
for(i=0;i!=0;i++)
for(i=n;i!=0;i/=2)
for(i=n;i!=0;i--)
13
Multiple Choice
Šta radi sljedeći kod
s=0;
cin>>n;
while(n!=0){
s+=n%10;
n/=10;
}
cout<<s;
računa sumu brojeva do broja N
računa sumu cifara broja N
ispisuje ostatke prilikom dijeljenja broja N sa brojem 10
greška u programu
14
15
Fill in the Blanks
Ako u uvjetu naredbe WHILE stavimo 1 tj.
while(1){
blok naredbi;
}
koju naredbu moramo staviti da izađemo iz petlje ...
Type answer...
16
Fill in the Blanks
Šta će biti rezultat naredbe
i=5;
while(0){
cout<<i;
i++;}
cout<<i;
Type answer...
17
Fill in the Blanks
Šta treba upisati u prazno polje da bi se tekst 'Zdravo' ispisao tri puta
int i = 0;
while(i _ 3){
cout<<“Zdravo”<<endl;
i ++ ;
}
Type answer...
18
19
Drag and Drop
20
21
22
23
24
Show answer
Auto Play
Slide 1 / 24
SLIDE
Similar Resources on Wayground
20 questions
Human Population Growth Lesson
Presentation
•
9th - 12th Grade
19 questions
avoir in French
Presentation
•
9th - 12th Grade
19 questions
Ionic Bonds
Presentation
•
9th - 12th Grade
19 questions
Simple, Compound, Complex Sentences
Presentation
•
9th - 12th Grade
18 questions
Simple Present
Presentation
•
9th - 12th Grade
20 questions
Right Triangle Trigonometry
Presentation
•
9th - 12th Grade
20 questions
Coordinate Plane Review
Presentation
•
9th - 12th Grade
20 questions
Linear Equation Review
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
How much do you know about our Portrait of an Eagle?
Quiz
•
10th Grade
10 questions
Fast Food Slogans
Quiz
•
6th - 8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
How much do you know about our Portrait of an Eagle?
Quiz
•
10th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
20 questions
Characteristics of Life
Quiz
•
9th - 10th Grade
20 questions
REGULAR Present tense verbs
Quiz
•
8th - 9th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
10 questions
Translating Algebraic Expressions
Quiz
•
9th Grade
10 questions
Exploring the 4 Major Macromolecules and Their Functions
Interactive video
•
9th - 12th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade