
PETLE 2 KLASA TECHNIKUM

Assessment
•
Quizizz MTI
•
Computers
•
10th Grade
•
3 plays
•
Medium
Student preview

10 questions
Show all answers
1.
FILL IN THE BLANK
3 mins • 1 pt
// 1. Ile razy wypisze się "Wow"?
for (let i = 0; i < 10; i++) {
if (i % 3 === 0) continue;
console.log("Wow");
}
2.
FILL IN THE BLANK
3 mins • 1 pt
// 2. Jaki będzie wynik?
let sum = 0;
for (let i = 10; i > 0; i--) {
if (i % 2 === 0) {
sum -= i;
} else {
sum += i;
}
}
console.log(sum);
3.
FILL IN THE BLANK
3 mins • 2 pts
// 3. Co zostanie wypisane?
let a = 0;
for (let i = 1; i <= 5; i++) {
for (let j = 1; j <= i; j++) {
a++;
}
}
console.log(a);
4.
FILL IN THE BLANK
3 mins • 2 pts
// 4. Jaka liczba zostanie wypisana?
let count = 0;
for (let i = 2; i <= 32; i *= 2) {
count++;
}
console.log(count);
5.
FILL IN THE BLANK
3 mins • 2 pts
// 5. Co wypisze ten kod?
let n = 0;
for (let i = 0; i < 5; i++) {
if (i === 3) break;
n += i;
}
console.log(n);
6.
FILL IN THE BLANK
3 mins • 3 pts
// 6. CO ZOSTANIE WYPISANE W KONSOLI?
let i = 0;
while (i < 20) {
i += 7;
}
console.log("A" + i);
7.
FILL IN THE BLANK
3 mins • 2 pts
// 7. Jaki będzie wynik końcowy?
let res = 1;
for (let i = 1; i <= 3; i++) {
res += res * i;
}
console.log(res);
8.
FILL IN THE BLANK
3 mins • 1 pt
// 8. Co wypisze pętla?
let out = "";
for (let i = 5; i > 0; i--) {
out += i % 2 === 0 ? "E" : "O";
}
console.log(out);
9.
FILL IN THE BLANK
3 mins • 1 pt
// 9. Ile razy wypisze się "YES"?
for (let i = 0; i < 10; i++) {
if (i % 2 === 0 && i % 3 === 0) {
console.log("YES");
}
}
10.
FILL IN THE BLANK
3 mins • 1 pt
// 10. Co zostanie wypisane w konsoli?
let txt = "";
for (let i = 1; i <= 5; i++) {
if (i === 3) continue;
txt += i;
}
console.log(txt);
Explore all questions with a free account
Similar Resources on Quizizz
Conditional Statements JavaScript

•
8th - 12th Grade
JavaScript#1

•
9th - 12th Grade
Javascript Quiz 1

•
10th - 12th Grade
Básicas de JS

•
10th Grade
Introducción Arreglos JS II

•
10th Grade
Unit 6-Lesson 18: Assessment Day

•
9th - 12th Grade
Unit3 JavaScript Basics Quiz

•
10th Grade
Basics of Javascript

•
9th - 12th Grade
Popular Resources on Quizizz
STAAR reading review

•
4th - 5th Grade
7th STAAR Reading Review

•
7th Grade
STAAR Reading Review

•
4th - 7th Grade
STAAR reading vocabulary

•
4th - 5th Grade
STAAR Reading Review

•
3rd - 5th Grade
Reading STAAR Review

•
4th Grade
7th grade STAAR Reading Review

•
7th Grade
Revising and Editing

•
4th Grade