Search Header Logo

COMP I77 Module 2 Quiz

Authored by Karen Diggs

Computers

11th Grade

Used 18+ times

COMP I77 Module 2 Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A is a named item used to hold a value.

constant

number

statement

variable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements has a syntax error? Assume age and years are variables that have already been defined.

age = years - 2

age + 2 = years

age = 17 - 2

age = -15

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the value of y after the following code is executed? Note that the question asks for y, not x.

X=10

y= x+2

x = 12

8

10

12

14

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following symbols can be used as part of an identifier?

@

$

&

(underscore)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A is a word that is part of the Python language and can't be used as a variable name.

keyword

special token

syntax symbol

stylized word

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

is the process where objects that are no longer needed are deleted.

Identity recycling

Memory clearing

Garbage collection

Object recycling

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Objects like integers and strings that can't be modified are called _____.

immutable

mutable

frozen

set

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?