Który fragment kodu jest poprawny:
Praca klasowa C++

Quiz
•
Computers
•
12th Grade
•
Easy

Dawid Pindel
Used 4+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
int a;
cin << a;
int a;
cin >> a;
int a;
cin >> "a"
int a
cin >> a
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Poniższa pętla while:
int licznik = 1;
while( licznik < 5) {
cout << licznik;
licznik ++;
}
wypisze na ekranie monitora:
nie wykona się wcale
cyfry: 1 2 3 4
licznik 1, licznik 2, licznik 3, licznik 4
cyfry: 0 1 2 3 4 5
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Etykieta default w instrukcji switch zadziała tylko wtedy gdy:
gdy przestaje działać pętla for
jeśli wartość wyrażenia nie zgadza się z żadną z wartości przy etykietach case
program chce opuścić instrukcję switch
program musi pobrać dane z zewnętrznej biblioteki
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Operator logiczny lub w C++ to:
AND
OR
&&
||
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Tablica int t[5][10] przechowuje
15 liczb
5 liczb
10 liczb
50 liczb
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Które warunki logiczne w podanych instrukcjach warunkowych są zapisane poprawnie?
if (-10>p>-1)
cout << p;
if k=100 || k=1000
cout << k;
if (w!=0 && s!=0)
cout << w/s;
if (x>-1) && (x<-10)
cout << x;
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Dany jest ciąg instrukcji:
cin >> a >> b;
if (a<0 && b!=0) S=a/b;
else S=a*a;
Instrukcja S=a*a zostanie wykonana dla:
a = -3 i b = -8
a = 0 i b = 0
a = -123 i b = 2
a = -3 i b = 8
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Introduction to C++ 2024/25

Quiz
•
12th Grade
10 questions
Quiz C++ Grade 10

Quiz
•
9th - 12th Grade
7 questions
C++ cz.II

Quiz
•
12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
10 questions
Functions in C++

Quiz
•
9th - 12th Grade
15 questions
Latihan Pemrograman

Quiz
•
12th Grade
11 questions
C++: Бібліотека стандартних шаблонів (STL)

Quiz
•
12th Grade
10 questions
Programming with C++

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade
45 questions
Week 3.5 Review: Set 1

Quiz
•
9th - 12th Grade