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
Zdieľať
Zdieľať
Zdieľať
vytvoril(a)
Tylerl27
Upraviť obsah
Tlač
Vložiť
Viac
Úlohy
Rebríček
Zobraziť viac
Zobraziť menej
Tento rebríček je v súčasnosti súkromný. Kliknite na
Share
, aby bol verejný.
Tento rebríček bol vypnutý vlastníkom prostriedku.
Tento rebríček je vypnutý, pretože vaše možnosti sa líšia od možností vlastníka prostriedku.
Vrátiť možnosti
Televízny kvíz
je šablóna s možnosťou rozšírenia. Nevytvára skóre pre rebríček.
Vyžaduje sa prihlásenie
Vizuálny štýl
Písma
Vyžaduje sa predplatné
Možnosti
AI vylepšená: Táto aktivita obsahuje obsah generovaný AI.
Zistiť viac.
Prepnúť šablónu
Zobraziť všetky
Pri prehrávaní aktivity sa zobrazia ďalšie formáty.
)
Otvorené výsledky
Kopírovať odkaz
QR kód
Odstrániť
Obnoviť automaticky uložené:
?