Kiểm tra kiến thức Python

Kiểm tra kiến thức Python

10th Grade

70 Qs

quiz-placeholder

Similar activities

Photosynthesis VS Cellular Respiration

Photosynthesis VS Cellular Respiration

10th Grade

67 Qs

Replication, Transcription, & Translation

Replication, Transcription, & Translation

10th - 12th Grade

70 Qs

Photosynthesis and Cellular Respiration Practice

Photosynthesis and Cellular Respiration Practice

9th - 12th Grade

70 Qs

Bio Ting 4- Bab 12,13,14

Bio Ting 4- Bab 12,13,14

9th - 12th Grade

66 Qs

Energy storing and releasing

Energy storing and releasing

9th - 12th Grade

75 Qs

Cellular Respiration and Fermentation

Cellular Respiration and Fermentation

10th Grade

71 Qs

B - DNA to protein - HS-LS1-1

B - DNA to protein - HS-LS1-1

9th - 12th Grade

70 Qs

Biology pma review

Biology pma review

9th - 12th Grade

75 Qs

Kiểm tra kiến thức Python

Kiểm tra kiến thức Python

Assessment

Quiz

Biology

10th Grade

Medium

Created by

Nguyễn Nhi

Used 5+ times

FREE Resource

70 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 1: Muốn lấy giá trị của biến được lưu lại từ kết quả trong chương trình con thì biến cần được khai báo sau từ khóa nào?

global

real

value

def

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

def PhepNhan(x):

return x * 10

print(PhepNhan(5))

10

Chương trình bị lỗi.

50

5

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 3: Hoàn thành chương trình kiểm tra một số có là số lẻ không:

def chan(n):

          if …..: return True

          else: return ……

n/2==0, True

n%2==1, False

n%2!=1, False

n%2==0, False

4.

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)

SyntaxError

TypeError

NameError

ValueError

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả nào được in ra khi thực hiện các câu lệnh sau:

>>>Def f(x, y):

          Global a

a = x + y

print(a + n)

>>>n = 5

>>>f(4, 3)

7

10

Chương trình bị lỗi.

12

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 6: Giá trị của x là bao nhiêu sau khi biết kết quả là 0:

def tinh(a, b, c):

if(b != 0):

return a+b + c*2

          else: return 0

s = tinh(1, x, 8)

print(s)

1

0

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

: Điền vào '...' hoàn thành phát biểu sau: 'Chương trình chạy không lỗi ngoại lệ nhưng kết quả đưa ra ... Đây là lỗi ... bên trong chương trình.'

sai, lôgic

đúng, Syntax Error

sai, ngoại lệ

đúng, lôgic

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?