What is the function used to display text on the screen in Python?, show(), input(), print(), display(), Which of the following is NOT a valid data type in Python?, boolean, character, string, integer, To get user input in Python, which function is used?, user_input(), read(), get(), input(), What is the result of the following code: `print("Hello" + " World")`?, HelloWorld, Error, Hello World, Hello + World, Which of the following is used for combining variables and text in Python?, combine, join, merge, concatenate, Which symbol is used for comments in Python to explain code to others?, /* */, --, //, #, What does the `int()` function do in Python?, Prints the value of an integer, Converts a string to an integer, Adds two integers together, Converts an integer to a string, Which operator is used for division in Python?, *, -, /, +, Which of the following is a boolean data type in Python?, string, str, 42, TRUE, What is the result of the following code: `print("5" + "3")`?, 8, 53, Error, 5 + 3, Which data type is used to store a sequence of characters in Python?, string, float, boolean, integer, What is the purpose of the `input()` function in Python?, To define a variable, To perform mathematical calculations, To get user input from the keyboard, To display text on the screen, Which of the following is an example of a boolean expression?, 2.5 * 4, True or False, 5 + 3, Hello, World!, What does the `str()` function do in Python?, Displays a message on the screen, Performs string concatenation, Converts a string to an integer, Converts an integer to a string, Which operator is used for exponentiation (to the power of) in Python?, %, **, /, ^, Which of the following is an example of a Python variable name that follows the naming conventions?, variable name, 123variable, my_variable, my-variable, What is the output of the code `print("Hello " * 3)`?, Error, Hello * 2, Hello Hello Hello, 2, What will be the output of the following code? x = 5 y = 3 print(x + y), Error, 5 + 3, 53, 8, What will be the output of the following code? name = "Alice" greeting = "Hello, " + name print(greeting), Error, Hello, name, Alice, Hello, Alice, What will be the output of the following code? num1 = 10 num2 = "5" result = num1 + int(num2) print(result), 10, Error, 15, 5, What will be the output of the following code? print("Hello" * 2), Hello * 2, HelloHello, 2, Error, What will be the output of the following code? x = 5 y = "3" print(x * int(y)), 33333, Error, 15, 53, What will be the output of the following code? num1 = 8 num2 = 2 num3 = num1 / num2 print(num3), 4.0, 2.0, Error, 4, What will be the output of the following code? age = 14 print("I am " + str(age) + " years old."), I am 14 years old., I am years old., I am " + age + "years old., Error, What line of code should replace the blank in the following code to get user input into the variable `name`? name = _____("Enter your name: "), None of these, user_input, get, input, What line of code should be added in the blank space to calculate the sum of `num1` and `num2` and store it in the `total` variable? num1 = 5 num2 = 7 total = _____, num1 + num2, total = num1 + num2, None of these, sum(num1, num2), What line of code should replace the blank space to complete the code, which calculates the square of `num`? num = 4 square = _____, num * num, square(num), none of these, num ** 2, What line of code should replace the blank in the following code to concatenate `first_name` and `last_name` and store the result in `full_name`? first_name = "John" last_name = "Doe" full_name = _____, none of these, first_name + last_name, first_name.concat(last_name), concatenate(first_name, last_name), What line of code should be placed in the blank space to complete the code, which converts the variable `num_str` into an integer? num_str = "42" num = _____(num_str), int, convert, none of these, to_int, What line of code should be added in the blank space to complete the code, which calculates the average of `num1`, `num2`, and `num3` and stores it in the `average` variable? num1 = 8 num2 = 12 num3 = 6 average = _____, num1 + num2 + num3 / 3, average(num1, num2, num3), (num1 + num2 + num3) / 3, none of these
0%
Introduction to Python
Sdílet
Sdílet
podle
Ict2026
Upravit obsah
Tisk
Vložit
Více
Přiřazení
Výsledková tabule/Žebříček
Zobrazit více
Zobrazit méně
Tento žebříček je v současné době soukromý. Klikněte na
Share
chcete-li jej zveřejnit.
Tuto výsledkovou tabuli vypnul majitel zdroje.
Tento žebříček je zakázán, protože vaše možnosti jsou jiné než možnosti vlastníka zdroje.
Možnosti vrácení
Kvíz
je otevřená šablona. Negeneruje skóre pro žebříček.
Vyžaduje se přihlášení.
Vizuální styl
Fonty
Je vyžadováno předplatné
Možnosti
AI vylepšená: Tato aktivita obsahuje obsah generovaný AI.
Víc se uč.
Přepnout šablonu
Zobrazit vše
Otevřené výsledky
Kopírovat odkaz
QR kód
Odstranit
Obnovit automatické uložení:
?