This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
Questions for Chapter 3
1) What action(s) does a function perform that a method does not?
2) What type of value is returned by each of the following built-in functions: a) distance to,
b) is within threshold of, c) is wider than, and d) width?
3) What are the four operations that can be used in a math expression in Alice?
4) List four different control structures used in creating a program in Alice.
5) What type of function value is used to check a condition in an If/Else statement?
6) Describe what happens in an If/Else statement when the instruction in the Else part is Do
Nothing?
7) The following relational operation is available in the World’s function list: a <= b. Give
an example of what “a” and “b” can represent. What type of value is obtained when this
operation is evaluated?
8) What is the purpose of a Loop statement?
9) Alice does not have built-in collision detection. a) What built-in function can be used to
detect when one object is too close to another? b) Give an example of an instruction that
uses the function to avoid collision.
10) Sketch for exercise 1 a) a storyboard, b) a flowchart
a) Storyboard
Do the following steps in order
Alien moves up one meter
Alien says “Slithy toves”
Spider robot turns to face the alien
b) Flowchart
11) Sketch for exercise 6 a) a storyboard, b) a flowchart
a) Storyboard
Do the following steps in order
b) Flowchart
Trusted by Thousands of
Students
Here are what students say about us.
Resources
Company
Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.