
Introduction to Programming
Presentation
•
Computers
•
9th - 10th Grade
•
Medium
Calum Gordon
Used 15+ times
FREE Resource
7 Slides • 20 Questions
1
Introduction to Programming
by BSN Computing
2
3
4
Multiple Select
In this lesson I am going to learn to use ... ?
Sequence in programs
Selection in programs
Repetition (while) in programs
Iteration (one-dimensional) in programs
5
6
Multiple Select
Which two of these programs would generate a run-time error caused by sequencing?
a = 3
b = 4
c = a + b
b = c * 2
print(a+b)
a = 3
b = 4
b = c * 2
c = a + b
print(a+b)
a = 3
b = a + b
c = a + b
b = c * 2
print(a+b)
a = a + a
b = a * 2
c = a + b
b = c * 2
print(a+b)
7
Open Ended
Write a short Python program that swaps the values of three variable, to illustrate the importance of sequence in code. So:
var2 = var1
var3 = var2
var1 = var3
8
9
Fill in the Blanks
Type the line number where a selection structure starts ...
Type answer...
10
Fill in the Blanks
Type the line number where a selection structure ends ...
Type answer...
11
Multiple Choice
What is output if:
vegName = "broccoli"
vegNum = 1
vegNumRandom = 2
Invalid vegetable number
So you think you can eat 1 broccoli do you?
Ah ha, the computer can eat 2 broccoli.
Looks like we both love broccoli
So you think you can eat 1 broccoli do you?
You win. The computer can only eat 2 broccoli.
12
Multiple Choice
What is output if:
vegName = "carrots"
vegNum = 21
vegNumRandom = 20
Invalid vegetable number
So you think you can eat 21 carrots do you?
Ah ha, the computer can eat 20 carrots.
Looks like we both love carrots.
So you think you can eat 21 carrots do you?
You win. The computer can only eat 20 carrots.
13
Multiple Choice
What is output if:
vegName = ""
vegNum = 0
vegNumRandom = 1
Invalid vegetable number
So you think you can eat 0 do you?
Ah ha, the computer can eat 1.
You must enter a vegetable name.
So you think you can eat 0 do you?
You win. The computer can only eat 1.
14
Open Ended
Write a selection block in Python that displays a student's Key Stage (1 to 5) depending on the year at school that is input
15
16
Multiple Select
Choose two other terms for repetition of a block of code ...
Looping
Iteration
Recursion
Reflection
17
Multiple Choice
Which one is a conditional loop in Python?
while ...
for ... in range(...)
for ... in ...
repeat ... until ...
18
Multiple Choice
Which one is a count-controlled loop in Python?
while ...
for ... in range(...)
for ... in ...
repeat ... until ...
19
Multiple Choice
Which one is an iterative loop over a data structure in Python?
while ...
for ... in range(...)
for ... in ...
repeat ... until ...
20
Multiple Choice
Which one is a loop that is not available in Python?
while ...
for ... in range(...)
for ... in ...
repeat ... until ...
21
Open Ended
Write a conditional loop in Python that asks the user to enter a number divisible by 2 and keeps asking for a number until a suitable number is input. It then outputs the number.
22
Open Ended
Write a count-controlled loop in Python that outputs the times table of a number input by the user, from 1 x up to 12 x the number.
23
Open Ended
Write an iterative loop in Python that counts the number of vowel letters in a string input by the user and outputs that number.
24
25
Multiple Select
In this lesson I have learned to use ...
Sequence in programs
Selection in programs
Repetition (while) in programs
Iteration (one-dimensional) in programs
26
Open Ended
Thinking Hard
What was the most important thing you've learned in this lesson? Why?
(press Shift+Enter to take a new line ...)
27
Poll
How much of this lesson have you understood?
None of it
Some of it
Most of it
All of it
Introduction to Programming
by BSN Computing
Show answer
Auto Play
Slide 1 / 27
SLIDE
Similar Resources on Wayground
20 questions
Box and Whiskers Plot
Presentation
•
9th - 10th Grade
20 questions
Bill of Rights
Presentation
•
9th - 10th Grade
20 questions
MITS Unit 5: Commas
Presentation
•
9th - 10th Grade
21 questions
Pronombres del objeto directo
Presentation
•
9th - 10th Grade
21 questions
CARBON AND ITS COMPOUNDS
Presentation
•
9th - 10th Grade
20 questions
Evaluación Diagnostica de Computación
Presentation
•
9th - 10th Grade
20 questions
Arrays in Swift
Presentation
•
9th - 10th Grade
Popular Resources on Wayground
6 questions
PRIDE Always and Everywhere
Presentation
•
12th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
26 questions
KOR Review Kahoot Questions
Quiz
•
8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
12 questions
Unit Zero lesson 2 cafeteria
Presentation
•
9th - 12th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
10 questions
Riddles Riddles fun Riddles
Quiz
•
6th - 12th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade