simple

simple

University

12 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

KG - University

16 Qs

While loop

While loop

3rd Grade - University

9 Qs

Python Quiz

Python Quiz

University

11 Qs

Structure of Java Program

Structure of Java Program

University

10 Qs

CodeTigers Python 101

CodeTigers Python 101

KG - Professional Development

10 Qs

Computer-System Organization Quiz

Computer-System Organization Quiz

University

10 Qs

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

University

15 Qs

Lógica Programação - For, While, Do While

Lógica Programação - For, While, Do While

10th Grade - University

14 Qs

simple

simple

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Shiwen Zhang

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

在 Python 中输出“Hello World”的正确语法是什么?

print("Hello World")  

echo "Hello World"

echo("Hello World");

p("Hello World")

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

如何在 Python 代码中插入注释?

#This is a comment  

/*This is a comment*/

//This is a comment

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

哪一个不是合法的变量名?

my-var

_myvar

my_var

Myvar

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

如何创建一个数值为 5 的变量?

其他两个答案都是正确的  

x = int(5)

x = 5

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Python 文件的正确文件扩展名是什么?


.py

.pyt

.pt

.pyth

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

如何创建一个带有浮点数 2.8 的变量?

其他两个答案都是正确的  

x = float(2.8)

x = 2.8

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

在 Python 中输出变量或对象类型的正确语法是什么?

print(type(x))

print(typeof x)

print(typeof(x))

print(typeOf(x))

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers