
Lý thuyết 1
Authored by Hiên Đào
Instructional Technology
8th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
15 questions
Notability Refresh
Quiz
•
6th - 8th Grade
10 questions
INSTALASI PENERANGAN LISTRIK
Quiz
•
1st - 10th Grade
11 questions
Project 5 KC: Exploring e-Textile & Wearable Technology
Quiz
•
6th - 8th Grade
10 questions
Scratch intro & Pen Commands Quiz
Quiz
•
1st - 10th Grade
10 questions
Tic
Quiz
•
1st Grade - University
15 questions
Digital Footprint & Passwords
Quiz
•
4th Grade - University
14 questions
Segnali stradali
Quiz
•
8th - 9th Grade
12 questions
I motori a scoppio
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Instructional Technology
20 questions
7th grade ELA Vocabulary Review
Quiz
•
7th - 8th Grade
22 questions
Phases of the moon
Quiz
•
8th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
14 questions
finding slope from a graph
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
7 questions
Path and Ortho Greek bases
Quiz
•
6th - 8th Grade
20 questions
Relative Pronouns
Quiz
•
4th - 8th Grade
8 questions
8th U6L1: Organizing Data
Quiz
•
8th Grade