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

AI và đạo đức người dùng

AI và đạo đức người dùng

9th - 12th Grade

15 Qs

Analisis Data dengan Python

Analisis Data dengan Python

10th Grade

20 Qs

Tugas Latihan Soal Informatika 9

Tugas Latihan Soal Informatika 9

9th - 12th Grade

20 Qs

KELAS 7 BAB 6 ANALISIS DATA C. Pengolahan Data Dasar

KELAS 7 BAB 6 ANALISIS DATA C. Pengolahan Data Dasar

7th Grade - University

20 Qs

LibreOffice Writer Styles Quiz

LibreOffice Writer Styles Quiz

10th Grade - University

15 Qs

Nội Quy môn Tin học

Nội Quy môn Tin học

1st Grade - University

15 Qs

Photoshop test - 1

Photoshop test - 1

10th Grade

20 Qs

QUIZ AK INFORMATIKA KELAS 10

QUIZ AK INFORMATIKA KELAS 10

10th Grade

15 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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?