ôn tập IF... FOR... WHILE

ôn tập IF... FOR... WHILE

11th Grade

10 Qs

quiz-placeholder

Similar activities

Eines Google

Eines Google

5th Grade - Professional Development

15 Qs

Sound Design

Sound Design

9th - 12th Grade

11 Qs

IPERCONNESSI

IPERCONNESSI

KG - Professional Development

15 Qs

Mobil keren

Mobil keren

1st - 12th Grade

10 Qs

Sway Q&A

Sway Q&A

9th - 12th Grade

10 Qs

KIEM TRA 10P CNTT 10

KIEM TRA 10P CNTT 10

9th - 12th Grade

10 Qs

Sistem Komputer

Sistem Komputer

1st - 12th Grade

10 Qs

Reprezentare filete flanse

Reprezentare filete flanse

10th - 11th Grade

10 Qs

ôn tập IF... FOR... WHILE

ôn tập IF... FOR... WHILE

Assessment

Quiz

Instructional Technology

11th Grade

Practice Problem

Hard

Created by

VÕ VĂN DIỆN

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho biết kết quả đoạn chương trình sau:

for i in range(2,7)

    print(i, end=’ ‘)

23456

2 3 4 5 6

2 3 4 5 6 7

234567

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho biết kết quả đoạn chương trình sau:

i = 0

x = 0

while i < 5:     

    if i % 2 == 0:

        x += 1

    i += 1

print(x)

3

4

5

0

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả nào là output của đoạn code dưới đây?

x = True

y = False

z = False

if not x or y:

     print (1)

elif not x or not y and z:

     print (2)

elif not x or y or not y and x:

     print (3)

else:

     print (4)

2

3

4

1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Sau khi thực hiện đoạn chương trình sau:

x = 20;

if  x>12 : 

    x = 15

    x = x+ 2

else: x = x/2

15

12

17

10

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Xác định câu lệnh đúng trong các câu lệnh sau?

if  a>=b  then  max= a;  else  max=b;

if  a>=b: max= a  else  max= b;

if  a>b : max= a  else:  max=b

if  a>=b : max=a else  max= b

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong NNLT Python, câu lệnh nào sau đây sai khi in ra màn hình các số tự nhiên từ 0..10 trên 1 dòng?

for i in range(0,11,1): print(i,end='')

for i in range(11): print(i,end='')

for i in range(0,11): print(i,end='')

for i in range(11,1): print(i,end='')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh sau cho kết quả là gì?

for i in range(10):

    if i%2==1: print(i,end='')

02468

13579

246810

1357

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

Already have an account?