Search Header Logo

CODING TEST 1

Authored by Stephanie Scott

Computers

6th - 8th Grade

Used 3+ times

CODING TEST 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

If you want to create a sprite, which of the following coding blocks do you need first?

var sprite = createSprite( 200, 200 );

sprite.setanimation = ("label");

drawSprites;

function draw() {}

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

If you want a sprite to appear like it is JUMPING UP AND DOWN, which of the following coding blocks will you use?

function draw() {

sprite.y = randomNumber( 200, 225 );

drawSprites; }

function draw() {

sprite.x = randomNumber( 200, 225 );

drawSprites; }

function draw() { sprite.setAnimation ("label");

drawSprites; }

function draw() {

sprite.y = (200, 200);

drawSprites; }

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which of the following coding blocks changes the size of the sprite?

sprite.scale = (size);

sprite.width = (number);

sprite.height = (number);

All of the answer choices listed here can change the size of the sprite.

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

True or False? You can use the randomNumber code to make the color change.

True! Random Number can be used in the rgb code command to change the color randomly.

False! Random Number cannot be used in a fill command.

It depends.

I don't know because I have just been copying off of my friend all year.

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

The rgb color chart goes up to what number?

255

100

300

500

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

If you want a sprite to appear like it is going LEFT AND RIGHT (or across the screen), which of the following codes will you use?

function draw() {

sprite.x = randomNumber ( 200, 210 );

drawSprites; }

function draw() {

sprite.y = randomNumber ( 200, 210 );

drawSprites; }

function draw() {

sprite.y = ( 200, 200);

drawSprites; }

function draw() { sprite.setAnimation ("label");

drawSprites; }

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

Which of the following RGB codes will make the background blue?

background (rgb ( 0, 0, 255));

background (rgb ( 255, 0, 0));

background (rgb ( 0. 255, 0));

background (rgb (255, 255, 255));

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?