
Tutorium 12 - Webtech Node Server
Authored by Loris Galler
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Was ist ein Query-String in einer URL?
Der Teil vor dem ? in einer URL
Der Teil nach dem ? in einer URL
Der gesamte URL-Pfad
Ein spezielles Format für HTTP-Header
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Welche Methode wird in Node.js verwendet, um eine URL in ihre Bestandteile zu zerlegen?
url.parse(req.url, true)
qs.parse(req.url)
fetch(req.url).json()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Wann wird das Event req.on('data', callback) ausgelöst?
Wenn die gesamte Anfrage empfangen wurde
Sobald die Verbindung zum Server aufgebaut ist
Jedes Mal, wenn ein neuer Datenblock (Chunk) eintrifft
Nachdem der req.on('end', callback) Event ausgelöst wurde
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Wahr oder Falsch:
req.on('end', callback)
wird nur bei GET-Anfragen ausgelöst.
Wahr
Falsch
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Was macht
res.writeHead(200, { 'Content-Type': 'application/json' })
Es setzt nur den HTTP-Statuscode der Antwort
Es setzt sowohl den HTTP-Statuscode als auch die Header der Antwort
Es schreibt Daten in den Antwort-Body
Es beendet die Antwort
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Welche der folgenden Methoden beendet bzw. sendet die HTTP-Antwort in Node.js?
res.writeHead()
res.write()
res.end()
res.send()
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Wofür wird NGINX hauptsächlich verwendet?
Als Reverse Proxy
Als Load Balancer
Zum Caching von HTTP-Anfragen
Als Datenbank-Server
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?