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
Kopīgot
Kopīgot
Kopīgot
autors:
Tylerl27
Rediģēt saturu
Drukāt
Iegult
Vairāk
Uzdevumus
Līderu saraksts
Rādīt vairāk
Rādīt mazāk
Šī līderu grupa pašlaik ir privāta. Noklikšķiniet uz
Kopīgot
, lai to publiskotu.
Mācību līdzekļa īpašnieks ir atspējojis šo līderu grupu.
Šī līderu grupa ir atspējota, jo jūsu izmantotās iespējas atšķiras no mācību līdzekļa īpašnieka iespējām.
Atjaunot sākotnējās iespējas
Spēļu viktorīna
ir atvērta veidne. Tā neģenerē rezultātus līderu grupai.
Nepieciešams pieteikties
Vizuālais stils
Fonts
Nepieciešams abonements
Iespējas
Uzlabots mākslīgais intelekts: šī darbība satur mākslīgā intelekta ģenerētu saturu.
Apgūt vairāk.
Pārslēgt veidni
Rādīt visus
Atskaņojot aktivitāti, tiks parādīti vairāki formāti.
)
Atvērtie rezultāti
Kopēt saiti
QR kods
Dzēst
Atjaunot automātiski saglabāto:
?