Search Header Logo

ÔN TẬP CUỐI KÌ 2

Authored by Sen Hà

Computers

12th Grade

Used 2+ times

ÔN TẬP CUỐI KÌ 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Sau khi thực hiện lệnh sau, biến s sẽ có kết quả là:

s1 ="3986443"

s2 = ""

for ch in s1:

if int(ch) % 2 == 0:

s2 = s2 + ch

print(s2)

3986443              

8644

39864 

443

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

def Kieu(Number):

return type(Number);

print(Kieu (5.0))

5

fload

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

int

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Hàm func(m,n) được định nghĩa như sau:

def func(m,n):

            return 3*m+n

Giả sử chúng ta thực hiện các lệnh sau:

>>> m= 10

>>>n= 1

>>>print(func(n,m))

Kết quả sẽ in ra số nào?

13

31

0

110

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Sau khi thực hiện đoạn chương trình sau thì giá trị kq là bao nhiêu?

kq=1

def calc(x):

            kq=4*x-1

            return kq

calc(7)

27

7

1

0

5.

MULTIPLE CHOICE QUESTION

20 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):

   a = x + y

    print(a + n)

>>>n = 5

>>>f(2, 3)

5

10

2

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

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Giá trị của a, b là bao nhiêu khi thực hiện lệnh f(2, 5)

>>> a, b = 0, 1

>>> def f(a, b):

   a = a * b

   b = b // 2

   return a + b

10, 2

10, 1              

2, 5

0, 1

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Cho biết kết quả in ra của chương trình sau khi nhập a=9, b=11

s=0

def vd(x,y):

          global s

          i=5

          x=x+i

          y=y+i

          s=x+y

a=int(input())

b=int(input())

vd(a,b)

print(a,b,s)

9 11 30

14 16 30    

14 16    

Không có đáp án đúng

Access all questions and much more by creating a free account

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

Already have an account?