WorksheetsJavaScript Basics Quiz
Total questions: 10
Worksheet time: 5mins
What does JavaScript help a website do?
Become interactive
Print faster
Load music automatically
Change your computer settings
Which is an example of JavaScript in action?
A button that shows a message when clicked
A paragraph written in HTML
A picture made in Paint
A file saved on your desktop
(Situational) Your webpage has a button, but nothing happens when you click it. What do you need?
More pictures
JavaScript to make the button work
A longer title
A new background
Why is JavaScript important?
It makes videos louder
It makes websites respond to the user
It changes WiFi speed
It removes images
(Situational) Your classmate wants their website to show a greeting like “Hello!” when someone presses a button. What should they use?
JavaScript
A text file
A screenshot
A bookmark
What does JavaScript often control on a webpage?
Food recipes
User interactions
Phone contacts
Printer ink
(Situational) A user types their name into a box, and the website shows “Welcome, [Name]!” What made this possible?
JavaScript
Wallpaper
An email
A screenshot
Which is an event that JavaScript can detect?
Closing a book
Clicking a button
Charging a phone
Turning off the lights
(Situational) Your teacher asks you to make a webpage where the color changes when you press a button. What should you write?
A JavaScript function
A poem
A shopping list
A random paragraph
How does JavaScript help the user experience?
By making websites frozen
By adding fun and useful actions
By removing all text
By hiding the page
