Шукаєте відповіді та рішення тестів для Internetworking and Web-programming (IWP) (DAT2, AAL-SW2, BaIT6T)? Перегляньте нашу велику колекцію перевірених відповідей для Internetworking and Web-programming (IWP) (DAT2, AAL-SW2, BaIT6T) в www.moodle.aau.dk.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
You are given a library with two functions:
-
checkFileName(filename), which returns a Promise. The promise
fulfills to true if the filename uses only valid characters, else it fulfills to false.
-
checkIfExists(filename), which returns a Promise. The promise
fulfills to true if filename exists on the filesystem, else it fulfills false.
Consider
the following versions of the async function processFileName. Which
version(s) correctly checks if a filename uses only valid characters and
then if the file exists? (async functions can use the await keyword in their body)
Some ReST operations must be idempotent, as applying them twice must have the same effect on the resources as applying them once. Among the following, which http methods implement idempotent operations?
Which element belongs in the <head> section and is used to link external resources such as stylesheets?
Cookies are used to provide browser’s side data storage, but they have some limitations. What of the following are correct sentences?
Consider the paragraph:
Students can get counselling through student support services!
What is the correct HTML syntax for semantic markup of this paragraph such that the word counselling becomes a hyperlink to the site srg.dk using the secured hyper text transport protocol?
Which element is most appropriate for semantic markup of a standalone text paragraph within a blog post?
...<body>...<script>
const name = document.getElementById("username").textContent;
console.log(name);
</script>
<p id="username">Alice</p>
</body>
Implement the client-side functionality for submitting the order form and presenting the result. When the submit button (“Bestil”) is clicked, a JavaScript function should extract the content of the form and send it as a json-object to the server at the specified resource name. Once the result response arrives at the client, show the output box and the embedded text.
Using .innerHTML is forbidden!
Extend the HTML of the front page using semantic markup to show as the extended front page. List the HTML code. Do not spend time on layout, but you may optionally use the supplied css file.
Write a JavaScript function at the client that can extract the input values of the order form and store them in a JavaScript object to be returned.
Hint: There are several ways to find the value of a radio-button. One is to examine which is selected using the “checked” attribute of the radio button.