Module 1 Exercise (Python)
Quiz
•
Computers
•
Professional Development
•
Hard
Median Hardiv
Used 37+ 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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Computer Basics/Terminology
Quiz
•
Professional Development
17 questions
Introduction to Computer Systems: Basic elements
Quiz
•
University - Professi...
15 questions
JUMANTIK QUIS
Quiz
•
Professional Development
24 questions
DATATYPES - INPUT/OUTPUT - OPERATORS
Quiz
•
Professional Development
20 questions
PPL
Quiz
•
Professional Development
15 questions
DHCP
Quiz
•
Professional Development
20 questions
Teknik Informatika
Quiz
•
Professional Development
15 questions
ERP 1
Quiz
•
University - Professi...
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween
Quiz
•
Professional Development
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
5 questions
11.4.25 Student Engagement & Discourse
Lesson
•
Professional Development
50 questions
ASL Colors and Clothes
Quiz
•
KG - Professional Dev...
15 questions
Ohms Law
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
