Python level 2

Python level 2

7th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Trắc nghiệm excel - 1

Trắc nghiệm excel - 1

KG - University

20 Qs

Ôn tập HK 1 Toán 6

Ôn tập HK 1 Toán 6

1st - 12th Grade

20 Qs

Ôn tập học kì II toán 8

Ôn tập học kì II toán 8

8th - 9th Grade

15 Qs

ĐẠO HÀM (P1)

ĐẠO HÀM (P1)

11th Grade

17 Qs

Hình học 7: Ôn tập

Hình học 7: Ôn tập

7th Grade

20 Qs

TIN 11 BÀI 11 KIỂU MẢNG

TIN 11 BÀI 11 KIỂU MẢNG

11th Grade

18 Qs

ôn tập học kì 2 môn tin 7

ôn tập học kì 2 môn tin 7

7th Grade

20 Qs

Python level 2

Python level 2

Assessment

Quiz

Mathematics, Computers

7th - 12th Grade

Practice Problem

Hard

Created by

duy Nguyen

Used 28+ 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 CHOICE QUESTION

30 sec • 1 pt

Câu lệnh return dùng để?

Kết thúc vòng lặp

Trả lại giá trị

Kết thúc vòng lặp và trả lại giá trị

Kết thúc hàm và trả lại giá trị

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đâu là cú pháp của truyền nhiều tham số trong hàm?

def <tên hàm>(*biến):

Câu lệnh

...

def <tên hàm>(x=0,y=3):

Câu lệnh

...

def <tên hàm>(a,b)

Câu lệnh

...

def <tên hàm>(a)

Câu lệnh

...

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tác dụng của hàm là gì?

Chỉ cần viết 1 lần

Có thể sử dụng lại

Cập nhật nhanh gọn

Chỉ cần viết 1 lần,Có thể sử dụng lại,Cập nhật nhanh gọn

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh global dùng để làm gì

Khai báo biến nội bộ

Khai báo biến toàn cầu

Khai báo biến trong hàm

Khai báo lại giá trị biến

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong học phần 2 có bao nhiêu cách khai báo module?

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để random ra số thực ngầu nhiên ta dùng cú pháp nào?

import random

random.randint(số thứ 1, số thứ 2)

import random

random.randrange(số thứ 1, số thứ 2)

import random

random.uniform(số thứ 1, số thứ 2)

import random

random.choice(số thứ 1, số thứ 2)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Nếu gọi module math vào bằng cách:

from math import*

Hãy tìm câu lệnh để viết ra phép căn 9

math.sqrt(9)

sqrt(9)

math.sprt(9)

sprt(9)

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?