CMU Unit 2.2.4  and 7.2 Variables

CMU Unit 2.2.4 and 7.2 Variables

9th Grade

19 Qs

quiz-placeholder

Similar activities

CP M.6 Assessment Review

CP M.6 Assessment Review

9th - 12th Grade

17 Qs

JavaScript and Graphics

JavaScript and Graphics

9th - 12th Grade

15 Qs

Unit 3: Interactive Animations and Games - Lessons 3-6

Unit 3: Interactive Animations and Games - Lessons 3-6

6th Grade - University

15 Qs

Cmu Cs Academy Unit Two Variables

Cmu Cs Academy Unit Two Variables

9th Grade

19 Qs

Javascript Drawing

Javascript Drawing

8th - 12th Grade

15 Qs

Python Codehs

Python Codehs

9th - 12th Grade

16 Qs

Code HS Unit 6 Computer Science in Python

Code HS Unit 6 Computer Science in Python

9th - 12th Grade

16 Qs

Introduction to Javascript Programming

Introduction to Javascript Programming

9th - 10th Grade

16 Qs

CMU Unit 2.2.4  and 7.2 Variables

CMU Unit 2.2.4 and 7.2 Variables

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Joan Goldberg

Used 101+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable declared within a subroutine or function

Global

Local

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A variable declared in the main program

Global

Local

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct way to write a variable in Python?
myVariable = 10
my Variable = 10
myVariable is 10
myVariable: 10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an advantage of using local variables?

They allow the variable to be used throughout the whole program

They allow variable identifiers to be reused each time

They are easier to program than global variables

A wider range of data types can be used

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What term is used to describe data passed into/out of a program?

Variable

Loop

Constant

Parameter

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Leo wants to create a subroutine / function that will roll a dice. Which syntax is correct?

def dice roll ():

def diceroll ()

def diceroll ():

def diceroll []:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an advantage of using global variables?

They allow the variable to be used throughout the whole program

They allow variable identifiers to be reused each time

They are easier to program than global variables

A wider range of data types can be used

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?