CMU CS Academy Unit 7.2 Local Variables

CMU CS Academy Unit 7.2 Local Variables

9th Grade

7 Qs

quiz-placeholder

Similar activities

#10 Codecademy/KhanAcademy Weekly Quiz: Coloring with JavaScript

#10 Codecademy/KhanAcademy Weekly Quiz: Coloring with JavaScript

9th - 12th Grade

9 Qs

Computer Part

Computer Part

KG - University

10 Qs

computer parts and function

computer parts and function

7th - 10th Grade

10 Qs

Types of Computers

Types of Computers

7th Grade - University

10 Qs

JavaScript L1 Quiz 2

JavaScript L1 Quiz 2

5th - 12th Grade

10 Qs

Python Concepts

Python Concepts

9th Grade

10 Qs

Structured Programming

Structured Programming

9th Grade

11 Qs

Basic Parts of Computer

Basic Parts of Computer

6th - 10th 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