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
编辑内容
打印
嵌入
更多
作业
排行榜
显示更多
显示更少
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
迷宫追逐
是一个开放式模板。它不会为排行榜生成分数。
需要登录
视觉风格
字体
需要订阅
选项
切换模板
显示所有
播放活动时将显示更多格式。
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?