Di Python, fungsi input() digunakan untuk:

Quiz Pemrograman Python

Quiz
•
Computers
•
11th Grade
•
Hard
Tuti Sumaryati
Used 1+ times
FREE Resource
77 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Menampilkan teks di layar
Menyimpan data ke dalam file
Menerima input dari pengguna
Menghitung panjang teks
Menjalankan perulangan
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Untuk menampilkan teks "Data Analisis" di layar, perintah yang benar adalah:
display("Data Analisis")
output("Data Analisis")
print("Data Analisis")
show("Data Analisis")
input("Data Analisis")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kode berikut akan menghasilkan apa? python Copy code data = input("Masukkan data: ") print(data)
Menampilkan input dari pengguna
Menampilkan "Masukkan data:"
Menampilkan panjang data
Menampilkan data dalam array
Menghapus data pengguna
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mencetak elemen pertama dari array data = [10, 20, 30, 40]?
print(data[0])
print(data[1])
print(data[10])
print(data[-1])
print(data[2])
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah dari perintah berikut ini yang benar untuk mencetak setiap elemen dalam array data = [1, 2, 3] menggunakan for?
for i of data: print(data)
for i on data: print(data[i])
for i in data: print(i)
for i, data in data: print(i)
for data in i: print(i)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Output dari perintah for i in range(5): print(i) adalah:
1, 2, 3, 4, 5
0, 1, 2, 3, 4
0, 1, 2, 3, 4, 5
5 kali "i"
1, 2, 3, 4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara menghitung panjang dari array data = [5, 6, 7, 8, 9]?
len(data)
data.length()
count(data)
size(data)
data.size
Create a free account and access millions of resources
Similar Resources on Quizizz
82 questions
Microsoft Power Point

Quiz
•
9th - 12th Grade
75 questions
Remidi SAS1 XI TKJ 1

Quiz
•
11th Grade
72 questions
Python Basics

Quiz
•
9th - 12th Grade
75 questions
Стартовая диагностика

Quiz
•
9th - 12th Grade
72 questions
7-кл, Python тілінде алгоритмдерді программалау

Quiz
•
11th Grade
77 questions
Functions

Quiz
•
11th Grade
77 questions
AP CSA Semester 1 Review (Mod 1 - 5)

Quiz
•
10th - 12th Grade
78 questions
AQA Data Structures and algorithms

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University