Search Header Logo

TRẮC NGHIỆM PYTHON

Authored by Nguyen B2111314

Computers

9th - 12th Grade

Used 8+ times

TRẮC NGHIỆM PYTHON
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khai báo thư viện ta sử dụng từ khóa nào?

uses

import

include

attach

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong NNLT Python, phép toán chia lấy phần nguyên là:

div

mod

//

%

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong NNLT Python, cấu trúc rẽ nhánh dạng thiếu là:

if <điều kiện> : <câu lệnh >

IF <điều kiện> : <câu lệnh >

if <điều kiện> then <câu lệnh >;

IF <điều kiện> THEN <câu lệnh >;

4.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

def chan_le():

number = int(input("Nhập vào một số: "))

if(number%2==0):

print(number, "là số chẵn")

_____(4)_____

print(number, "là số lẻ") chan_le()

(a)  

5.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

a = int(.............("Nhập a: "))

b = int(.............("Nhập b: "))

if a<=0:

    print("Vô nghiệm")

else:

    print(-b/a)

(a)  

6.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Trong NNLT Python, để đưa kết quả ra màn hình ta sử dụng thủ tục nào?

(a)  

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong NNLT Python, để nhập số thực cho biến n, câu lệnh nào sau đây đúng?

n=input(‘Nhập 1 số thực:’)

float(input(‘Nhập số thực n:’))


n=float(input(‘Nhập 1 số thực:’))

n=int(input(‘Nhập 1 số thực:’))

Access all questions and much more by creating a free account

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?