Subprograms

Subprograms

11th Grade

10 Qs

quiz-placeholder

Similar activities

Python Vocab Matching

Python Vocab Matching

9th - 12th Grade

7 Qs

CICS Test 2 Review

CICS Test 2 Review

9th - 12th Grade

15 Qs

Python - Glossary - Functions - Think Python

Python - Glossary - Functions - Think Python

8th - 12th Grade

10 Qs

Unit 2 Quiz - Bootstrap: Algebra

Unit 2 Quiz - Bootstrap: Algebra

6th - 12th Grade

11 Qs

MTA Review #2

MTA Review #2

9th - 12th Grade

10 Qs

2.2 EOU Quiz

2.2 EOU Quiz

1st Grade - Professional Development

10 Qs

Python Definitions

Python Definitions

10th - 12th Grade

12 Qs

Lists, Subroutines and Sequence in Pseudocode - Python

Lists, Subroutines and Sequence in Pseudocode - Python

1st - 11th Grade

14 Qs

Subprograms

Subprograms

Assessment

Quiz

Education, Computers

11th Grade

Hard

Created by

Salah Mehdi

Used 14+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a procedure and a function?

There is no difference

A procedure performs a task whereas a function produces information

A procedure produces information whereas a function performs a task

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a module?

A module is a small section of a program

A module allows you to pass information into a function

A module is the name for a value passed into a function

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a parameter?

Parameters are the values that are passed into a function or procedure

Parameters are the names of the information that is used in a function or procedure

A parameter is a small section of program

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an argument?

An argument is a value that is passed into a function or procedure

An argument is a small section of program

An argument is the name of the information that is used in a function or procedure

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a local and a global variable?

A global variable is declared so it can be used in any part of the program and a local variable is only available in a specific function

A local variable is declared so it can be used in any part of the program and a global variable is only available in a specific function

Both local and global variables can be used in any part of a program

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a module-scoped variable?

A variable that is available in any part of the program

A variable that can only be used once

A variable that is only available in a single file or module

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is meant by 'executing' a function?

Deleting the function

Changing the function

Asking a function to run

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?