1) What will the code print( "Good morning Year 8") do? a) It will output the message: Good morning Year 8. b) It will give a syntax error. c) It will store a value. 2) What will the code Print ("Have a nice day") display? a) Have a nice day b) "Have a nice day" c) It will produce a syntax error 3) What will the code print (score) do? a) It will display the message: score b) It will display the content of the variable called score c) It will produce nothing 4) What will age = input ("How old are you?") display on the screen? a) How old are you? b) It will produce an error c) "How old are you?" 5) What does the input() function do? a) It crashes the computer b) It allows the user to input a value c) It just prints a message on the screen 6) After the code name = input("what is your name?"), What is in name? a) Nothing b) The value typed in by the user c) The text "what is your name?" 7) In the code name = input("what is your name?"), What is name? a) A variable b) An output c) A Python instruction 8) What type of brackets does print use? a) round brackets ( and ) b) curly brackets { and } c) square brackets [ and ]
0%
Python Quiz - print and input
แชร์
แชร์
แชร์
โดย
Jsimpson10
KS3
Y7
Y8
Y9
Computing
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แบบทดสอบ
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม