
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
10 questions
Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera
Quiz
•
1st Grade - Professio...
10 questions
Pengenalan Perwakilan Data
Quiz
•
12th Grade
10 questions
Jaringan Komputer dan Internet
Quiz
•
11th Grade
10 questions
Computer System
Quiz
•
8th - 9th Grade
15 questions
Learning Checkpoint 3: Primary & Secondary Storage
Quiz
•
9th - 10th Grade
10 questions
PERANGKAT UNTUK MENGAKSES INTERNET - KELAS IX
Quiz
•
9th Grade
10 questions
Post Test #4 - Python Fundamental #3
Quiz
•
University
14 questions
MsLogo and Ms Word Quiz
Quiz
•
3rd - 4th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
