Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

python_L1+2

Total questions: 20

Worksheet time: 11mins

Name
Class
Date
1.

if is_sky_blue (a)   True:

    print("It is daytime.")

2.

Który blok kodu jest poprawny?

a)

if is_sky_blue == True:

    print("It is daytime.")

else:

    print("It is night")

b)

if is_sky_blue = True:

    print("It is daytime.")

else:

    print("It is night")

c)

if is_sky_blue = True:

    print("It is daytime.")

elif:

    print("It is night")

d)

if is_sky_blue == True:

    print("It is daytime.")

elif:

    print("It is night")

3.

*

a)

dzielenie

b)

mnożenie

c)

dzielenie nez reszty

d)

stopień

4.

a = "True"

a)

string

b)

bool

c)

float

5.

a = True

a)

string

b)

bool

c)

float

6.

//

a)

dzielenie bez reszty

b)

reszta z dzielenia

c)

dzielenie

7.

%

a)

reszta z dzielenia

b)

dzielenie bez reszty

c)

mnożenie

8.

/

a)

dzielenie

b)

dzielenie bez reszty

c)

reszta z dzielenia

9.

**

a)

mnożenie

b)

stopień

c)

reszta z dzielenia

10.

a = "1"

a)

string

b)

int

c)

float

d)

bool

11.

a = 1

a)

string

b)

int

c)

float

d)

bool

12.

a = 1.0

a)

string

b)

int

c)

bool

d)

float

13.

a = "1.0"

a)

float

b)

int

c)

string

d)

bool

14.

która wersja jest poprawna?

a)

if a > b:

    print("a({a}) > b({b})")

elif a = b:

    print(f"a = b ({a})")

else:

    print(f"b({b}) > a({a})")

b)

if a > b:

    print(f"a({a}) > b({b})")

elif a == b:

    print(f"a = b ({a})")

else:

    print(f"b({b}) > a({a})")

c)

if a > b:

    print("a({a}) > b({b})")

elif a == b:

    print(f"a = b ({a})")

else:

    print(f"b({b}) > a({a})")

d)

if a > b:

    print(f"a({a}) > b({b})")

elif a = b:

    print(f"a = b ({a})")

else:

    print(f"b({b}) > a({a})")

15.

!=

a)

różne od

b)

równe

c)

większe

16.

WYNIK KODU
is_sky_green = False

print(not is_sky_green)

a)

True

b)

False

17.

is_sky_green = False

print(is_sky_green)

a)

True

b)

False

18.

if a > b and a > c:

    print(f"{a} is the biggest number we have.")

elif b > a and b > c:

    print(f"{b} is the biggest number we have.")

else:

    print(f"{c} is the biggest number we have.")

a)

POPRAWNY KOD

b)

NIEPOPRAWNY KOD

19.

if a > b and a > c:

    print(f"{a} is the biggest number we have.")

else b > a and b > c:

    print(f"{b} is the biggest number we have.")

else:

    print(f"{c} is the biggest number we have.")

a)

POPRAWNY KOD

b)

NIEPOPRAWNY KOD

20.

if a > b and a > c:

    print("{a} is the biggest number we have.")

elif b > a and b > c:

    print("{b} is the biggest number we have.")

else:

    print("{c} is the biggest number we have.")

a)

POPRAWNY KOD

b)

NIEPOPRAWNY KOD