Can you answer the multiple choice below? 1) Which of the following correctly describes the relationship between the client and server? A server performs computations and shares data/resources between multiple clients. The client is typically run on a remote machine, the server is run on a local machine. The server keeps track of a single user's activity, while the client handles multiple users' activities. The server makes HTTP requests to a client

Enhanced Discovering Computers 2017 (Shelly Cashman Series) (MindTap Course List)
1st Edition
ISBN:9781305657458
Author:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Chapter3: Computers And Mobile Devices: Evaluating Options For Home And Work
Section: Chapter Questions
Problem 2TF
icon
Related questions
Question

Can you answer the multiple choice below?

1) Which of the following correctly describes the relationship between the client and server?

A server performs computations and shares data/resources between multiple clients.

The client is typically run on a remote machine, the server is run on a local machine.

The server keeps track of a single user's activity, while the client handles multiple users' activities.

The server makes HTTP requests to a client.

<!DOCTYPE html> <html> <head></head> <body> <div id="one"> <ul> <li class="leather">Wallet</li> <li>Phone</li> <li class="leather">Purse</li> </ul> </div> <div id="two"> <ul> <li>Towels</li> <li class="paper">Tissue</li> <li class="paper">Toilet Paper</li> </ul> </div> <body> </html>

2) Based on the HTML above, which of the following code snippets would select the first list elements from both unordered lists?

document.querySelector("ul li:first-child")

document.querySelector("ul li[0]")

document.querySelectorAll("li:first-child")

document.querySelectorAll("li[0]")

3) What kind of selectors does querySelector and querySelectorAll take as arguments?

CSS selectors

JavaScript selectors

HTML selectors

<!DOCTYPE html> <html> <head> <script src="./module.js"></script> <script type="module">{src="./module.js"}</script> <script type="module" src="./module.js"></script> <script href="./module.js"></script> </head> <body> <body> </html>

4) In the above HTML, which is the correct way to import a module?

<script type="module" src="./module.js"></script>

<script type="module">{src="./module.js"}</script>

<script src="./module.js"></script>

<script href="./module.js"></script>

5) What is the main difference between the BOM and the DOM?

The BOM allows you to communicate with the browser in JS, while the DOM allows you to manipulate HTML elements in JS.

The DOM allows you to communicate with the browser in JS, while the BOM allows you to manipulate HTML elements in JS.  

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Distributed Database Concepts
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning