Coding Flashcards

1
Q

Things To remember about variables

A
  • it is a place in the computer’s memory where a value is kept

-my variable can contain only one value at a time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does it mean to initialise a value

A

This means to give a starting value for the variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do these operators mean

A

> 50 (greater than 50)
<50 (less than 50)
=50

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the abs function do

A

It makes an negative number positive but does not affect a negative number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a string

A

A string is a sequence of characters in a specific order
This includes letters digitsand any other symbols that can be entered on a keyboard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What code block is used to repeat code

A

Forever block
Repeat block
Repeat until block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What’re common initialisation mistakes when using loops

A

Not initializing a variable
Initializing and variable in the incorrect position in the code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does it mean to initialise

A

To give a variable a starting value at the beginning of a program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly