
Fungsi Input dan Output Python
Quiz
•
Computers
•
2nd Grade
•
Hard
MAKMAL.20-SMK KPM-Lab
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah fungsi 'input()' dalam bahasa pengaturcaraan Python?
Memaparkan output ke skrin
Menerima output dari pengguna
Menyimpan data dalam fail
Mengira nilai matematik
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah hasil output kod berikut jika pengguna memasukkan nombor 10 dan 20?
Jumlah: 1020
Jumlah: 30
Jumlah: 10 20
Tiada output
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dalam kod berikut, apakah jenis data yang disimpan dalam pemboleh ubah 'nama'?
Integer
Float
String
Boolean
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah fungsi 'print()' dalam Python?
Menerima input daripada pengguna
Menyimpan data dalam pemboleh ubah
Memaparkan output ke skrin
Menukar jenis data
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah yang perlu dilakukan jika ingin menggunakan input nombor untuk pengiraan dalam Python?
Gunakan fungsi 'input( )' sahaja
Tukar input kepada jenis data 'int' atau 'float'
Gunakan fungsi 'print( )'
Tidak perlu apa apa, input automatik nombor
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah output kod berikut jika pengguna memasukkan nama "Ali"?
Masukkan nama anda: Ali
Halo, Ali!
Halo, nama!
Masukkan nama anda:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apakah yang akan berlaku jika fungsi 'input( )' digunakan tanpa menyimpan dalam pemboleh ubah?
Input akan disimpan secara automatik
Input akan hilang dan tidak boleh digunakan
Kod akan error
Output akan dipaparkan
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
11 questions
Ulangkaji ASK Tingkatan 2
Quiz
•
1st - 3rd Grade
10 questions
SISTEM NOMBOR PERDUAAN
Quiz
•
1st - 5th Grade
15 questions
Sistem Nombor Perlapanan
Quiz
•
2nd Grade
13 questions
ASK TING 3 : FUNGSI DAN PROSIDUR
Quiz
•
9th Grade
10 questions
Entiti dan Atribut
Quiz
•
9th Grade
15 questions
Kuiz Pengenalan Pengaturcaraan
Quiz
•
12th Grade
10 questions
Ralat dalam aturcara (ASK T2)
Quiz
•
10th Grade
10 questions
Pop Quiz
Quiz
•
11th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Verbs
Quiz
•
2nd Grade
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
20 questions
addition
Quiz
•
1st - 3rd Grade
20 questions
Subject and predicate in sentences
Quiz
•
1st - 3rd Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Exploring Force and Motion Concepts
Interactive video
•
1st - 5th Grade
30 questions
Multiplication Facts 1-12
Quiz
•
2nd - 5th Grade
10 questions
Exploring Properties of Matter
Interactive video
•
1st - 5th Grade