Câu hỏi về Python

Câu hỏi về Python

9th Grade

30 Qs

quiz-placeholder

Similar activities

Beginners_Assessment

Beginners_Assessment

5th - 9th Grade

25 Qs

Kiểm tra Tin 11 cuối học kì 1 2022-2023

Kiểm tra Tin 11 cuối học kì 1 2022-2023

1st - 10th Grade

28 Qs

Python Basics for Grade 9 Students

Python Basics for Grade 9 Students

9th Grade

27 Qs

Maths in GCSE Engineering Y11

Maths in GCSE Engineering Y11

8th - 11th Grade

35 Qs

Number Lines

Number Lines

5th - 11th Grade

26 Qs

EV3 Motion Prgrm

EV3 Motion Prgrm

9th - 11th Grade

32 Qs

Play with Python Lib

Play with Python Lib

KG - Professional Development

25 Qs

WW ll

WW ll

KG - University

35 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?