Escaping Corners Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Rob Mathis
Used 1+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following functions is NOT defined in the initial navigation function definitions of the escaping_corners.py script?
forward()
left()
right()
stop()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the variable counter in the escaping_corners.py script?
To store the current speed of the robot.
To keep track of alternate whisker presses.
To record the total distance traveled by the robot.
To control the duration of the robot's movements.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The variables o_w_l and o_w_r are used to store what?
The desired whisker states.
The current motor speeds.
The previous whisker states.
The number of times the robot has turned.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The outermost "if" statement in the main loop checks if which of the following is true?
Both whiskers are pressed simultaneously.
Neither whisker is pressed.
w_l and w_r are different.
Both previous whisker states were the same.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When is the counter variable incremented?
When both whiskers are pressed simultaneously.
When neither whisker is pressed.
When both current whisker input states are different from their previous input states.
Every time the main loop runs.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the counter exceeds four?
The robot stops moving.
The robot moves forward at a faster speed.
A tone plays, and the robot attempts to escape the corner by moving backward and turning left twice.
The whisker input values are reset to zero.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Before the robot attempts to escape a corner, what are the values assigned to counter, w_l, and w_r?
1, 1, 1
5, 0, 0
0, 1, 1
1, 1, 15
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Robotics I Unit 2 Test Review

Quiz
•
9th - 12th Grade
14 questions
9-10 robotics EV3 basics

Quiz
•
7th - 10th Grade
18 questions
Cybersecurity Vocabulary 2022

Quiz
•
9th - 12th Grade
15 questions
Introduction to Programming

Quiz
•
6th - 9th Grade
20 questions
Scratch Programming

Quiz
•
9th - 12th Grade
20 questions
Humans Need Not Apply (Video 9)

Quiz
•
10th Grade
23 questions
Part 1 – Introduction to Robotics

Quiz
•
9th Grade
20 questions
Robotics Pretest

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade