No student devices needed. Know more
20 questions
What does this code do?
Moves forward 1 time
Moves forward forever
Moves forward 5 times
Moves left
What shape does this code make?
Rectangle
Triangle
Square
Circle
For this scenario related to turtle/robot drawing, indicate whether it is better to write a loop or a function (or a set of functions) to handle the task:
Drawing a hexagon (six-sided shape)
Loop
Function
For this scenario related to turtle/robot drawing, indicate whether it is better to write a loop or a function (or a set of functions) to handle the task:
Drawing out the letters of a word "HELLO"
Loop
Function
For this scenario related to turtle/robot drawing, indicate whether it is better to write a loop or a function (or a set of functions) to handle the task:
Drawing 100 tiny dots in a line.
Loop
Function
What is a possible output when the following code segment executes? The ending position of the turtle is shown in each diagram. The starting position is shown as a white triangle in cases where the turtle starts and ends in different locations.
A Boolean expression is an expression that evaluates to which of the of the following?
Yes/Maybe/No
True/False
Any Integer
Integers between 1 and 10
Any single character
Which of the following is true about while loops ?
While loops terminate after a fixed number of loops that is pre-determined
While loops terminate after a fixed number of loops that is determined after the loop executes once.
While loops run as long as a given boolean condition is true.
While loops run as long as a given boolean condition is false.
While loops are known as "forever loops" and never stop until the program is halted by the user.
Answer
Which vocabulary word is:
a common method for referencing the elements in a list or string using numbers
list
element
index
Which vocabulary word is:
an ordered collection of elements
list
element
index
Which vocabulary word is:
an individual value in a list that is assigned a unique index
list
element
index
Match the index with the value.
var myNumbers = [32, 64, 33, 0, 15, 26, 3]
myNumbers[4]
64
15
0
32
//Consider this code:
var list = [10, 12, 14, 16, 18];
appendItem(list, 3);
insertItem(list, 2, 20);
removeItem(list, 0);
//What is printed to the console?
console.log(list);
10, 12, 14, 16, 18
10, 12, 14 , 20, 16, 18, 3
3, 12, 14, 20, 16, 18
12, 20, 14, 16, 18, 3
//Consider this code:
var list = [10, 12, 14, 16, 18];
appendItem(list, 3);
insertItem(list, 2, 20);
removeItem(list, 0);
//What is printed to the console?
console.log(list[0]);
//Consider this code:
var list = [10, 12, 14, 16, 18];
appendItem(list, 3);
insertItem(list, 2, 20);
removeItem(list, 0);
//What is printed to the console?
console.log(list.length);
//Consider this code:
var list = [10, 12, 14, 16, 18];
appendItem(list, 3);
insertItem(list, 2, 20);
removeItem(list, 0);
//What is printed to the console?
console.log(list[list.length-1]);
//Consider this code.
var beginning = "My name is ";
var end = "Mrs. Anderson";
var sentence = beginning + end;
//What is printed to the console?
console.log(sentence.length);
name
name is
y name
23
n
4
7
9
10
ab
Explore all questions with a free account