The program below attempts to draw a crab with a blue background. What change needs to be made so that it works correctly? Options: Move background("blue"); to the end of the program, Move drawSprites(); to the end of the program, Rename the variable sprite to crab, Remove the line of code background("blue");, No change, the program already works

Unit 3 Post-Project Practice Test

Flashcard
•
Computers
•
7th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
Move drawSprites(); to the end of the program
Answer explanation
You have to use the drawSprites command AFTER you create your sprite, because the computer reads the code in order.
2.
FLASHCARD QUESTION
Front
Given the functions below, write a program that will draw the scene on the right.
Back
Answer explanation
Remember. Order is important. Think of it like hanging things on a bulletin board. Whatever you code last, will show up on the top.
3.
FLASHCARD QUESTION
Front
You want to create a variable to store how loud the music is playing on your cell phone. Which of the following would be the best variable name? Options: a, volume, loudest, 100, silent
Back
volume
Answer explanation
Make sure that your variable names are specific.
4.
FLASHCARD QUESTION
Front
The program on the left draws the scene, but you want the rectangle to be further to the right. How can you change the code to achieve this? Options: Call .moveRight(), Add a line of code to change rect.x = 100;, Update the first argument (parameter) of rect( ) to 100, No change needed: the rectangle is animated to move right
Back
Update the first argument (parameter) of rect( ) to 100
Answer explanation
The first arugument (parameter) in the rect code changes the x-position.
5.
FLASHCARD QUESTION
Front
Describe what will happen in the following program: When the left mouse button is pressed, the sprite rotates. When the right arrow key is pressed, it moves to the right.
Back
When the left mouse button is pressed, the sprite rotates. When the right arrow key is pressed, it moves to the right.
Answer explanation
Look for the answer that uses a left click for rotate and a right key press for moving to the right. There is not code that makes it move to the left. There is not code that makes it only rotate and move to the right when the left click AND right key press are done at the same time.
6.
FLASHCARD QUESTION
Front
The program below attempts to draw a blue rectangle but does not work as intended. What change needs to be made for the blue rectangle to be drawn? Options: drawRect; should be at the end of the program, fill("blue"); should be moved outside of the function and after drawRect;, fill("blue"); should be moved outside of the function and before drawRect;, drawRect; should be drawRect();, rect(0, 300, 200, 50); should be rect(0, 300);
Back
drawRect; should be drawRect();
Answer explanation
They attempted to call the function at the top of the program, but the gray block shows that it is just a comment. In order to make a function, it needs parentheses at the end of the function ( ).
7.
FLASHCARD QUESTION
Front
Which program will draw this image? Options: fill("red"); ellipse(100, 100, 50, 50); fill("green"); rect(100, 100, 50, 50);, fill("green"); ellipse(100, 100, 50, 50); fill("red"); rect(100, 100, 50, 50);, fill("red"); rect(100, 100, 50, 50); fill("green"); ellipse(100, 100, 50, 50);, fill("green"); rect(100, 100, 50, 50); fill("red"); ellipse(100, 100, 50, 50);
Back
Answer explanation
Look for the answer choice that draws a red square first, so it is behind the other shape, and then a green circle (ellipse), so it is on top.
Create a free account and access millions of resources
Similar Resources on Quizizz
7 questions
Basic Programming

Flashcard
•
7th Grade
11 questions
Code.org Unit 3 Assessment Lessons 3-9

Flashcard
•
8th Grade
10 questions
3D Printing

Flashcard
•
6th Grade
5 questions
U3: Lesson 9 Sprite Properties

Flashcard
•
6th - 8th Grade
10 questions
TYPING TEST 2 - 12/2024 (B3 601)

Flashcard
•
6th - 8th Grade
10 questions
Percent Unit Review

Flashcard
•
7th Grade
10 questions
Unit 3 Post-Project Assessment

Flashcard
•
7th Grade
10 questions
Unit 3- Lesson 3 & 4 Game Lab Vocab

Flashcard
•
6th - 8th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
43 questions
LinkIt Test - 24-25_BM4_7th

Quiz
•
7th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
14 questions
One Step Equations

Quiz
•
5th - 7th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
37 questions
7th Grade Summer Recovery Review

Quiz
•
7th Grade
18 questions
Informational Text Vocabulary

Quiz
•
7th - 8th Grade