Module 1 Exercise (Python)
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
Median Hardiv
Used 37+ times
FREE Resource
Enhance your content in a minute
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
Already have an account?
Similar Resources on Wayground
15 questions
Latihan TIK
Quiz
•
Professional Development
17 questions
PHP MySQL
Quiz
•
7th Grade - Professio...
21 questions
SKD - Word
Quiz
•
KG - Professional Dev...
20 questions
Basic 2 Python
Quiz
•
12th Grade - Professi...
20 questions
TUGAS 2 PROTOCOL DAN IP ADDRESS
Quiz
•
Professional Development
17 questions
Lección1 - JavaScript
Quiz
•
1st Grade - Professio...
20 questions
Sains Komputer Tingkatan 5 - 1.3.1 Menerangkan get logik
Quiz
•
1st Grade - Professio...
20 questions
QUIZZ KJD - BIOS
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development
