Site hosted by Angelfire.com: Build your free website today!
Logo

 

QUIZ 7

AIM - To Show understanding of Simple Decision Statements (If...Then...End if) , planning and testing

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

In a construct diagram, what shape is used for a decision (if..then..end if)?

rectangle

parallelogram

hexagon

circle

square

Question 2

What inbuilt function would you use to check that the user has entered a number?

False

Integer

AsNumeric

Boolean

IsNumeric

Question 3

What statement below will check that number is greater than 20 and if it is display a message that says "Sorry too high"

If number > 20 Else

MsgBox "Sorry too high"

End If

If number < 20 Then

MsgBox "Sorry too high"

End If

If number < 20 Then

MsgBox "Sorry too high"

Else

"Sorry too low"

End If

If number > 20 Then

MsgBox "Sorry too high"

End If

number < 20

MsgBox "Sorry too high"

Question 4

The test table for a program should have the headings?

Action, Process, Code

Data, Result, Further Action

Input, Process, Output

Input, Action, Output

Data, Action, Further

Question 5

The testing phase of the planning is crucially important and is designed specifically to.....

Allow you to check the program functions correctly and to enter all possible data that the user could enter to see where input checks are needed.

Allow you to see if your code is correct and put REMs through

Tell you if the program works and if the user will like it

Allow you to indent the code and correct any spelling errors

Allow you to change variable names and re-write the code.

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 full code to get 2 numbers of a user, add them together and display the answer. Your code should check for numeric input.

The next page will give you the answer - try it yourself -before you move on, 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
Use F5 to refresh the web page so you can try again. Once you have answered a question correctly THE FIRST TIME, move onto the next question. There are no marks for trying twice!