
Lý thuyết 1
Quiz
•
Instructional Technology
•
8th Grade
•
Practice Problem
•
Medium
Hiên Đào
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để hiển thị từng giá trị của mảng a có n phần tử trên 1 dòng: ta dùng lệnh nào?
For i in range(n): print(i, end=' ')
For i in range(n): print(a[i], end=' ')
For i in range(1,n+1): print(i, end=' ')
For i in range(1,n+1): print(a[i], end=' ')
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để hiển thị từng giá trị của mảng a có n phần tử trên n dòng: ta dùng lệnh nào?
For i in range(n): print(i)
For i in range(n): print(a[i], end=' ')
For i in range(n): print(i, end=' ')
For i in range(n): print(a[i])
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để hiển thị từng giá trị của mảng a có n phần tử trên n dòng: ta dùng lệnh nào?
for i in a: print(a[i])
for i in a: print(a[i], end=' ')
for i in a: print(i)
for i in a: print(i, end=' ')
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để đưa ra vị trí phần tử lớn nhất của mảng a có n phần tử ta dùng đoạn lệnh nào?
ma=a[0]
for i in range(1,n):
if ma<a[i]:
ma=a[i]
vt=i+1
print(i)
ma=a[0]
for i in range(1,n):
if ma>a[i]:
ma=a[i]
vt=i+1
print(i)
ma=a[0]
for i in range(1,n):
if ma<a[i]:
ma=a[i]
vt=i
print(i)
ma=a[0]
for i in range(1,n):
if ma>a[i]:
ma=a[i]
vt=i
print(i)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để đưa ra vị trí phần tử nhỏ nhất của mảng a có n phần tử ta dùng đoạn lệnh nào?
ma=a[0]
for i in range(1,n):
if ma<a[i]:
ma=a[i]
vt=i+1
print(i)
ma=a[0]
for i in range(1,n):
if ma>a[i]:
ma=a[i]
vt=i+1
print(i)
ma=a[0]
for i in range(1,n):
if ma<a[i]:
ma=a[i]
vt=i
print(i)
ma=a[0]
for i in range(1,n):
if ma>a[i]:
ma=a[i]
vt=i
print(i)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu là thuật toán tìm tổng các ước của 1 số nguyên dương n?
t=0
for i in range(n):
if n%i==0:
t+=i
print(t)
t=0
for i in range(1,int(n**0.5)):
if n%i==0:
t+=i
print(t)
t=0
for i in range(1,int(n**0.5)+1):
if n%i==0:
t+=i
if i*i!=n:
t+=n//i
print(t)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu là Hàm kiểm tra số n có phải là số hoàn hảo?
def hh(n):
t=0
for i in range(n+1):
if n%i==0:
t+=i
return t==n:
def hh(n)
t=0
for i in range(1,int(n**0.5)+1):
if n%i==0:
t+=i
if i*i!=n:
t+=n//i
return t==n
def hh(n):
t=0
for i in range(1,int(n**0.5)+1):
if n%i==0:
t+=i
return t==n
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
15 questions
Conflict Resolution
Quiz
•
6th - 9th Grade
11 questions
Canva
Quiz
•
4th - 12th Grade
10 questions
Green Screen
Quiz
•
7th - 8th Grade
15 questions
Car Companies of the world (1.1 update)
Quiz
•
KG - University
8 questions
O que é Pensamento Computacional
Quiz
•
6th - 8th Grade
11 questions
El televisor
Quiz
•
6th - 9th Grade
10 questions
Combinación de teclas en word
Quiz
•
1st - 9th Grade
15 questions
Digital Citizenship
Quiz
•
5th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Instructional Technology
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
15 questions
scatter plots and trend lines
Quiz
•
8th Grade
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
6 questions
Veterans Day
Lesson
•
8th Grade
13 questions
Finding slope from graph
Quiz
•
8th Grade
10 questions
Exploring Europe: Geography, History, and Culture
Interactive video
•
5th - 8th Grade
