Subprograms

Subprograms

11th Grade

10 Qs

quiz-placeholder

Similar activities

Computer Science

Computer Science

3rd - 12th Grade

12 Qs

Unit 6 Quiz - Bootstrap: Algebra

Unit 6 Quiz - Bootstrap: Algebra

6th - 12th Grade

11 Qs

Python

Python

9th Grade - Professional Development

8 Qs

Python Built-in Functions

Python Built-in Functions

11th - 12th Grade

15 Qs

Code.org Unit 5 Vocab Quiz 1

Code.org Unit 5 Vocab Quiz 1

9th - 12th Grade

10 Qs

Python 145

Python 145

4th Grade - Professional Development

11 Qs

Python: Chapter 5 - True or False

Python: Chapter 5 - True or False

10th Grade - University

15 Qs

Creating and using classes in Python

Creating and using classes in Python

9th - 12th Grade

15 Qs

Subprograms

Subprograms

Assessment

Quiz

Education, Computers

11th Grade

Hard

Created by

Salah Mehdi

Used 15+ 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?