You are on page 1of 2

Pioneer college Beja End-term Name:.......................

Science of computer ...................................


Exercise 2:
Teacher: AMDOUNI Atef test n°2 Class 8th.........
06-03-2023 Duration : 1hour Deduce the final value of the variable after executing each script (3 marks)

Exercise 1:
Make a cross in front the correct role from the code below (2 marks)

STAR =………………….. STAR=………………….

CAT=………………

 Scrolling car from right to left indefinitely


 Moving car from right to left until touching edge
 Scrolling car from left to right

Page 1
Exercise 3: 6. Dog clones are moving in the road from right to left until touching
ballerina or edge.
We play a jumping game with one player jumping to avoid dog
When the dog clone touches Ballerina, it plays the Alert sound and
variable lives is decreased by 1 and we delete it. (3 marks)

7. Add 2 sprites game over and you win which are hidden at the

start of the game (1 mark).

8. If lives is equal to 0 we send game over message and the game

over message appears else if timer is greater than 60 we send you

win message and the message you win appears. and game is finished

(2 marks)

1. Insert sprites Ballerina and dog. (2 marks)

2. Modify backdrop blue sky (1 marks)

3. At the start of the game, ballerina has 3 lives. (1 marks)

4. The Ballerina player sprite jumps when the space key pressed. (3 marks)
5. Create infinity clones of dog that appear at different random times

(1 to 3 seconds). (2 marks)

Page 2

You might also like