wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python обобщение

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

Операция для деления с остатком в Python

a)

/

b)

divmod()

c)

//

d)

round()

e)

%

2.

Операция для деления нацело в Python

a)
%
b)
<<
c)
**
d)
//
e)
/
3.

Целочисленный тип в Python объявляется как

a)
float
b)
str
c)
bool
d)
int
e)

double

4.

Дробный тип в Python объявляется как

a)
integer
b)
boolean
c)
float
d)
decimal
e)
string
5.

Оператор вывода в Python

a)
print()
b)
show()
c)
output()
d)
display()
e)
echo()
6.

Оператор ввода в Python

a)
read()
b)
scan()
c)
input()
d)
write()
e)
fetch()
7.

Какой оператор используется для возведения в степень в Python?

a)

^

b)

**2

c)

^2

d)

**

e)

//

8.

Как присвоить целочисленное введенное значение переменной Python?

a)

x = str(input())

b)

x = float()

c)

x = input()

d)

x = eval()

e)

x = int(input())

9.

Как присвоить дробное введенное значение переменной Python?

a)

а = int(input())

b)

а = input()

c)

а = float(input())

d)

а = float()

e)

а = str(input())