logo

Crowdly

Browser

Add to Chrome

Internetworking and Web-programming (IWP) (DAT2, AAL-SW2, BaIT6T)

Looking for Internetworking and Web-programming (IWP) (DAT2, AAL-SW2, BaIT6T) test answers and solutions? Browse our comprehensive collection of verified answers for Internetworking and Web-programming (IWP) (DAT2, AAL-SW2, BaIT6T) at www.moodle.aau.dk.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

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)

0%
0%
100%
100%
View this question

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?

100%
100%
100%
0%
View this question

Which element belongs in the <head> section and is used to link external resources such as stylesheets?

0%
0%
100%
0%
View this question

Cookies are used to provide browser’s side data storage, but they

have some limitations. What of the following are correct sentences?

0%
100%
0%
0%
View this question

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?

View this question

Which element is most appropriate for semantic markup of a standalone text paragraph within a blog post?

100%
0%
0%
0%
View this question

A developer wrote the following inside an HTML document, and expects the text "Alice" to appear in the console. However, when it is loaded into the browser the console shows an error instead. What is the most likely reason?

...

<body>

...

<script>

const name = document.getElementById("username").textContent;

console.log(name);

</script>

<p id="username">Alice</p>

</body>

0%
0%
0%
100%
View this question

Implement the client-side functionality for submitting the order form and presenting the resultWhen 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!

View this question

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. 

  • Add a section with a form for configuring the recipe:
    • name: a string between 1 and 30 characters long
    • strength: a range integer between 1 and 10 
    • milk: a choice between “nomilk”, ”oatmilk”, and “cowmilk”.
  • Add HTML validation such that all inputs must be entered and satisfies the above constraints.
  • Add a placeholder output element (initially hidden) for the resulting text after the order is submitted; the actual content will be filled in later in the exercise.  

View this question

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.

View this question

Want instant access to all verified answers on www.moodle.aau.dk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome