Font size
WorksheetsPython1
Total questions: 56
Worksheet time: 1hrs 4mins
Python language was developed in what year?
1985
2001
1991
1820
Какой язык программирования ты учил последние полгода?
Python
Delphi
C/C++
PHP
Для вывода сообщений на екран консоли используеться функция:
input()
print()
int()
string()
Для преоброзования даных в число испульзуется функция:
string()
print()
input()
int()
Для преоброзования даных в текст используется функция:
string()
input()
print()
int()
Для развлетвения используется:
if
while
for
def
Перед названием функции должно быть:
def
for
if
while
Для цикла используют:
if
while
def
class
Для создания класса используют ключевое слово:
for
class
if
while
> – это следующий знак:
больше
меньше
больше или равно
меньше или равно
< – это следующий знак:
больше
меньше
больше или равно
меньше или равно
Что будет выведено на экран?
42 + 5
42
47
5
Что будет выведено на экран?
You are a Rodion! I don't know you!
You are a stranger! I don't know you!
Hello, Kyrylo!
Hello, Rodion!
Что будет выведено на экран?
42 + 5
42
Mamkin hatzker!
Rodion
Символ переходан на новую строку
\v
\t
\n
\r
Оператор вывода -
write
input
read
Оператор ввода -
input
read
write
Ветвление начинается со слова:
while
for
if
elif
Где правильно записан оператор ввода целого числа 3 в переменную a?
a = int(input(3))
a = float(input(3))
int(input(a))
a = int(input())
Какие операторы выведут 123?
print(123)
print('123')
print(12, 3, sep='"")
print(1, 2, 3)
Какие циклы выполнятся 5 раз?
for i in range(5):
for i in range(0, 5):
for i in range(1, 5):
for i in range(0, 10, 2):
Чему будет равно значение переменной s после выполнения цикла?
-30
40
0
70
Что выведет эта программа?
1 2 3 4 5 6 7 8 9 10
2 4 6 8 10
4 6 8 10 12
2 4 6 8 10 12 14 16 18 20
Что это?
Полное ветвление
Неполное ветвление
Каскадное ветвление
Структурное ветвление
Какой код записан без ошибки?
What is the Python built-in function used to display numbers and text on the screen?
input
output
command
If you want to create an empty list called colours in Python, which of the following is correct?
colours = [ ]
colours = ( )
colours = { }
colours = <>
Each item in a list has an index. What is the first index in a Python list?
0
1
a
A
What will the output be from the following code?
print(3+4)
3+4
7
SyntaxError
print(3+4)
What would this print?
What will the output be from the following Python code?
Print("Hello world!")
NameError
Hello world!
"Hello world"
Print(Hello world!)
What will the output be from the following Python code?
print(9/3)
3
3.0
9/3
SyntaxError
What will the output be from the following Python code?
print(Hello world!)
Hello world!
SyntaxError
Hello world
print(Hello world!)
What is the Python built-in function to converts a number to a string?
str()
int()
parseInt()
convert
Which of these is correct Python conditional statement?
IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":
