
Python - Function
Authored by Vinsensius Adrian
Instructional Technology
11th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Manakah pernyataan yang paling TEPAT mengenai fungsi dalam bahasa pemrograman Python?
Fungsi adalah sekumpulan kode yang hanya dapat digunakan sekali dalam suatu program.
Fungsi adalah blok kode yang dapat dipanggil berkali-kali dengan parameter yang berbeda-beda untuk menghasilkan output yang berbeda.
Fungsi digunakan untuk memperlambat proses eksekusi suatu program.
Fungsi hanya dapat mengembalikan satu jenis tipe data, yaitu string.
Fungsi tidak dapat memiliki parameter.
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Bagaimana cara yang benar untuk mendefinisikan sebuah fungsi di Python?
def nama_fungsi():
function nama_fungsi():
create function nama_fungsi():
define nama_fungsi():
function(nama_fungsi):
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Apa keuntungan menggunakan fungsi dalam pemrograman Python?
Meningkatkan efisiensi
Membuat kode lebih panjang
Memperlambat eksekusi program
Membuat kode lebih sulit dipahami
Hanya berlaku untuk program yang sangat kompleks
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Apa yang akan dicetak oleh kode tersebut?
hasil
25
5
sisi
Error
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Bagaimana cara memanggil fungsi tersebut?
luas
hitung_luas_lingkaran()
def hitung_luas_lingkaran():
def hitung_luas_lingkaran(jari_jari):
def hitung_luas_lingkaran(7):
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Output apa yang dihasilkan?
lagu()
print('Padamu negeri kami berjanji')
print('Padamu negeri kami berbakti')
print('Padamu negeri kami mengabdi')
print('Bagimu negeri jiwa raga kami')
Padamu negeri kami berjanji
Padamu negeri kami berbakti
Padamu negeri kami mengabdi
Bagimu negeri jiwa raga kami
Padamu negeri kami berjanji
def lagu()
7.
MULTIPLE SELECT QUESTION
30 sec • 5 pts
Anda sedang membuat program sederhana untuk mengelola toko buku. Program ini akan memiliki fungsi untuk menambahkan buku baru, mencari buku berdasarkan judul, dan menghitung total harga pembelian.
Manakah kode fungsi yang tepat untuk menambahkan buku baru ke dalam daftar buku?
Access all questions and much more by creating a free account
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
20 questions
PTS SASIS SEPEDA MOTOR
Quiz
•
11th Grade
20 questions
Lego EV3 Robotics Quiz (Multiple Choice)
Quiz
•
9th - 12th Grade
10 questions
Soal TIK Kelas VII Semester 1 Bab 3
Quiz
•
11th Grade
15 questions
Scratch: Events, Loops and The Coordinate System
Quiz
•
2nd Grade - Professio...
10 questions
RBT TAHUN 6 - ALATAN & BAHAN MENYEMAI
Quiz
•
1st - 12th Grade
15 questions
Egnine dan Unit Alat Berat
Quiz
•
11th Grade
12 questions
RekaCipta Tingkatan 4 Bab 1
Quiz
•
11th - 12th Grade
20 questions
Sistem Pengapian
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Instructional Technology
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade