Bài 19: Câu lệnh rẽ nhánh IF

Bài 19: Câu lệnh rẽ nhánh IF

10th Grade

15 Qs

quiz-placeholder

Similar activities

Artificial Intelligence Class X

Artificial Intelligence Class X

10th Grade

20 Qs

UH Berpikir Komputasional

UH Berpikir Komputasional

10th Grade

16 Qs

Sumatif 3_Analisis Data_Informatika Kelas VIII

Sumatif 3_Analisis Data_Informatika Kelas VIII

8th Grade - University

18 Qs

Ôn tập tin học 3_HKII

Ôn tập tin học 3_HKII

3rd Grade - University

20 Qs

TIK (canva)

TIK (canva)

10th Grade

10 Qs

Python

Python

9th - 12th Grade

20 Qs

Quizzi bài 29 Tin học 10

Quizzi bài 29 Tin học 10

10th Grade - University

10 Qs

Kiểm tra nhanh lớp 10

Kiểm tra nhanh lớp 10

10th Grade - University

10 Qs

Bài 19: Câu lệnh rẽ nhánh IF

Bài 19: Câu lệnh rẽ nhánh IF

Assessment

Quiz

Information Technology (IT)

10th Grade

Practice Problem

Easy

Created by

Trang Huệ

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Trong chương trình phân loại điểm như sau, nếu "diem = 7.5", kết quả là gì?

Khá

Giỏi

Xuất sắc

Trung bình

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Nếu muốn kiểm tra hai điều kiện cùng đúng trong câu lệnh if, ta dùng phép toán nào?

and

or

not

xor

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh if x % 2 == 0 and x > 0: nghĩa là gì?

X là số lẻ

X là số chẵn dương

X là số âm

X lớn hơn 2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Đoạn mã sau in ra gì?

Không in gì

Lỗi cú pháp

Âm

Dương

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sau đây là hợp lệ để phân loại học sinh theo điểm?

if diem > 9 then "Xuất sắc"

if diem > 9 print "Xuất sắc"

if diem >= 9: print("Xuất sắc")

if diem => 9: print("Xuất sắc")

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào kiểm tra x là số dương?

if x > 0:

if x = 0:

if x < 0:

if x != 0:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào dưới đây là đúng khi kiểm tra biến x không phải là số âm và không chia hết cho 3?

if x >= 0 and x % 3 != 0:

if x > 0 or x % 3 != 0:

Errorif not(x < 0 or x % 3 == 0):

if x >= 0 and x % 3 == 0:

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?