Module 1 Exercise (Python)

Quiz
•
Computers
•
Professional Development
•
Hard
Median Hardiv
Used 24+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa output dari kode ini:
x = 0
print type(type(x))?
type 'int'
type 'type'
Error
0
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
nama = input('Masukkan nama anda: ')
umur = input('Masukkan umur anda: ')
print('{} lahir pada tahun {}'.format(nama, 2023 - umur))
Jika user memasukkan Messi dan 35 pada terminal, output yang tepat berdasarkan kode di atas adalah
{nama} lahir pada tahun {2023 - umur}
Messi lahir pada tahun 35
Messi lahir pada tahun 1988
Error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
listBuah = [['Mangga', 'Jeruk', 'Pepaya', 'Pisang'], 'Timun', 'Terong', 'Labu', 'Anggur']
print(listBuah[1][3])
Apa output dari kode di atas?
'Pepaya'
'u'
'Labu'
tidak ada jawaban benar
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Apa output dari kode berikut?
0
1
2
4
5
7
8
0
3
6
9
1
2
4
5
7
8
Tidak ada jawaban benar
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
kalimat = 'Selamat Datang di Purwadhika"
print(kalimat.capitalize())
Output dari kode di atas adalah
selamat datang di purwadhika
SELAMAT DATANG DI PURWADHIKA
Selamat Datang Di Purwadhika
Selamat datang di purwadhika
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
yellow = ["Pisang", "Jeruk", "Lemon"]
red = ["Apel", "Tomat", "Stroberi"]
yellow.append(red)
print(yellow)
Output dari kode di atas adalah
["Pisang", "Jeruk", "Lemon", "Apel", "Tomat", "Stroberi"]
["Pisang", "Jeruk", "Lemon", ["Apel", "Tomat", "Stroberi"]]
["Apel", "Tomat", "Stroberi", "Pisang", "Jeruk", "Lemon"]
["Apel", "Tomat", "Stroberi", ["Pisang", "Jeruk", "Lemon"]]
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Pernyataan paling tepat tentang function di bawah ini adalah
Function harus memiliki parameter
Tidak semua function harus diakhiri dengan () ketika dipanggil
Function bisa dipanggil di dalam function
Tidak ada jawaban benar
Create a free account and access millions of resources
Similar Resources on Wayground
18 questions
Flutter Online Quiz

Quiz
•
Professional Development
15 questions
CodeHS - Intro to Python - Conditionals Quiz

Quiz
•
9th Grade - Professio...
15 questions
Programming - Screening Test

Quiz
•
3rd Grade - Professio...
20 questions
Internet dan Komputer

Quiz
•
Professional Development
20 questions
Javascript Fundamental Practice

Quiz
•
Professional Development
17 questions
KUIS PERANGKAT INPUT KOMPUTER KELAS VII

Quiz
•
1st Grade - Professio...
17 questions
Operators in Python

Quiz
•
9th Grade - Professio...
15 questions
TEKNIK INFORMATIKA

Quiz
•
Professional Development
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade