Kiểm tra kiến thức Python

Kiểm tra kiến thức Python

10th Grade

70 Qs

quiz-placeholder

Similar activities

2020 Fall Semester Exam

2020 Fall Semester Exam

9th - 12th Grade

65 Qs

Biology Semester 1 Final Review

Biology Semester 1 Final Review

9th - 10th Grade

73 Qs

Human Impacts on the Environment

Human Impacts on the Environment

9th - 11th Grade

67 Qs

Plant Science Practice Test

Plant Science Practice Test

10th - 11th Grade

65 Qs

Anatomy and Physiology Midterm Review

Anatomy and Physiology Midterm Review

9th Grade - University

74 Qs

B4 AQA Bioenergetics

B4 AQA Bioenergetics

KG - 12th Grade

67 Qs

ÔN TẬP KTGKY I BÀI 1,2,3,4,5,6

ÔN TẬP KTGKY I BÀI 1,2,3,4,5,6

10th Grade

65 Qs

Plants, Photosynthesis & Respiration

Plants, Photosynthesis & Respiration

9th - 12th Grade

65 Qs

Kiểm tra kiến thức Python

Kiểm tra kiến thức Python

Assessment

Quiz

Biology

10th Grade

Practice Problem

Medium

Created by

Nguyễn Nhi

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?