
Lý thuyết 1

Quiz
•
Instructional Technology
•
8th Grade
•
Medium
Hiên Đào
Used 2+ times
FREE Resource
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
Similar Resources on Wayground
12 questions
Основи Python

Quiz
•
7th - 12th Grade
10 questions
post test

Quiz
•
2nd Grade - University
14 questions
Keyboard Shortcuts

Quiz
•
7th - 8th Grade
7 questions
ԹԳՀԳ 8 ամփոփիչ գրավոր 2-րդ կիսամյակ

Quiz
•
8th Grade
5 questions
Gmetrix-2019 PPT Simulation Test 2-Q's 6-10

Quiz
•
6th - 8th Grade
5 questions
Японские мультики

Quiz
•
6th - 8th Grade
15 questions
How to Make a Flyer

Quiz
•
8th Grade
7 questions
REPASO 1º TRIMESTRE APRENDIZAJE DIGITAL 6º

Quiz
•
1st - 10th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade