Search Header Logo
Unit 3 Revision

Unit 3 Revision

Assessment

Presentation

Computers

10th Grade

Practice Problem

Medium

Created by

Raihaan Ahmed Chaudary, Teacher of Computer Science

Used 3+ times

FREE Resource

35 Slides • 26 Questions

1

media

2

media

3

Open Ended

Can you list 5 data types

4

media

5

Multiple Choice

What is 5 + 100 / 5

1
20
2

21

3
15
4
25

6

Multiple Choice

What is (90 - 9) / 9

1
9
2

11

3
10
4

1

7

Multiple Choice

29 MOD 10

1

3

2

2

3
9
4
10

8

Multiple Choice

16 DIV 3

1

1

2

5

3

6

4

3

9

Multiple Choice

((20 + 4) /3) DIV 5

1
3
2
1
3

5

4
2

10

media

11

Open Ended

What is the difference between a constant and a variable?

12

media

13

media

14

media

15

media

16

Open Ended

Give two reasons why you should give meaningful names to constants and variables

17

media

18

media

19

Open Ended

What is concatenation?

20

media

21

Match

Match the following

word = "Computer"

LENGTH (word)

SUBSTRING (word,2,4)

LCASE(word)

UCASE(word)

8

ompu

computer

COMPUTER

22

media

23

Open Ended

Name the three basic control structures in programming

S...

S...

I...

24

media

25

media

26

media

27

Multiple Choice

Question image

x = ?

1

a

2

b

28

Multiple Choice

Question image

x = ?

1

c

2

d

29

Multiple Choice

Question image

x = ?

1

e

2

f

30

media

31

Open Ended

Question image

On the left is a question, with some code to start a program to ask the question. The correct answer is '2'.

Write a selection statement to output “Correct!” if the user enters the correct answer, or “No, it’s the Pacific” if the user enters the wrong answer.

32

media

33

media

34

Open Ended

Question image

Write an IF statement involving a Boolean operator (AND, OR or NOT) which performs the same function as the following nested IF statement:

35

media

36

media

37

media

38

Open Ended

Question image

This FOR loop should find and print the largest number in an array numbers of ten positive integers.

It contains an error. Find and correct the error

39

media

40

media

41

media

42

Open Ended

Question image

Write the corrected algorithm using a WHILE loop instead of a FOR loop.

43

media

44

Open Ended

Question image

This is a program to draw circles in random colours, sizes and positions on the screen. A random number generator is used to generate a colour number which she allocates to red, yellow, green or blue.

What datatype is the variable colour?

45

Open Ended

Question image

Using an example for the program, what is meant by Selection?

46

Open Ended

Question image

Using an example from the program, what is meant by ITERATION?

47

Open Ended

Question image

What does the statement colourNumber ← ROUND(RANDOM()*3 + 1,0) do?

48

media

49

media

50

media

51

Open Ended

Question image

An array colourArray could be used instead of the CASE statement to assign colours to the variable colour. The index of the array starts at 1.

What would the array contain?

52

Open Ended

Write a statement to assign the string "red" to element 1 in the array

53

Open Ended

INPUT answer

has an input placed into the variable 'answer'

Enter a line of code to make sure the answer is in title case (first character upper case, rest lower case)?

54

media

55

media

56

media

57

media

58

media

59

Open Ended

Question image

This is a 2D array for a quiz.

The first column of the 2-D array stores the question, whilst the next three columns give the optional answers. The final column stores the correct answer from the three given.

Questions[1,2] would refer to the array item that contained “How many legs does a spider have?”

Write pseudocode which will show question 2, allow the user to write an answer and then check if the user is correct. If the user gives the correct answer, then output “Correct”, otherwise output “Incorrect”.

The program only needs to accept the correct answer number as stored in the 2-D array, it doesn’t need to accept the text answer.

60

media

61

media
media

Show answer

Auto Play

Slide 1 / 61

SLIDE