What is a correct syntax to output 'Hello World' in Python?, print('Hello World'), echo 'Hello World', printf('Hello World'), cout << 'Hello World', System.out.println('Hello World'), Console.WriteLine('Hello World'), How do you insert COMMENTS in Python code?, // This is a comment, # This is a comment, <!-- This is a comment -->, /* This is a comment */, REM This is a comment, COMMENT This is a comment, Which of the following is a mutable data type in Python?, Tuple, List, String, Integer, Float, Boolean, How do you start a function in Python?, function myFunction(), def myFunction(), create myFunction(), start myFunction(), begin myFunction(), init myFunction(), Which keyword is used for function in Python?, func, define, def, function, declare, create, How do you create a variable with the numeric value 5?, x = 5, int x = 5, x := 5, x <- 5, x == 5, x = 5.0, Which operator is used to multiply numbers in Python?, *, x, ^, %, &, @, Which of the following is a valid variable name in Python?, 1variable, variable_1, variable-1, variable 1, variable.one, variable#1, What is the output of print(2 ** 3)?, 6, 8, 9, 5, 4, 10, Which method can be used to remove any whitespace from both ends of a string?, strip(), trim(), cut(), remove(), delete(), erase(), Which of the following is used to define a block of code in Python?, {}, (), [], Indentation, <>, //, What is the correct file extension for Python files?, .py, .python, .pt, .pyt, .pyth, .p, How do you create a dictionary in Python?, {key: value}, [key: value], (key: value), <key: value>, key: value, key = value, Which of the following is not a Python data type?, Set, Array, List, Tuple, Dictionary, String, Which function is used to get the length of a list in Python?, length(), len(), size(), count(), measure(), getLength(), What is the output of print(10 // 3)?, 3.33, 3, 3.0, 4, 2, 2.5, Which keyword is used to create a class in Python?, class, Class, define, create, object, new, How do you create a set in Python?, set(), {}, [], (), <>, set{}, What is the correct syntax to import a module named 'math'?, import math, include math, require math, use math, load math, attach math, Which of the following is used to handle exceptions in Python?, try/except, catch/throw, handle/error, try/catch, begin/rescue, error/handle.
0%
Python Coding Quiz
Поделиться
Поделиться
Поделиться
от
Tylerl27
Редактировать контент
Печать
Внедрить
Больше
Задания
Таблица лидеров
Показать больше
Показать меньше
Эта таблица лидеров в настоящее время является частной. Нажмите
Поделиться
, чтобы сделать ее общедоступной.
Эта таблица лидеров была отключена владельцем ресурса.
Эта таблица лидеров отключена, так как у вас и у владельца ресурса разные значения параметров.
Варианты отмены изменения
Викторина "Игровое шоу"
— это открытый шаблон. Он не создает баллы для таблицы лидеров.
Требуется вход в систему
Визуальный стиль
Шрифты
Требуется подписка
Параметры
AI Enhanced: Эта активность содержит контент, сгенерированный ИИ.
Подробнее.
Переключить шаблон
Показать все
Дополнительные форматы будут отображаться при выполнении занятия.
)
Открыть результаты
Скопировать ссылку
QR-код
Удалить
Восстановить автоматически сохраненное:
?