Cấu trúc rẽ nhánh if-elif-else

Cấu trúc rẽ nhánh if-elif-else

11th Grade

10 Qs

quiz-placeholder

Similar activities

PILAS Y COLAS EN C#

PILAS Y COLAS EN C#

11th Grade

10 Qs

Reparación y mantenimiento

Reparación y mantenimiento

11th Grade

10 Qs

Defensive Design/ Robust Coding

Defensive Design/ Robust Coding

9th Grade - University

10 Qs

SQL

SQL

11th Grade

15 Qs

Trắc nghiệm công nghệ 4 thử

Trắc nghiệm công nghệ 4 thử

4th Grade - University

14 Qs

Linguagens de programação HTML/CSS

Linguagens de programação HTML/CSS

11th Grade

10 Qs

Sistema de ecuaciones de 3x3

Sistema de ecuaciones de 3x3

1st - 12th Grade

10 Qs

Parcial Python

Parcial Python

11th Grade

10 Qs

Cấu trúc rẽ nhánh if-elif-else

Cấu trúc rẽ nhánh if-elif-else

Assessment

Quiz

Instructional Technology

11th Grade

Medium

Created by

vinh phan

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Câu lệnh If sẽ thực hiện khi:

<Điều kiện> sai.

<Điều kiện> đúng.

<Điều kiện> bằng 0.

<Điều kiện> khác 0.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Câu lệnh nào sau đây viết đúng:

if a>b:

          print(a)

    else:

          print(b)

if a>b

          print(a)

    else:

          print(b)

if a>b

print(a)

    else 

print(b)

if a>b:

  print(a)

else

    print(b)

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Câu lệnh rẽ nhánh if-else trong chương trình Python có dạng:

if <điều kiện>:

<câu lệnh>

if <điều kiện>:

<câu lệnh 1>

    else

<câu lệnh 2>

if <điều kiện>:

<câu lệnh 1>

    else:

<câu lệnh 2>

if <điều kiện>

<câu lệnh 1>

    else:

<câu lệnh 2>

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Cho đoạn chương trình sau:

a=2; b=3

if a>b:

          a=a*2

else:

          b=b*2

Sau khi thực hiện đoạn chương trình trên giá trị của b là:

4

2

6

Không xác định

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Câu lệnh rẽ nhánh if-elif-else trong chương trình Python có dạng:

if <điều kiện>:

<câu lệnh 1>

    elif <điều kiện 2>

<câu lệnh 1>

else

<câu lệnh 3>

if <điều kiện>:

<câu lệnh 1>

    elif <điều kiện 2>:

<câu lệnh 2>

else

<câu lệnh 3>

if <điều kiện>:

<câu lệnh 1>

    elif <điều kiện 2>:

<câu lệnh 2>

else:

<câu lệnh 3>

if <điều kiện>

<câu lệnh 1>

    elif <điều kiện 2>

<câu lệnh 2>

else

<câu lệnh 3>

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

"Điều kiện else" - Được sử dụng nếu bạn cần in ra câu lệnh khi một ...

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Chọn đáp án đúng cho chỗ trống lần lượt là:

if:

elif:

elif:

elif:

else:

print

if:

elif

elif

elif

else

print

if:

elif:

elif:

else:

elif:

print

if

elif:

elif:

elif:

else:

print

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?

Discover more resources for Instructional Technology