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 Wayground
80 questions
First Quarter Summative Test - October 23, 2023

Quiz
•
11th Grade
75 questions
ITF+ Study Test

Quiz
•
11th Grade
80 questions
MOCK Exam 2

Quiz
•
7th - 11th Grade
80 questions
MICROSOFT EXCEL 2010

Quiz
•
11th Grade
80 questions
Computer grade10

Quiz
•
10th Grade - University
80 questions
ABidenko-CS-Quiz

Quiz
•
9th - 12th Grade
72 questions
Ôn tập Tin 11 CS

Quiz
•
11th Grade
75 questions
ARTIFICIAL INTELLIGENCE AI RPL SMK KELAS 11 12 PTS PAS SUMATIF

Quiz
•
11th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade