
C Robot Simulator Basic Codes
Quiz by Marvin Joseph Fernandez
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- Q1
In the C Robot Simulator, which of the following is a command for the robot to move forward?
forward();
fd(100);
fd
fd();
30s - Q2
In the C Robot Simulator, which of the following is a command for the robot to move in left pivot?
tr(100);
left(100);
sl(100);
tl(100);
30s - Q3
In the C Robot Simulator, which of the following is a command for the robot to move in spinning right motion?
right(100);
tr(100);
spinleft(100);
sr(100);
30s - Q4
In the C Robot Simulator, which of the following command is used to declare PA0 in off mode?
int PA0 = 0;
int pao = 0;
int pao = analog(0);
pao = 0;
30s - Q5
In the C Robot Simulator, which of the following command is used to declare PA0 as an analog sensor?
PA0 = analog(0);
int pao = 0;
int pao = analog(0);
pao = 0;
30s - Q6
In the C Robot Simulator, which analog sensor is used to detect objects?
PA7
PA6
PA0
PA8
30s - Q7
In the C Robot Simulator, how many sensors can be calibrated?
5
7
8
6
30s - Q8
In the C Robot Simulator, it is a command for a series of codes to run only once in a program.
void setup(){}
void setup()
void setup
void loop(){}
30s - Q9
In the C Robot Simulator, it is a command for a series of codes to run continuously until the robot is being stopped.
void loop(){}
void setup()
void loop(){}
void setup
30s - Q10
In the C Robot Simulator, it an icon found in the editor panel where you can place sensors on the robot.
Sensor Panel
ZX settings
Sensor Calibration Panel
Sensor Settings
30s