Week 1 Post-class 1.2: Test your Knowledge
这一页有部分内容暂时无法显示,其余内容完整。
Question 1
Which of the following accurately describes the process when a client device accesses a web page?
- The server sends an HTTP request message to the DNS server to find the client’s address.
- The browser sends a TCP/IP packet directly to the server’s physical address.
- The DNS server translates the domain name into an IP address before the browser sends an HTTP request.
- The client sends a 200 OK response to the server after receiving the initial web page.
以下哪一项准确描述了客户端设备访问网页时的过程?
此处有一段内容暂不支持显示。
- 1 错误:DNS 查的是服务器地址,不是客户端地址,也不是服务器发起 HTTP 请求。
- 2 错误:浏览器并不直接发送到“物理地址”,而是通过 IP 地址与服务器通信。
- 3 正确:访问网页前,DNS 会先将域名解析为 IP,之后浏览器才能发送 HTTP 请求。
- 4 错误:200 OK 是服务器对客户端请求的回应,不是客户端发的。
Question 2
What was the primary reason for the rise in popularity of the WHATWG “Living Standard” over W3C standards?
- WHATWG provided better tutorials for beginners.
- W3C stopped updating their standards after HTML4.
- There were disagreements about the evolution of HTML5 standards.
- WHATWG offered a more user-friendly website for HTML references.
WHATWG 的“Living Standard(动态标准)”相较于 W3C 标准更受欢迎的主要原因是什么?
此处有一段内容暂不支持显示。
WHATWG(Web Hypertext Application Technology Working Group)最初是由包括浏览器厂商在内的一些成员成立的,因为他们不同意 W3C 在 HTML 发展方向上的决定。W3C 倾向于更正式、周期性的发布,而 WHATWG 推出了“Living Standard”模式,持续迭代、灵活响应现代 Web 的需要,因此逐渐受到欢迎。
Question 3
In what significant way does HTML differ from traditional programming languages?
- HTML can execute complex algorithms.
- HTML can not define conditional logic or variables.
- HTML is compiled rather than interpreted.
- HTML can directly manipulate hardware components.
HTML 与传统编程语言的一个显著区别是什么?
此处有一段内容暂不支持显示。
- 1 错误:HTML 是标记语言,不能执行算法,算法应由 JavaScript、Python 等语言实现。
- 2 正确:HTML 只是用来描述网页结构,它本身不具备编程逻辑能力,没有 if、for、变量等传统编程特性。
- 3 错误:HTML 通常是由浏览器解释执行的,而不是编译运行的。
- 4 错误:HTML 无法访问或操作硬件,除非通过其他语言或 API(如 JS + Web API)间接实现。
Question 4
Consider the HTML snippet: <p class="intro">Hello World</p>. Identify the correct attributes of this element.
- The content is “class”.
- The element name is “intro”.
- The opening tag is <p class="intro">.
- The closing tag is <p>.
考虑以下 HTML 代码片段:<p class="intro">Hello World</p>。请识别该元素的正确属性。
此处有一段内容暂不支持显示。
- 1 错误:class 是属性,不是内容。内容是 "Hello World"。
- 2 错误:元素名称是 p,不是 "intro",intro 是 class 的值。
- 3 正确:开头标签完整写法是 <p class="intro">。
- 4 错误:结束标签应为 </p>,不是 <p>。