Which symbol is used to assign a value to a variable?, ==, =, +=, ===, What does a boolean value represent?, True or False, Number, Text, Array, Which keyword declares a variable?, var, let, const, All of the above, What is the purpose of an if-else statement?, Make decisions, Repeat actions, Define functions, Create loops, Which loop runs as long as the condition is true?, for loop, while loop, do-while loop, if statement, What library is used for creating sprites in p5.js?, p5.play, p5.sprites, p5.graphics, p5.objects, What property might you change to move a sprite?, x position, color, size, velocity, How do you compare two values for equality?, =, ==, ===, !=, What is a function?, A reusable block of code, A type of variable, A loop structure, A data type, Which keyword is used to define a function?, function, def, func, declare, What does the 'for' loop do?, Repeats a block, Makes decisions, Defines variables, Creates sprites, Which property defines the size of a sprite?, width, height, size, scale, What is the main use of the p5.js library?, Graphics and interaction, Data processing, Networking, Sound editing, Which of these is a data type?, Number, Boolean, String, All of the above, What does the 'else' part do in an if-else statement?, Provides an alternative, Repeats code, Defines a variable, Creates a loop, How do you start a while loop?, while (condition), do (condition), loop (condition), repeat (condition), What is a sprite?, A game object, A type of variable, A function, A loop, What is the purpose of functions?, Reuse code, Organize code, Simplify tasks, All of the above, Which of these adds one to a variable?, variable++, variable = variable + 1;, varibale += 1, All of the above, Which of these subtracts 5 to a variable?, variable -= 5;, variable += 5;, variable *= 5;, Subtract 5
0%
JavaScript Basics Quiz for 8th Grade
Share
Share
Share
by
Mightymrhansen
G8
CS
Edit Content
Print
Embed
More
Assignments
Leaderboard
Show more
Show less
This leaderboard is currently private. Click
Share
to make it public.
This leaderboard has been disabled by the resource owner.
This leaderboard is disabled as your options are different to the resource owner.
Revert Options
Maze chase
is an open-ended template. It does not generate scores for a leaderboard.
Log in required
Visual style
Fonts
Subscription required
Options
AI Enhanced: This activity contains content generated by AI.
Learn more.
Switch template
Show all
More formats will appear as you play the activity.
Open results
Copy link
QR code
Delete
Continue editing:
?