Search Header Logo
N5 Programming Recap

N5 Programming Recap

Assessment

Presentation

Computers

7th - 12th Grade

Practice Problem

Medium

Created by

Kelsey Swan

Used 3+ times

FREE Resource

5 Slides • 6 Questions

1

Programming Recap

N5

2

Variables and Data Types

When we create variables in our program we need to tell the program what type of data to expect.

String = Text

Integer = Whole Numbers

Single = Decimal Numbers

Boolean = True/False​

3

Multiple Choice

A program is being created to calculate the number of burgers in stock and the total profit made so far.

Identify the data types required for this program.

1

Stock - Integer

Profit - Single

2

Stock - Single

Profit - Single

3

Stock - Integer

Profit - Integer

4

Stock - Integer

Profit - String

4

Complex If Statements

A complex if statement includes more than one condition per If statement.

We do this using the 3 logic operators.​

5

Multiple Choice

Which one of the following is NOT a Logic Operator

1

AND

2

NOT

3

OR

4

=

6

Complex If Statements

Using AND, OR or NOT ​allow us to combine conditions.

E.G.

If mark >= 40 AND mark <= 55 THEN

Grade = "C"

End If​

7

Multiple Choice

Question image

What would be the output if 90 entered in as the score?

1

Proceed to level 2

2

Proceed to level 3

3

Proceed to level 4

4

Nothing

8

Multiple Choice

Question image

The output from the following code is:

You need to pass another unit

What must the values of the variables to get this output?

1

UnitOne = True

UnitTwo = True

2

UnitOne = False

UnitTwo = True

3

UnitOne = False

UnitTwo = False

9

Loops

Used when the programmer doesn't know how many times to repeat.

Will repeat WHILE something is true or UNTIL something is true​

Conditional Loops

Used when the programmer knows how many times the code should repeat.

Fixed Loops

10

Fill in the Blanks

media image

Type answer...

11

Multiple Choice

WHILE age < 18

MsgBox("Entry not allowed")

age = InputBox("Enter age")

End Loop

What value will trigger the while loop to start?

1

18 or under

2

18

3

Anything less than 18

4

Anything more than 18

Programming Recap

N5

Show answer

Auto Play

Slide 1 / 11

SLIDE