1) What symbol marks the end of a statement in Java? a) . b) : c) ; d) , 2) The top-left corner of the Greenfoot screen has coordinates: a) (0,0) b) (0,10) c) (10,0) d) (100,100) 3) A block of code in Java is enclosed in: a) ( ) b) { } c) < > d) [ ] 4) The command Greenfoot.isKeyDown("left") returns: a) A number b) Text c) A boolean d) An integer 5) Which data type stores decimal numbers? a) int b) boolean c) double d) char 6) What does the method turn(90) do? a) Moves the actor up b) Rotates the actor 90° clockwise c) Turns the actor left d) Changes the actor’s speed 7) Which keyword is used to create an object? a) object b) class c) make d) new 8) What is the purpose of a constructor? a) To destroy objects b) To build and initialize an object c) To print output d) To store variable data 9) What does getRandomNumber(10) return? a) 0-9 b) 1-10 c) 10-20 d) 0-10 10) The method move(5) belongs to: a) The Greenfoot class b) The Object class c) The Actor class d) The System class
0%
Coding revision part 1
แชร์
แชร์
แชร์
โดย
Olleeey
Gr 8
แก้ไขเนื้อหา
สั่งพิมพ์
ฝัง
เพิ่มเติม
กำหนด
ลีดเดอร์บอร์ด
แสดงเพิ่มขึ้น
แสดงน้อยลง
ลีดเดอร์บอร์ดนี้ตอนนี้เป็นส่วนตัว คลิก
แชร์
เพื่อทำให้เป็นสาธารณะ
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานโดยเจ้าของทรัพยากร
ลีดเดอร์บอร์ดนี้ถูกปิดใช้งานเนื่องจากตัวเลือกของคุณแตกต่างสำหรับเจ้าของทรัพยากร
แปลงกลับตัวเลือก
การไล่ล่าเขาวงกต
เป็นแม่แบบแบบเปิดที่ไม่ได้สร้างคะแนนสำหรับลีดเดอร์บอร์ด
ต้องลงชื่อเข้าใช้
สไตล์ภาพ
แบบ อักษร
ต้องสมัครสมาชิก
ตัวเลือก
สลับแม่แบบ
แสดงทั้งหมด
รูปแบบเพิ่มเติมจะปรากฏเมื่อคุณเล่นกิจกรรม
เปิดผลลัพธ์
คัดลอกลิงค์
คิวอาร์โค้ด
ลบ
คืนค่าการบันทึกอัตโนมัติ:
ใช่ไหม