ÔN TẬP HK2-Trắc nghiệm Python

ÔN TẬP HK2-Trắc nghiệm Python

10th Grade

20 Qs

quiz-placeholder

Similar activities

Practice Quiz for Term 1

Practice Quiz for Term 1

10th Grade

20 Qs

4th Quarter SketchUp Review

4th Quarter SketchUp Review

10th Grade

15 Qs

ICT WEBINAR QUIZ

ICT WEBINAR QUIZ

KG - Professional Development

20 Qs

Terminos ITGS x

Terminos ITGS x

8th Grade - University

20 Qs

Standard Linux Commands

Standard Linux Commands

1st - 10th Grade

20 Qs

Personal Finance 3.01-3.07 Review Quiz

Personal Finance 3.01-3.07 Review Quiz

9th - 12th Grade

20 Qs

Web Dev Diagnostic

Web Dev Diagnostic

7th - 10th Grade

20 Qs

kuis informatika perangkat lunak

kuis informatika perangkat lunak

10th - 12th Grade

20 Qs

ÔN TẬP HK2-Trắc nghiệm Python

ÔN TẬP HK2-Trắc nghiệm Python

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

Quizizz Pro6

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...

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Đoạn mã nào sau đây sẽ tạo ra một danh sách các số nguyên từ 1 đến 5?

dayso = list(range(1, 6)).

dayso = [1, 2, 3, 4, 5].

dayso = (1, 2, 3, 4, 5)

dayso = {1, 2, 3, 4, 5}

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Trong ngôn ngữ lập trình, xâu kí tự là gì?

A. Một loại biến đặc biệt dùng để lưu trữ số nguyên.

B. Một danh sách các ký tự nhưng không thay đổi từng ký tự của xâu.

C. Một cấu trúc dữ liệu dùng để lưu trữ các phép toán số học.

D. Một dãy các ký tự Unicode.

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Để khai báo một xâu kí tự trong Python, ta sử dụng cặp dấu nào?

A. " "

B. [ ]

C. ( )

D. ' '

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho chương trình sau và thực hiện trong Python khi nhập xâu s = "Năm học 2023-2024" s=input() demso=0 for i in s: if i in "0123456789": demso=demso+1 print(demso) Chương trình in ra số các chữ số có trong xâu s.

Chương trình in ra các chữ số có trong xâu s.

chương trình in ra số các chữ số có trong xâu s

kết quả chương trình là 20232024

kết quả chương trình là 8

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đối tượng dưới đây thuộc kiểu dữ liệu nào? A = [1, 2, '3']

list

int

float

string

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức nào sau đây dùng để thêm phần tử vào cuối list trong python?

abs()

link()

append()

add()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho arr = ['xuan', 'hạ', 1. 4, 'đông', '3', 4.5, 7]. Đâu là giá trị của arr[3]?

1.4

'đông'

'hạ'

'3'

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?

Discover more resources for Computers