
RockTheQuiz
Authored by Antonio Borges
Education
Professional Development

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the localStorage property in the Browser API allow you to do?
Retrieve data from a remote server
Store data on the client-side persistently
Access the user's location information
Manage browser history
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods is used to make an asynchronous HTTP request in JavaScript and is commonly used with the Browser API?
setTimeout()
localStorage()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the document.querySelector('#app')?
To select all elements within the HTML document
To select the first element with the ID 'app' in the HTML document.
To link to an external JavaScript file named 'app.js'.
To select the first element with the class 'app' in the HTML document.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you attach an event listener to a button with the id "myButton" using JavaScript and the DOM?
myButton.addListener('click', myFunction)
myButton.attachEvent("click", myFunction)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the Git command `git pull` do?
Discard changes in the working directory
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between let and const?
let can be redeclared in the same scope, while const cannot
let is block-scoped, while const is function-scoped
let can be declared without being initialised, while const must be initialised when declared
all of the anwers are correct
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between null and undefined?
null is a primitive data type, while undefined is an object
null is explicitly set by a developer, while undefined is the default value of uninitialized variables
null is a falsy value, while undefined is not
all of the answers are correct
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?