
11_OntapGHK2.cd
Quiz
•
Computers
•
1st Grade
•
Hard
Phong Thanh
Used 5+ times
FREE Resource
Enhance your content in a minute
110 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào được dùng để mở tệp “data.txt” chỉ để đọc dữ liệu trong Python?
open("data.txt","w")
open("data.txt","r")
open("data.txt","a")
open("data.txt","x")
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dùng để đóng tệp đã mở trong Python?
close("file.txt")
file.close()
file.shutdown()
shutdown(file)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dùng để đọc tất cả nội dung từ tệp “file.txt” và lưu vào một chuỗi?
file.readlines()
file.readline()
file.read()
file.split()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để lấy các phần tử có chỉ số lẻ từ danh sách a, ta sử dụng lệnh nào?
a[::2]
a[::-1]
a[1::2]
a[1:]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức sort() trong danh sách ds.sort() làm gì?
Đảo ngược danh sách
Sắp xếp danh sách theo thứ tự tăng dần
Xóa tất cả các phần tử trong danh sách
Sao chép danh sách
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sẽ chèn một phần tử x vào vị trí chỉ số y trong danh sách ds?
ds.insert(y, x)
ds.append(x, y)
ds.add(y, x)
ds.insert(x, y)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào lấy các phần tử từ chỉ số 2 đến chỉ số 5 trong danh sách a?
a[2:5]
a[2:6]
a[3:6]
a[2::5]
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
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
6 questions
Gravity
Quiz
•
1st Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
16 questions
American Revolution
Interactive video
•
1st - 5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade
18 questions
Pushes & Pulls
Quiz
•
1st - 4th Grade
25 questions
Week 1 Memory Builder 1 (2-3-4 times tables) Term 2
Quiz
•
1st - 5th Grade
10 questions
Exploring Common and Proper Nouns
Interactive video
•
1st - 5th Grade
