
N5 Programming Recap
Presentation
•
Computers
•
7th - 12th Grade
•
Practice Problem
•
Medium
Kelsey Swan
Used 3+ times
FREE Resource
5 Slides • 6 Questions
1
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.
Stock - Integer
Profit - Single
Stock - Single
Profit - Single
Stock - Integer
Profit - Integer
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
AND
NOT
OR
=
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
What would be the output if 90 entered in as the score?
Proceed to level 2
Proceed to level 3
Proceed to level 4
Nothing
8
Multiple Choice
The output from the following code is:
You need to pass another unit
What must the values of the variables to get this output?
UnitOne = True
UnitTwo = True
UnitOne = False
UnitTwo = True
UnitOne = False
UnitTwo = False
9
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
Identify the following type of loop used in this code.
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?
18 or under
18
Anything less than 18
Anything more than 18
N5
Show answer
Auto Play
Slide 1 / 11
SLIDE
Similar Resources on Wayground
7 questions
Distance vs Displacement
Presentation
•
6th - 12th Grade
7 questions
Unit Conversions
Presentation
•
7th - 12th Grade
10 questions
Code Structure / Defining Functions / Finishing Strong
Presentation
•
8th - 12th Grade
12 questions
What is Science?
Presentation
•
KG - 12th Grade
8 questions
Digital Privacy
Presentation
•
9th - 12th Grade
9 questions
οι 4 εποχές
Presentation
•
KG
10 questions
Graphing quadratics
Presentation
•
7th - 12th Grade
10 questions
One-Step Inequalities: Lesson 2
Presentation
•
6th - 12th Grade
Popular Resources on Wayground
10 questions
How much do you know about our Portrait of an Eagle?
Quiz
•
10th Grade
10 questions
Fast Food Slogans
Quiz
•
6th - 8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Copyright and Fair Use
Quiz
•
6th - 8th Grade
20 questions
[AP CSP] Python Coding: Functions, Parameters, Return
Presentation
•
9th - 12th Grade
15 questions
Internet Safety
Quiz
•
7th Grade
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
20 questions
APCS Unit 1A
Quiz
•
9th - 12th Grade
24 questions
Binary
Quiz
•
9th - 12th Grade