![]() |
![]() |
![]() |
|
|
QUIZ 4
AIM - To Show understanding of Message box and variables. |
|
|
The answers to your questions will form the last file name in the URL. You need to click onto the radio buttons. If you have difficulty with any of the answers don't be disheartened, go back a few steps and re-read the last lesson. Only when you understand the vocabulary of programming will you have a solid foundation to build on. You have ONE try for each question. Question 1 Explanatory comments that run through the code are called ? Msgs RAMs ""
Strings Question 2 When the user clicks Yes on a message box the number returned to the program is? 06 5 1
7 Question 3 If I need to declare a variable to hold the number returned when the user clicks on a message box button. What type of variable is the most correct? String Single Number Integer
Byte Question 4 If I require a variable to hold prices of a music album between $20.00 and $39.99 which variable type should I choose? String Byte Integer Single Boolean Question 5 Which is the best variable name to store the price of the albums? x @shop albumPrice 123Sales
album price Good Work - Can YOU Solve This? OK if you have 5 correct answers you have learnt well and are ready for the next level. Before you click the button below write down the variable declaration for the album price. Below is the variable declaration for the number of apples in a SMALL bag. Dim appleCount as Byte You will need a variable type that allows for decimal places. It should be the smallest variable type that does this. The next page will give you the answer - try it yourself -NOW you'll learn more by having a go before you see the answer!!
Getting to the Next Lesson When you have 5 correct answers click the button. If you don't have the correct answers you will be taken back to the previous lesson. HINT
|
||
![]() |
||