Python Definitions

Python Definitions

10th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Computer Science

Computer Science

3rd - 12th Grade

12 Qs

XII Csc Unit I Challenge

XII Csc Unit I Challenge

12th Grade

10 Qs

Java Script Quiz

Java Script Quiz

9th - 12th Grade

15 Qs

Python functions

Python functions

12th Grade

11 Qs

algorithms and programming

algorithms and programming

8th - 10th Grade

16 Qs

H466 - Global and Local Variables

H466 - Global and Local Variables

12th Grade - University

10 Qs

Code.org Unit 5 Lesson 15 Assessment

Code.org Unit 5 Lesson 15 Assessment

9th - 12th Grade

15 Qs

Code.org Unit 5 Vocab Quiz 1

Code.org Unit 5 Vocab Quiz 1

9th - 12th Grade

10 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?