
Fungsi Input dan Output Python
Quiz
•
Computers
•
2nd Grade
•
Practice Problem
•
Hard
MAKMAL.20-SMK KPM-Lab
Used 3+ times
FREE Resource
Enhance your content in a minute
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
Already have an account?
Similar Resources on Wayground
9 questions
OCR GCSE CS - 2.1 ERL sorts and searches
Quiz
•
10th - 11th Grade
12 questions
Refleksi TIK kelas 9
Quiz
•
12th Grade
10 questions
Flowcharrt Symbols
Quiz
•
10th Grade
15 questions
1.1.1 The structure and function of the processor
Quiz
•
11th Grade - University
10 questions
Fundamentos PHP (Manejo de Fomularios y arreglos)
Quiz
•
9th Grade
10 questions
Alat - Alat Fiber Optic dan Fungsinya
Quiz
•
10th Grade
11 questions
Identifying devices
Quiz
•
12th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Computers
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
8 questions
Predictions
Quiz
•
2nd - 4th Grade
21 questions
Christmas Trivia
Quiz
•
2nd - 4th Grade
10 questions
Branches of Government
Quiz
•
2nd Grade
20 questions
Identifying Fractions
Quiz
•
2nd Grade
10 questions
Exploring the Water Cycle
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
19 questions
Subject-Verb Agreement
Quiz
•
2nd - 5th Grade
