CMU CS Academy Unit 7.2 Local Variables

CMU CS Academy Unit 7.2 Local Variables

9th Grade

7 Qs

quiz-placeholder

Similar activities

CMU CS Unit 2

CMU CS Unit 2

9th Grade

11 Qs

CMU CS Academy Unit 2 Part 3 Mouse Release Events

CMU CS Academy Unit 2 Part 3 Mouse Release Events

9th Grade

11 Qs

Function Basics

Function Basics

9th - 12th Grade

10 Qs

3prep tr2 ch3  1

3prep tr2 ch3 1

9th Grade

11 Qs

[Hall] 10.2 JS Functions

[Hall] 10.2 JS Functions

9th - 12th Grade

11 Qs

CodeHS 2.8 Functions to 2.12 User Input Review

CodeHS 2.8 Functions to 2.12 User Input Review

9th - 12th Grade

10 Qs

Chapter 5

Chapter 5

9th Grade

10 Qs

Python 2

Python 2

9th - 12th Grade

10 Qs

CMU CS Academy Unit 7.2 Local Variables

CMU CS Academy Unit 7.2 Local Variables

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Joan Goldberg

Used 15+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about global variables?

Globals should never be used.

Globals should be used as little as possible.

Python will not run code that includes globals.

Globals should be used as much as possible.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about function parameters?

Function parameters should never be used.

Function parameters are locals not globals.

Function parameters are globals not locals.

Function parameters should be used as little as possible.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which variables are global?

color

mouseX, mouseY

mouseX, mouseY, color

counter

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which variables are local?

color

mouseX, mouseY

mouseX, mouseY, color

counter

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which variables are function parameters?

color

mouseX, mouseY

mouseX, mouseY, color

counter

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which variables are helper variables?

color

mouseX, mouseY

mouseX, mouseY, color

counter

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Media Image

Select the true statements.

s is a local variable

s is a global variable

s is a helper variable

s is.a function parameter