Revision Flashcards

1
Q

How would you make a sprite move fowards?

A

Use the block from “motion” that says “move (10) steps” you input the number of steps you want the sprite to take.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How would you make a sprite move backwards?

A

Use the block from “motion” that says “move (10) steps” but you would change the positive (10) to a minus number.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How would you make a sprite go to a specific location on the screen?

A

Use “go to” block and then input the X and Y co-ordinates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 3 different types of iteration?

A

Infinate loops, count controlled loops and condition controlled loops.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an infinite loop?

A

A loop that iterates forever.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

When do you use a condition controlled loop?

A

When it is not known how many times the algorithm must be iterated before being completed.
example: inputting a password.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does a count controlled loop do?

A

Uses a counter to keep track of how many times the algorithm is completed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How could you use a count controlled loop to make the scratch cat move forward 20 steps, wait for one second, then move backwards 10 steps - 5 times?

A

repeat 5
move 20 steps
wait 1 second
move 10 steps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How could you use an infinite loop to make the scratch cat continually change costumes (with a wait between each costume change)?

A
forever
change costume to (cat1)
wait 1 second 
change costume to (cat2) 
wait 1 second
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How could you use a condition controlled loop to make the scratch cat move 5 steps until it touches the edge of the screen?

A

forever move 5 steps

if on edge, bounce

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In programming, what is does efficiency mean?

A

Reducing the amount of code used in an algorithm.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does iteration improve the efficiency of an algorithm?

A

Allows them to be simplified.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the two boolean logic answers?

A

TRUE , FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the three boolean logic operators?

A

AND , OR , NOT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a syntax error?

A

An error in the program.

example: capital letters and brackets etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is a procedure?

A

You create a block and explain what it does. A shortcut.