If/else expressions in ActionScript3

Self Test

Think of the answer to each question, then hold the mouse over the answer button to see the answer.

1. Is the following true or false (2>=5) false (greater than or equal)

2. Is the following true or false (3<6 || 6>4) true (or: at least one is true)

3. Is the following true or false (7!=4) true

4. Write the Boolean expression that will be true if a movie clip ball's x value is on the stage. (ball.x>=0 && ball.x<stage.stageWidth)

5. Is the following true or false (2<9 && 9>7) true (both are true)

6. Is the following true or false (10<=9) false (less than or equal)

7. Is the following true or false (4<9 && 9>7) true (both are true)

8. Is the following true or false (10<8 && 8>9) false (and: BOTH must be true)

9. Is the following true or false (7<=3) false (less than or equal)

10. Write the Boolean expression that will be true if a movie clip ball's x value is NOT on the stage. (ball.x<0 || ball.x>stage.stageWidth)

11. Is the following true or false (7<8 && 8>10) false (and: BOTH must be true)

12. Is the following true or false (1<8) true

13. Is the following true or false (2>6) false

14. Write the Boolean expression that will be true if mth is a valid month. (mth>=1 && mth<=12)

15. Is the following true or false (6<10 || 10>7) true (or: at least one is true)

16. Is the following true or false (4>8) false

17. Is the following true or false (5>4) true

18. Is the following true or false (9<4) false

19. Is the following true or false (10<4 || 4>5) false (neither is true)

20. Is the following true or false (1!=3) true

21. Is the following true or false (8<5 || 5>4) true (or: at least one is true)

22. An expression that can be true or false is ____ expression Boolean

23. Is the following true or false (1<1) false

24. Is the following true or false (1!=4) true

25. Is the following true or false (9>=4) true (greater than or equal)

LESSON

INDEX


Copyright © Hello World Publications. All rights reserved worldwide.

hello-world.com
Privacy
Policy

Site map

Hello-World

7990907625