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

JavaScript Basics Quiz for 8th Grade

Bestenliste

Visueller Stil

Einstellungen

KI-Verbessert: Diese Aktivität enthält Inhalte, die von KI generiert werden. Weitere Informationen.

Vorlage ändern

Soll die automatisch gespeicherte Aktivität wiederhergestellt werden?