Question: Can you answer the multiple choice below? 1) Which of the following can be used to add children to an element? .innerHTML .addChild() document.createElement() .children
Can you answer the multiple choice below?
1) Which of the following can be used to add children to an element?
.innerHTML
.addChild()
document.createElement()
.children
Hello
2) Pay attention to the elements that have event listeners. When someone clicks on the word "Hello" in the browser, what words will they see in their console? (in the code above)
para-what, mind-the-shelf, section-eight, main-street
para-what, mind-the-shelf, main-street
main, section, header, p
p, header, section, main
main-street, mind-the-shelf, para-what
main-street, section-eight, mind-the-shelf, para-what
3) Which of the following is false for localStorage in the window?
Data in local storage is stored in key-value pairs.
Data stored in local storage can persist from page to page of a website.
Data stored in local storage gets cleared when a browser tab or window is closed.
Data stored in local storage has no expiration date.
4) Which of the following statements is true about IP and MAC addresses?
MAC is assigned at the time of software manufacturing; IP is assigned by the hardware or internet service provider.
MAC defines the device identity; IP defines how a device is connected to a network.
MAC addresses are implemented via UDP protocols while IP addresses are implemented via TCP protocols
MAC stands for Media Access Control; IP Address stands for Internet Personal Address.
5) Which of the following is a false statement about session cookies in the browser?
A small file stored on a user's computer that holds a bite-sized amount of data
Used to store large amounts of data on the browser
Lost once the browser window is closed
Used for storing authentication tokens when the user logs in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
