Câu hỏi về Python

Câu hỏi về Python

9th Grade

30 Qs

quiz-placeholder

Similar activities

List and Numerical Data

List and Numerical Data

6th - 12th Grade

30 Qs

Asesmen Algoritma dan Pemrograman

Asesmen Algoritma dan Pemrograman

9th - 12th Grade

25 Qs

Guess the Song!

Guess the Song!

8th Grade - University

30 Qs

General Knowledge

General Knowledge

KG - Professional Development

25 Qs

Video games

Video games

2nd Grade - University

32 Qs

Python Fundamentals-01

Python Fundamentals-01

5th - 10th Grade

30 Qs

Python. Теория.

Python. Теория.

9th Grade

25 Qs

PK-Test1

PK-Test1

1st Grade - University

30 Qs

Câu hỏi về Python

Câu hỏi về Python

Assessment

Quiz

Other

9th Grade

Easy

Created by

nnm nnm

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result of print(2 ** 3)?

6

8

9

23

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one is used to define a function in Python?

func

define

def

function

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the data type of x = [1, 2, 3]?

Tuple

List

Dictionary

String

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the len() function do?

Returns the memory size of an object

Returns the length of a string or collection

Returns the largest element in a string

Returns the last element of a list

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which keyword is used to exit a loop in Python?

stop

break

exit

end

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result of print("Hello" + "World")?

Hello World

HelloWorld

Hello+World

Error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct way to write a single-line comment in Python?

// This is a comment

/* This is a comment */

# This is a comment

$ This is a comment $

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?