Search Header Logo

Quiz z C++

Authored by Elżbieta Podwyszyńska

Computers

1st Grade

Used 15+ times

Quiz z C++
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jakiego rozszerzenia używa się do plików z kodem źródłowym w C++?

.java

.cpp

.py

.html

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jak deklaruje się zmienną całkowitą w C++?

integer x;

int x;

x = 10;

float x;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jak wyświetlić tekst na ekranie w C++?

print("tekst");

System.out.println("tekst");

cout << "tekst";

echo "tekst";

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Który z poniższych operatorów służy do przypisania wartości?

==

=

+=

!=

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Ile razy wykona się pętla for (int i = 0; i < 5; i++) {}?

4 razy

5 razy

6 razy

0 razy

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jak wygląda podstawowa składnia pętli while w C++?

while (warunek) { instrukcje }

do { instrukcje } while (warunek);

for (warunek) { instrukcje }

loop { instrukcje }

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Co robi poniższy kod? int i = 0; while (i < 3) { cout << i; i++; }

Wypisuje: 012

Wypisuje: 123

Wypisuje: 111

Wypisuje: 000

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?