Python Definitions

Python Definitions

10th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Computer Science

Computer Science

3rd - 12th Grade

12 Qs

Python Loops

Python Loops

9th - 11th Grade

12 Qs

GCSE Computer Science - Python Programming Concepts

GCSE Computer Science - Python Programming Concepts

9th - 11th Grade

17 Qs

Java Basics

Java Basics

12th Grade

17 Qs

Code.org Unit 5 Vocab Quiz 1

Code.org Unit 5 Vocab Quiz 1

9th - 12th Grade

10 Qs

GCSE Computing - Subprograms

GCSE Computing - Subprograms

9th - 10th Grade

14 Qs

Python Functions

Python Functions

12th Grade

15 Qs

Exceptions and Definitions

Exceptions and Definitions

9th - 12th Grade

12 Qs

Python Definitions

Python Definitions

Assessment

Quiz

Computers, Education

10th - 12th Grade

Medium

Created by

Carol Luce

Used 20+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What term is used to describe data passed into a definition?

Variable

Loop

Constant

Parameter

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How do you correctly call this function definition?

def(1)

x=square( )

defSquare(4)

x=square(5)

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following keywords marks the begining of the function block?

Func

define

def

function

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a variable defined outside (i.e. in the main code) all the definitions referred to as?

A static variable

A global variable

A local variable

An automatic variable

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a variable defined inside a definition referred to as?

A static variable

A global variable

A local variable

An automatic variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be PRINTED?

nothing

5

6

an error message

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When writing a definition, it must occur before it is called.

true

false

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?