1) What will the code print("Good morning Year 7") do? a) It will output the message: Good morning Year 7. 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 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 an error if the variable score does not exist 4) 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 an error if the variable score does not exist 5) What will 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?" 6) What does the input() function do? a) It allows the program to ask the user a question b) It allows the user to input a value c) It just prints a message on the screen 7) What does the print() function do? a) Nothing b) Display code on the screen c) Print out a document 8) What is wrong with this code? print"Hello" a) Capital letter in the wrong place b) Missing brackets c) Missing equals d) Missing speech marks 9) What is wrong with this code? print(Hello) a) Capital letter in the wrong place b) Missing brackets c) Missing equals d) Missing speech marks 10) What is wrong with this code? name input("Enter your name") a) Capital letter in the wrong place b) Missing brackets c) Missing equals d) Missing speech marks 11) What is wrong with this code? name = input"Enter your name" a) Capital letter in the wrong place b) Missing brackets c) Missing equals d) Missing speech marks 12) What is wrong with this code? name = input("Enter your name) a) Capital letter in the wrong place b) Missing brackets c) Missing equals d) Missing speech marks 13) What is missing in this code? print=("Good morning Year 7") a) Missing speechmarks b) Extra equals sign c) Capital letters d) No brackets 14) What is the right code to display the phrase Hello Buddy? a) print"HelloBuddy" b) print"Hello Buddy") c) print("Hello Buddy") d) print=("Hello Buddy") 15) What must always follow print and input when writing a program? a) = b) ( ) c) " " d) + 16) What format must print and input always be in when writing a program? a) UPPERCASE b) lowercase c) UpperLower d) Upper 17) A variable is used to.......... a) add things up b) store data c) display code d) enter code 18) What is a suitable variable name when asking someone to enter their password? a) enter b) print c) password d) input 19) What is a suitable variable name when asking someone to enter a number? a) output b) num c) number d) input 20) What is a suitable variable name when asking someone to enter their postcode? a) postcode b) address c) number d) input 21) What is the data type beginning with C in the acronym CRIBS? a) Character b) Creative c) Code 22) What is the data type beginning with R in the acronym CRIBS? a) Ready b) Real c) Relocate 23) What is the data type beginning with I in the acronym CRIBS? a) Inspection b) Integer c) Important 24) What is the data type beginning with B in the acronym CRIBS? a) Bootstrap b) Boolean c) Beginning 25) What is the data type beginning with S in the acronym CRIBS? a) Sentence b) Sequence c) String 26) An example of a string is......... a) "C" b) 5.36 c) "Hello" d) True e) 999 27) An example of Boolean is......... a) "C" b) 5.36 c) "Hello" d) True e) 999 28) An example of an integer is......... a) "C" b) 5.36 c) "Hello" d) True e) 999 29) An example of a character is......... a) "C" b) 5.36 c) "Hello" d) True e) 999 30) An example of real data is......... a) "C" b) 5.36 c) "Hello" d) True e) 999
0%
PYTHON Y7 QUIZ (L1&L2)
แชร์
แชร์
แชร์
โดย
Mrdoskocz
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
แบบทดสอบ
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม