Year 8 2024 Flashcards

1
Q

Name 5 types of computers.

A

iPad, smart phone, desktop, laptop, mainframe.

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

What is programming/coding?

A

A process for telling a computer which tasks to perform in order to solve problems.

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

What are 5 examples of programming languages?

A

Python, Ruby, JavaScript, C, C++.

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

What are the characteristics of a good programmer?

A

Passionate, patient, positive, collaborative.

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

What will happen when simple block based computer programmes are executed?

A

Once the program begins execution it is entirely copied to the RAM.

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

How do you complete or modify block based programs?

A

Block-based coding works by dragging together ‘blocks’ of code to make programs that can do things.

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

What is a variable?

A

The value that changes in a programme, eg. The score or the timer.

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

What are sequences?

A

A series of coded instructions that tell the computer what to do.

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

What are iteration (loops) ?

A

A loop is a sequence of instructions that is repeated for a specified number of times or until a particular outcome is reached.

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

What are selections (if-else statements) ?

A

A conditional statement that runs a different set of statements depending on whether an expression is true or false.

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

What are events?

A

Events are things that happen in the system you are programming.

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

How do you write code to output a message in Python?

A

print(“hello world”)

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

How do you declare a variable and assign a value to it?

A

The assignment operator, denoted by the “=” symbol, is the operator that is used to assign values to variables in Python: x=1.

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

How do you get input from a user and store it in a variable?

A

You use the input() function to ask the user for input.

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

How do you combine the value stored in a variable within a sentence and output it?

A

By using the plus (“+”) operator. You can combine both string variables and string literals using the “+” operator.

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

How do you use casting to get integers from the user and do basic arithmetic with them?

A

Casting in python is therefore done using constructor functions: int()

17
Q

How do you use if-else statements to tell python to check for a condition and present 2 alternatives depending on the result?

A

The if else statement essentially says: “ if this condition is True do the following thing, else do this thing instead”.

18
Q

How do you do arithmatic operations to do calculations in Python?

A

You use the built-in mathematical operators, such as addition ( + ), subtraction ( - ), division ( / ), and multiplication ( * ).

19
Q

How do you use operators to compare data in python?

A

The six comparison operators are 1) == or equal to, 2) != or not equal to, 3) > or greater than, 4) >= or greater than or equal to, 5) < or less than, and 6) <= or less than or equal to.

20
Q

What are the 3 types of errors?

A

Syntax - incorrect grammar in the program.
Runtime - when the programme is asked to do something it cannot perform.
Logic - an error in the meaning of the code.