Module 1 Exercise (Python)

Quiz
•
Computers
•
Professional Development
•
Hard
Median Hardiv
Used 30+ 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
15 questions
TEKNIK INFORMATIKA

Quiz
•
Professional Development
15 questions
Flutter Q_0

Quiz
•
Professional Development
20 questions
Module 2 Review

Quiz
•
Professional Development
20 questions
Quiz 5.1

Quiz
•
Professional Development
15 questions
Programming - Screening Test

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

Quiz
•
Professional Development
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
20 questions
Python

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
5 questions
Setting goals for the year

Quiz
•
Professional Development
14 questions
2019 Logos

Quiz
•
Professional Development
6 questions
GUM Chart Scavenger Hunt

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
20 questions
Employability Skills

Quiz
•
Professional Development