What is the process of checking a program for errors?
A
Error checking
B
De-bugging
C
Error finding
D
Mistake finding
Slide 5 - Quizvraag
Which symbol is used to comment our code?
A
#
B
""
C
()
D
-
Slide 6 - Quizvraag
Variables recap
In programming, a variable is like a container that holds a piece of information. This information can be anything, like a number, a word, or even a whole sentence!
To use a variable, you first need to give it a name. This is like labelling the box with the word "apple" so you know what's inside. In programming, you can choose any name you want for your variable, as long as it follows certain rules. For example, the name can't have spaces in it, and it can't start with a number.
Slide 7 - Tekstslide
Let's look at how we would declare a variable
name = "bob"
We have to give a name to the variable, in this case I have named the variable name as I am storing the name "Bob"
print (name)
I then use the print code to print the contents of my variable, I do not need speech marks when printing a saved variable.
Slide 8 - Tekstslide
What will be the output from these lines of code?
A
Hello Jim
B
"Hello " + name"
C
Hello name
D
An error will occur
Slide 9 - Quizvraag
What will be the output from these lines of code?
A
Hello Bob
B
"Hello " + name"
C
Hello name
D
An error will occur
Slide 10 - Quizvraag
What will be the output from these lines of code?
A
Hello name my name is myname
B
"Hello " + name" + myname
C
Hello Bob My name is John
D
An error will occur
Slide 11 - Quizvraag
Create your own
Create your own variables to store your favorite subject, book, film, food or sport.