Search Header Logo

ICS Unit 3 Chapter 2 Exam

Authored by Maureen Sanders-Brunner

Computers

9th - 12th Grade

Used 7+ times

ICS Unit 3 Chapter 2 Exam
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a function call?

sprite.velocityX = 5;

drawBackground();

ellipse(200, 200);

updateScore();

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Calling a function gives a name to a block of code without running the code.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Defining a function runs the code inside the function block. 

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This is the syntax for defining a function to draw a background scene.

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

In your code, where should you define your functions? Choose TWO possible answers.

All at the top of your program

All at the bottom of your program

Inside the drawloop

Right before you call the function.

Right after you call the function.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a rule or convention for naming functions?

Do not start with a symbol or number.

Do not use spaces.

Name should be short but descriptive

Use camelCase

Name must not contain a number.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Functions are a form of ______ because the function _______ hides the details of all the program code inside the function ______.

abstraction, call, definition

conditional, call, definition

conditional, definition, call

abstraction, definition, call

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?