Kiểm Tra Cấu Trúc Rẽ Nhánh Python

Kiểm Tra Cấu Trúc Rẽ Nhánh Python

10th Grade

10 Qs

quiz-placeholder

Similar activities

Quiz Assesmen Awal "Perangkat Keras"

Quiz Assesmen Awal "Perangkat Keras"

7th Grade - University

10 Qs

Pemrograman Terstruktur Semester 2 (1) Fungsi

Pemrograman Terstruktur Semester 2 (1) Fungsi

10th Grade

15 Qs

Pseudocode

Pseudocode

10th Grade

10 Qs

Computer Lab Rules & Consequences

Computer Lab Rules & Consequences

9th - 12th Grade

10 Qs

Exploring Loops in Scratch

Exploring Loops in Scratch

5th Grade - University

10 Qs

Câu lệnh rẽ nhánh

Câu lệnh rẽ nhánh

10th Grade

10 Qs

Excel Funksiyalari Bo'yicha Savollar

Excel Funksiyalari Bo'yicha Savollar

10th Grade

15 Qs

P6 phising

P6 phising

6th Grade - University

10 Qs

Kiểm Tra Cấu Trúc Rẽ Nhánh Python

Kiểm Tra Cấu Trúc Rẽ Nhánh Python

Assessment

Quiz

Information Technology (IT)

10th Grade

Practice Problem

Hard

Created by

Minht Phy

Used 2+ 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

Câu lệnh nào dùng để kiểm tra một điều kiện trong Python?

switch

if

test

check

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cặp từ khóa nào thường đi với nhau trong cấu trúc rẽ nhánh hai nhánh?

if - elif

elif - else

if - else

else - if

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn mã: x=7; if x>5: print("Lớn hơn 5") là gì?

Không in gì

Báo lỗi

In ra: Lớn hơn 5

In ra: 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, từ khóa nào dùng để kiểm tra nhiều điều kiện liên tiếp?

while

elif

elseif

for

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phát biểu nào sau đây là đúng?

if luôn phải đi với else

Python không hỗ trợ rẽ nhánh

Có thể dùng if mà không else

if và else là bắt buộc

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả đoạn mã: a=3; if a%2==0: print("Chẵn") else: print("Lẻ") là gì?

In ra: Chẵn

In ra: Lẻ

Không in gì

Lỗi do thiếu dấu :

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chọn đoạn mã đúng cú pháp trong Python

if (x > 5) then print("Lớn")

if x > 5: print("Lớn")

if x > 5 then: print("Lớn")

if x > 5 then print("Lớn")

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?