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
共享
共享
由
Ict2026
编辑内容
保存
喜欢
打印
嵌入
更多
作业
排行榜
显示更多
显示更少
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
随堂测验
是一个开放式模板。它不会为排行榜生成分数。
需要登录
视觉风格
字体
需要订阅
选项
更像是这样
Numbers, Place Value, and Rounding intro quiz
由
Helcolclough
随堂测验
9
Numbers - 1 to 15
由
Miriamjoi
随堂测验
12
Numbers - 1 to 10
由
Anacarolinamarx
拼字游戏
20
AS1 - Welcome - Numbers - How many?
由
Stoqui
开箱游戏
6
Numbers: How many?
由
Javieraperez1
寻找匹配项
17
Numbers - 1 to 20
由
Paola357
匹配游戏
10
***Numbers 1 to 20***
由
Teamenglishland
随机卡
27
Comparing Numbers Quiz Year 1
由
Missenriquez
随堂测验
9
AI增强版:本活动包含AI生成的内容。
了解更多信息。
切换模板
显示所有
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?