CMU CS Academy Unit 7.2 Local Variables

CMU CS Academy Unit 7.2 Local Variables

9th Grade

7 Qs

quiz-placeholder

Similar activities

CS Disco U3L12

CS Disco U3L12

6th - 12th Grade

10 Qs

Grade 9 - User Defined Methods

Grade 9 - User Defined Methods

9th Grade

10 Qs

Chapter 3 - Think Python - Voc

Chapter 3 - Think Python - Voc

9th - 12th Grade

10 Qs

AP Computer Science Principles Unit 7 Review

AP Computer Science Principles Unit 7 Review

9th - 12th Grade

12 Qs

Function Basics

Function Basics

9th - 12th Grade

10 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

NIVELACIÓN EXPLORACIÓN

NIVELACIÓN EXPLORACIÓN

9th Grade

10 Qs

STM20263 TOPIC 5

STM20263 TOPIC 5

9th 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