Functions and Procedures

Functions and Procedures

9th - 11th Grade

8 Qs

quiz-placeholder

Similar activities

Python Function

Python Function

11th - 12th Grade

11 Qs

Python Loops

Python Loops

9th - 11th Grade

12 Qs

A words - GCSE Computer Science

A words - GCSE Computer Science

1st - 10th Grade

13 Qs

S3 SDD Unit 2 - 6. Evaluation

S3 SDD Unit 2 - 6. Evaluation

9th Grade

10 Qs

APCS 2023-2024 Lesson 0.2 Course Overview

APCS 2023-2024 Lesson 0.2 Course Overview

9th - 12th Grade

10 Qs

CSC401- G9[GEN]_53

CSC401- G9[GEN]_53

9th Grade

10 Qs

CSP I - Unit 4 – Lessons 9-11 (Functions)

CSP I - Unit 4 – Lessons 9-11 (Functions)

9th Grade

7 Qs

2.1 Procedures

2.1 Procedures

8th - 10th Grade

9 Qs

Functions and Procedures

Functions and Procedures

Assessment

Quiz

Computers

9th - 11th Grade

Medium

Created by

Paul Greenwood

Used 18+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What term is used to describe data passed into/out of a program?

Variable

Loop

Constant

Parameter

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the difference between a function and a procedure?

They are the same thing

A subroutine passes values back out to the program, a function does not

A function passes values back out to the program, a procedure does not

A function can run without being called

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What will be the output of this program if the user enters "Han" and then "Solo"?

An error

Nothing

first surname

Han Solo

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What would the output be for the following program if the user enters 4 and 6?

10

14

16

error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a procedure?
A small section of code within a program which performs a task
Code which produces a calculated result

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is a function?
A small section of code within a program which performs a task
Code which produces a calculated result

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why are procedures used by programmers?
To reduce repetition of code
To reduce repetition of code and to calculate a value

8.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why are functions used by programmers?
To reduce repetition of code
To reduce repetition of code and to calculate a value