8.QZ - Fish Tank Starter Code Review

8.QZ - Fish Tank Starter Code Review

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

CMU CS

CMU CS

9th Grade

11 Qs

Code.org CSD Unit 3 Lessons 1-12

Code.org CSD Unit 3 Lessons 1-12

3rd - 12th Grade

20 Qs

Small Basic Quiz

Small Basic Quiz

7th - 9th Grade

12 Qs

Unit 1 Quiz - Bootstrap: Algebra

Unit 1 Quiz - Bootstrap: Algebra

6th - 12th Grade

10 Qs

SNAP-Quiz 1

SNAP-Quiz 1

9th Grade

10 Qs

OCR Computer Science Paper 2 Revision Quiz #1

OCR Computer Science Paper 2 Revision Quiz #1

9th - 10th Grade

20 Qs

Sprites

Sprites

11th Grade

19 Qs

Cmu Cs Academy

Cmu Cs Academy

9th Grade

11 Qs

8.QZ - Fish Tank Starter Code Review

8.QZ - Fish Tank Starter Code Review

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Jocelyn Hall

Used 6+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many Stored Procedures are in this code?

1

2

3

4

Answer explanation

Media Image

A Stored Procedure never needs to be called in the program.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many Custom Functions are in this code?

1

2

3

4

Answer explanation

Media Image

A Custom Function needs to be called.

The only Custom Function in this program is drawFish.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is an example of a function call?

Line 6

Line 1

Line 21 - 25

Line 20

Answer explanation

Media Image

There are two function calls in this code.

Line 6 & Line 7

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is an example of a function definition?

Line 6

Line 1

Line 21 - 25

Line 20

Answer explanation

Media Image

The function definition contains what will happen when the function is called.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is an example of a Stored Procedure in this code?

setup

drawFish

size()

fishColor

Answer explanation

Media Image

A Stored Procedure never needs to be called.


There are three Stored Procedures in this code:

setup

draw

mouseClicked

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many parameters does drawFish have?

0

1

2

3

Answer explanation

Media Image

The Custom Function drawFish has three parameters

fishX

fishY

fishColor

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times is drawFish called?

0

1

2

3

Answer explanation

Media Image

The Custom Function drawFish is called two times on:

Line 6

Line 7

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?