Ktra TX_tin 10_l2

Ktra TX_tin 10_l2

Professional Development

10 Qs

quiz-placeholder

Similar activities

Flutter_Q1 G4

Flutter_Q1 G4

Professional Development

8 Qs

PHP nulmeting

PHP nulmeting

8th Grade - Professional Development

14 Qs

Dasar Pemrograman

Dasar Pemrograman

Professional Development

7 Qs

Python Final Quiz

Python Final Quiz

Professional Development

13 Qs

PHP QUIZ-2

PHP QUIZ-2

Professional Development

10 Qs

Sequences-2

Sequences-2

Professional Development

10 Qs

Python Training Day-4 Quiz-4

Python Training Day-4 Quiz-4

Professional Development

10 Qs

codePannu  Level 1 Python Course - Week 5 Quiz on Conditional Operators

codePannu Level 1 Python Course - Week 5 Quiz on Conditional Operators

Professional Development

15 Qs

Ktra TX_tin 10_l2

Ktra TX_tin 10_l2

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Vi Thị Chiến

Used 12+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Giá trị của x, y là bao nhiêu khi thực hiện lệnh f(1, 3)

>>> x, y = 3, 4

>>> def f(x, y):

x = x + y

y = y + 2

return x

2,3

3,4

4,5

5,4

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

“Trong Python tất cả các biến khai báo bên trong hàm đều có tính …, không có hiệu lực ở bên … hàm”.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Nếu muốn biến bên ngoài vẫn có tác dụng bên trong hàm thì cần khai báo lại biến này bên trong hàm với từ khoá nào?

global

def

int

out

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của chương trình sau là:

def add(x,y):

print(x+y)

x=15

add(x ,10)

add(x,x)

y=20

add(x,y)

25,35,30

25,30,35

35,30,25

chương trình bị lỗi

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chương trình sau thông báo lỗi gì?

for i in range(10) print(i)

TypeError

NameError

SyntaxError

ValueError

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chương trình sau thông báo lỗi gì?

n = 5

for i in range(n):

prin(t)

Type Error

NameError

SyntaxError

ValueError

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chương trình sau thông báo lỗi gì?

lst = [1, 2, 3, 4, 5]

for i in range(10):

print(lst[i])

ValueError

SyntaxError

NameError

IndexError

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?