Year 11 Taster - Subprograms Review

Year 11 Taster - Subprograms Review

10th Grade

7 Qs

quiz-placeholder

Similar activities

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

Programming Java

Programming Java

9th Grade - University

11 Qs

Apple Swift Coding I - Lesson 1 & 2

Apple Swift Coding I - Lesson 1 & 2

9th - 12th Grade

11 Qs

S3 Python 1

S3 Python 1

8th - 10th Grade

12 Qs

Code.org Unit 5 Vocab Quiz 1

Code.org Unit 5 Vocab Quiz 1

9th - 12th Grade

10 Qs

Comp Prog A 9-3-21

Comp Prog A 9-3-21

9th - 12th Grade

10 Qs

KS3 Year 9 Python Quiz 02

KS3 Year 9 Python Quiz 02

10th Grade

8 Qs

Year 11 Taster - Subprograms Review

Year 11 Taster - Subprograms Review

Assessment

Quiz

Computers

10th Grade

Medium

Created by

P Bates

Used 3+ times

FREE Resource

7 questions

Show all answers

1.

HOTSPOT QUESTION

1 min • 2 pts

Identify the first line of code and last line of code that define the subprogram.

2.

HOTSPOT QUESTION

1 min • 2 pts

Identify the parameters.

3.

HOTSPOT QUESTION

1 min • 2 pts

Identify the arguments.

4.

HOTSPOT QUESTION

1 min • 1 pt

Identify the local variable.

5.

LABELLING QUESTION

1 min • 6 pts

Identify the different sections of the code.
a
b
c
d
e
f
Selection
Variable Assignment
Function Definition
List assignment
Procedure Call
Loop
Function Call
Print Statement
Comment

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Identify which of the following identifiers is NOT a global variable

TotalArea

Area

Length

i

Answer explanation

The identifier 'Area' is not a global variable because it is likely defined within a specific scope, while 'TotalArea', 'Length', and 'i' are typically used as global variables in programming contexts.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The variable i is initialised (created) in line 17 of the program.
Identify the values the variable i will hold while the program is running.

1,2,3

2,4,5

0,1,2

7,6,5

Answer explanation

The variable i starts at 0 and increments by 1 in each iteration. Therefore, while the program runs, i will hold the values 0, 1, and 2 before it stops, making the correct choice 0,1,2.