2.2.1 Variables and Functions

2.2.1 Variables and Functions

12th Grade

10 Qs

quiz-placeholder

Similar activities

10 Important Python Fundamentals Questions

10 Important Python Fundamentals Questions

12th Grade

10 Qs

XI Assessemnt 2

XI Assessemnt 2

11th Grade - University

10 Qs

Functions and Parameters

Functions and Parameters

10th - 12th Grade

12 Qs

Global and local variables

Global and local variables

10th - 12th Grade

10 Qs

Python Functions

Python Functions

9th - 12th Grade

13 Qs

Exit Ticket 1/17

Exit Ticket 1/17

9th - 12th Grade

12 Qs

Python and Algorithms

Python and Algorithms

12th Grade

15 Qs

Functions In Python

Functions In Python

12th Grade

10 Qs

2.2.1 Variables and Functions

2.2.1 Variables and Functions

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Robin Smith

Used 17+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a function and a procedure?

They are the same

A function returns a value

A procedure returns a value

A function can only be called from a procedure

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the name used for the data passed to a subroutine in parentheses e.g. x and y in the example below.


multiply( x , y )

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the name for the local variables declared in the parentheses of a subroutine definition e.g. a and b in the example below.


function multiply (a, b)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

8 10

10 8

6 0

0 6

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of parameter passing allows a subroutine to change the value of an argument in the calling routine?

pass by value

pass by reference

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of parameter passing is when the value of the argument is copied to the local parameter variable?

pass by value

pass by reference

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents labels that represent values in memory that can be changed during program execution?

Variables

Constants

Data types

Subroutines

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?