
11A4: Tin HKI Bài 6
Presentation
•
Computers
•
11th Grade
•
Medium
Cô Giáo Ảo
Used 2+ times
FREE Resource
0 Slides • 8 Questions
1
Multiple Choice
Để nhập vào ba số nguyên a, b, c từ bàn phím ngăn cách nhau bởi 1 dấu cách, ta có thể dùng lệnh sau:
a, b, c =int(input('chuỗi thông báo: '))
a, b, c = map(int, input('chuỗi thông báo: ').split())
a, b, c = map(float, input('chuỗi thông báo: ').split())
a, b, c = float(input('chuỗi thông báo: '))
2
Multiple Choice
Để giữ cho con trỏ không chuyển xuống đầu dòng tiếp theo ta có thể dùng lệnh sau:
print(<Danh sách kết quả ra>)
write(<Danh sách kết quả ra>, end='')
cout<<(<Danh sách kết quả ra>, end='')
print(<Danh sách kết quả ra>, end='')
3
Multiple Choice
Để đưa ra màn hình số 1 và 2 trên cùng 1 dòng trong Python ta dùng lệnh:
print(‘1’)
Print(‘2’)
print(‘1’) Print(‘2’,end=’’)
print(‘1,2’)
print(‘1’,end=’’)
print(‘2’)
4
Multiple Choice
Để nhập vào 2 số thực a,b mỗi số trên 1 dòng trong Python ta dùng lệnh:
a=int(input()) b=int(input())
a,b=map(int,input().split())
a=float(input()) b=float(input())
a,b=map(float,input().split())
5
Multiple Choice
Dữ liệu của một bài toán được mô tả như sau:
Để nhập được dữ liệu như trên, ta dùng lệnh nào sau đây:
tmp=input().split(“ “)
a = int(tmp[0])
b = int(tmp[1])
c=int(tmp[2])
tmp=input().split(“ “)
a=int(tmp[1]) b=int(tmp[2])
c=int(tmp[3])
tmp=input().split(“ “)
a=int(tmp[0]) b=float(tmp[1])
c=int(tmp[2])
tmp=input().split() a=int(tmp[0]) b=int(tmp[1])
c=int(tmp[2])
6
Multiple Choice
Dữ liệu của một bài toán được mô tả như sau:
Đề xuất giá trị thỏa yêu cầu trên ta dùng lệnh nào sau đây, giả sử biến lưu kết quả output là S
print(round(S,4))
print(S,4)
round(print(S,4))
print(S, round(4))
7
Multiple Choice
Cho đoạn chương trình sau:
txt = "apple#banana#cherry#orange"
x = txt.split("#")
print(x[1])
Kết quả ra màn hình là:
1
#
Apple
Banana
8
Multiple Choice
Người lập trình viết đoạn chương trinh sau:
tmp = input().split(“ “)
a = tmp[0]
b = tmp[1] c= tmp[2]
d = a+b
print(d)
Kết quả ra màn hình là:
31
1516
31.0
‘31’
Để nhập vào ba số nguyên a, b, c từ bàn phím ngăn cách nhau bởi 1 dấu cách, ta có thể dùng lệnh sau:
a, b, c =int(input('chuỗi thông báo: '))
a, b, c = map(int, input('chuỗi thông báo: ').split())
a, b, c = map(float, input('chuỗi thông báo: ').split())
a, b, c = float(input('chuỗi thông báo: '))
Show answer
Auto Play
Slide 1 / 8
MULTIPLE CHOICE
Similar Resources on Wayground
6 questions
Kewargaan Digital - Siskomdig
Presentation
•
10th - 12th Grade
6 questions
RIZKY SHANDIKA PRATIWI-SMAN6TJT TUGAS 3
Presentation
•
10th Grade
7 questions
test 14 enero BYTE KB MB GB TB
Presentation
•
12th Grade
7 questions
Tugas H2 NIRWANA,S.Pd
Presentation
•
12th Grade
6 questions
Practice Interpersonal speaking
Presentation
•
11th Grade
6 questions
Gambar Perspektif
Presentation
•
11th Grade
6 questions
us history
Presentation
•
11th Grade
6 questions
Tuples
Presentation
•
11th - 12th Grade
Popular Resources on Wayground
5 questions
A Home on the Shore
Quiz
•
3rd Grade
28 questions
US History Regents Review
Quiz
•
11th Grade
6 questions
A Horse Tale
Quiz
•
3rd Grade
20 questions
Math Review
Quiz
•
3rd Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
20 questions
Dividing Fractions
Quiz
•
5th Grade
55 questions
A Long Walk to Water Final Review
Quiz
•
6th - 8th Grade
10 questions
Equation Word Problems
Quiz
•
7th Grade
Discover more resources for Computers
28 questions
US History Regents Review
Quiz
•
11th Grade
20 questions
Insurance
Quiz
•
9th - 12th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
10 questions
7.3-7.4 Quiz
Quiz
•
11th Grade
6 questions
Mayan Mathematics part 1
Presentation
•
9th - 12th Grade
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
10 questions
Unit 9 Quiz
Quiz
•
9th - 12th Grade
50 questions
US History Regents Practice Exam
Quiz
•
11th Grade