Search Header Logo
Computational thinking

Computational thinking

Assessment

Presentation

Computers

11th Grade

Medium

Created by

K Parker

Used 14+ times

FREE Resource

22 Slides • 40 Questions

1

Computational thinking

media

2

​Computational thinking

Computational thinking involves taking that complex problem and breaking it down into a series of small, more manageable problems (decomposition).

Each of these smaller problems can then be looked at individually, considering how similar problems have been solved previously and focusing only on the important details, while ignoring irrelevant information (abstraction).

Next, simple steps or rules to solve each of the smaller problems can be designed (algorithmic thinking).

3

Fill in the Blank

There are 3 key techniques to computational thinking, they are: abstraction, algorithmic thinking and .....

4

Decomposition

Breaking a problem down

This is when we break a larger problem down into smaller more manageable tasks

media

5

Abstraction

Ignoring / removing

This is when we remove or ignore the bits that are not important to solving the problem.

For​ example, when they created an underground tube they chose to ignore buildings and trees

media

6

Algorithmic thinking

Solution to problem

Once we have used decomposition and abstraction to a problem, we start to develop a solution with flowcharts and pseudocode

media

7

Open Ended

What are the 3 concepts of computational thinking?

8

Open Ended

What is Decomposition?

9

Open Ended

What is abstraction?

10

Open Ended

What is algorithmic thinking?

11

media

We can show the solution to a problem with a flowchart

Some text here about the topic of discussion.

Algor​ithms:

​Flowcharts

12

media

We can show the solution to a problem written instructions - pseudocode

Some text here about the topic of discussion.

Algor​ithms:

​Pseudocode

13

​Algorithm constructs

Algorithms are designed using common building blocks. These building blocks form the basis for all programs.

There are three basic building blocks to consider:

  • sequence is the order in which instructions occur and are processed

  • selection determines which path a program takes when it is running

  • iteration is the repeated execution of a section of code when a program is runningm

14

Multiple Select

There are 3 basic programming constructs, select them from below:

1

Decomposition

2

Sequence

3

Abstraction

4

Selection

5

Iteration

15

​Sequence

Sequence is the order in which programming statements are executed. Programming statements usually run one after another in order, unless one of the other programming constructs is used.

The sequence of a program is extremely important as once these are translated, carrying out instructions in the wrong order leads to a program performing incorrectly.

16

​Sequence

​Here is an example of a program that uses sequence, the lines of code are ordered

media

17

​Sequence

​Here is an example of a program that uses sequence, the arrows show the direction on the sequence

media

18

​Selection

Selection is a programming construct where a section of code is run only if a condition is met. In programming, there are occasions when a decision needs to be made. Selection is the process of making a decision. The result of the decision determines which path the program will take next.

For example, a program could tell a user whether they are old enough to learn how to drive a car. If the user's age meets the required driving age, the program would follow one path and execute one set of statements. Otherwise, it would follow a different path and execute a different set of statements.

19

​Selection

​Here is an example of selection.

​In Python we would use:

​if .........

​elif

​else

media

20

​Selection

​Here is an example of selection.

In flowcharts selection is represented as a decision, this is a diamond shape that has a Yes/True and No/False outcome

media

21

​Iteration

There are times when a program needs to repeat certain steps until told otherwise, or until a condition has been met. This process is known as iteration.

Iteration is often referred to as looping, since the program ‘loops’ back to an earlier line of code. Iteration is also known as repetition.

Iteration allows programmers to simplify a program and make it more efficient . Instead of writing out the same lines of code again and again, a programmer can write a section of code once, and ask the program to execute the same line repeatedly until no longer needed.

22

​Iteration

​Here is an example of using Iteration, in this case we are using a 'while' loop that will continue to print 'Hello World' until the count gets to 3

media

23

​Iteration

​Here is an example of using Iteration, in this case we are using a 'while' loop that will continue to print 'Looping' until the count gets to 9

media

24

Multiple Choice

Question image

Which of the 3 programming constructs is being used here?

1

Selection

2

Sequence

3

Iteration

4

Decomposition

25

Multiple Choice

Question image

Which of the 3 programming constructs is being used here?

1

Selection

2

Sequence

3

Iteration

4

Decomposition

26

Multiple Choice

Question image

Which of the 3 programming constructs is being used here?

1

Selection

2

Sequence

3

Iteration

4

Decomposition

27

Open Ended

What is Computational thinking?

28

Multiple Choice

Question image

The table to the left contains several definitions of terms that are used in Computer Science.

Select the letter of the definition that matches the keyword 'decomposition'

1

A

2

B

3

F

4

D

5

E

29

Multiple Choice

Question image

The table to the left contains several definitions of terms that are used in Computer Science.

Select the letter of the definition that matches the keyword 'Abstraction'

1

A

2

B

3

F

4

D

5

E

30

Multiple Choice

Question image

The table to the left contains several definitions of terms that are used in Computer Science.

Select the letter of the definition that matches the keyword 'casting'

1

A

2

B

3

F

4

D

5

E

31

Multiple Select

Question image

A programmer has written an algorithm to outpur a series of numbers. The algorithm is shown to the left.

Identify TWO basic programming constructs that have been used in this algorithm

1

Sequence

2

Iteration

3

Selection

4

Casting

32

​Data Types

Data is classified into types, such as a set of whole numbers (also known as integers) or a set of printing characters.

Different types of data are represented in different ways inside a computer and need varying amounts of memory to store them.

They also have different operations that can be performed upon them. All values that belong to the same data type will be represented in the same way.

33

The most commonly supported data types in programming languages are:

media

34

Multiple Choice

Which of the following is of the data type STRING

1

"Hello"

2

Yes / No

3

"A"

4

7

5

9.65

35

Multiple Choice

Which of the following is of the data type FLOATING POINT (FLOAT)

1

"Hello"

2

Yes / No

3

"A"

4

7

5

9.65

36

Multiple Choice

Which of the following is of the data type BOOLEAN

1

"Hello"

2

Yes / No

3

"A"

4

7

5

9.65

37

Multiple Choice

Which of the following is of the data type CHARACTER

1

"Hello"

2

Yes / No

3

"A"

4

7

5

9.65

38

​Variables

Variables are data values that can change when the user is asked a question, for example, their age. Variables may change during program execution.

A variable is a memory location. It has a name that is associated with that location. The memory location is used to hold data. The key difference when comparing a constant to a variable is that the value associated with a variable name may change during program execution. For example 'highScore' would need to be variable to change throughout a game.

39

​Variables

​As you can see, variables are the names of the location, each variable stores a value. The value will be stored as a data type

media

40

Multiple Choice

Question image

What is the variable name that holds the value "TechVidvan"?

1

Name

2

num

3

name

4

seq

41

Multiple Choice

Question image

What is the variable name that holds the value 35453?

1

Name

2

num

3

name

4

seq

42

Multiple Choice

Question image

What is the data type of the value that is stored in the variable called name?

1

string

2

int

3

list

4

boolean

43

Multiple Choice

Question image

What is the data type of the value that is stored in the variable called num?

1

string

2

int

3

list

4

boolean

44

Multiple Choice

Question image

What is the data type of the value that is stored in the variable called seq?

1

string

2

int

3

list

4

boolean

45

Multiple Choice

Question image

Here is a variable that will hold the users name. What data type will this value be set as?

1

string

2

int

3

boolean

4

character

46

Open Ended

Type a pseudocode statement to assign the value 7.3 to a variable with the identifier timer

47

Multiple Choice

Select the most appropriate data type for the variable timer

1

Float

2

Integer

3

String

4

Boolean

48

Multiple Choice

Question image

Heath is researching how long, to the nearest minute, each student in his class spends laying computer games in 1 week. He is storing the data in a 2D array.

Select the data type that could be used to store the number of minutes in this array

1

String

2

Float

3

Integer

4

Boolean

49

Open Ended

Question image

State why this data type is the most appropriate

50

Multiple Choice

Question image

When customers pay using a card such as the one to the left, shops use computer systems to process the payment. Select the most appropriate data type for the amount paid

1

Date

2

Integer

3

Real/Float

4

String

51

Multiple Choice

Question image

When customers pay using a card such as the one to the left, shops use computer systems to process the payment. Select the most appropriate data type for the customers card number

1

Date

2

Integer

3

Real/Float

4

String

52

Multiple Choice

Question image

When customers pay using a card such as the one to the left, shops use computer systems to process the payment. Select the most appropriate data type for when the payment is made

1

Date

2

Integer

3

Real/Float

4

String

53

​Casting

There may be times when you want to specify a type on to a variable. This can be done with casting.

  • int() - constructs an integer number

  • float() - constructs a float number

  • str() - constructs a string

54

Fill in the Blank

Question image

What would I have to type before the word input to cast the datatype of the value stored in this variable to an integer

55

Fill in the Blank

Question image

Here is some code, a word has been covered, what is this word?

56

Fill in the Blank

Question image

Here is some code, a word has been covered, what is this word?

57

Fill in the Blank

Question image

Here is some code, a word has been covered, what is this word?

58

Fill in the Blank

Question image

Here is some code, why is it erroring?

59

Fill in the Blank

Question image

Here is some code, a word has been covered, what is this word?

60

Open Ended

Question image

Louise writes a program to work out is a number entered by the user is odd or even. Her first attempt is shown to the left.

The program contains a syntax error on line 05

State what is meant by a syntax error

61

Open Ended

Question image

Louise writes a program to work out is a number entered by the user is odd or even. Her first attempt is shown to the left.

The program contains a syntax error on line 05

Give a corrected version of line 05 that fixes the syntax error

62

Open Ended

A program needs to perform the following tasks:

Input two numbers from the user

Compare both numbers and output the largest number

Type the algorithm for this program:

Computational thinking

media

Show answer

Auto Play

Slide 1 / 62

SLIDE