Ôn tập CK 2
Quiz
•
Computers
•
10th Grade
•
Medium
Giáo Viên Thăng Long
Used 12+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phát biểu nào sau đây là sai?
Dùng câu lệnh for ta cũng thể hiện được cấu trúc lặp với số lần không biết trước.
Dùng câu lệnh while ta cũng thể hiện được cấu trúc lặp với số lần biết trước.
Trong Python có 2 dạng lặp: Lặp với số lần biết trước và lặp với số lần không biết trước.
Câu lệnh thể hiện lặp với số lần không biết trước phải sử dụng một biểu thức logic làm điều kiện lặp.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cấu trúc lặp với số lần biết trước là:
for
for
while <Điều kiện>:
for
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
“Các lệnh mô tả hàm” phải viết:
Lùi vào theo quy định của Python.
Thẳng hàng với lệnh def.
Ngay sau dấu hai chấm (:) và không xuống dòng.
Viết thành khối và không được lùi vào.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình sau: def t(a1,b1): s=a1*b1 a,b=map(int,input().split()) print((a,b)) Lỗi sai trong đoạn chương trình trên là:
Thiếu lệnh return giá trị cần trả về ở cuối thân hàm.
Thiếu tham số hình thức.
Thiếu dấu ‘:’ cuối dòng đầu tiên của định nghĩa hàm.
Thiếu lời gọi hàm.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình sau: def h(a1,b1): s=a1-b1 return s a,b=map(int,input().split()) t=h(a,b) print(t) Trong đoạn chương trình trên lời gọi hàm với đối số truyền vào là:
h(a,b)
h(a1,b1)
return s
s=a1-b1
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6: Cho xâu st=’abc’. S[0]=?
‘a’
‘b’
‘c’
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
s='abcde' print(s[1:4]) Trên màn hình máy tính sẽ xuất hiện xâu:
'bcd'
'bcde'
'abc'
'cde'
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
47 questions
Ôn tập Tin 11 KNTT
Quiz
•
11th Grade
50 questions
TN HTML+CSS
Quiz
•
University
54 questions
Ôn Tập CUỐI KÌ I Tin 8
Quiz
•
8th Grade - University
52 questions
NHẬP MÔN CNTT 3
Quiz
•
University
51 questions
Ôn tập KTCK1 Tin 12A9
Quiz
•
12th Grade
49 questions
Ôn Tập Lịch Sử 11
Quiz
•
11th Grade - University
55 questions
Ôn cuối kì I Tin Học
Quiz
•
11th Grade
49 questions
Trắc nghiệm bài 6 - 12
Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
