wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Web Application Session 1

Total questions: 5

Worksheet time: 3mins

Name
Class
Date
1.
Apa kepanjangan dari API?
a)
Allocation Personal Interface
b)
Application Programming Interface
c)
Application Programming Internal
d)
Application Personal Interface
2.
Apa yang dilakukan client saat menggunakan API?
a)
Memberikan Response
b)
Mengirim Request
c)
Membuat Middleware
d)
Melakukan Connect database
3.
Apa yang dilakukan server saat menggunakan API?
a)
Memberikan Response
b)
Mengirim Request
c)
Membuat Middleware
d)
Melakukan Connect database
4.
Saat membuat client di Golang, bagaimana cara kita melakukan request dengan method GET?
a)
`http.DoRequest("GET", "url")`
b)
`http.("GET", "url")`
c)
`http.Get("url")`
d)
`http.DoRequest.Get("url")`
5.
Saat membuat server di Golang, bagaimana cara membuat response dengen endpoint "hello" dan response string "hello client!"
a)
http.HandleFunc(func("/hello", w http.ResponseWriter, r *http.Request){ w.Write([]byte("hello client!") })
b)
http.HandleFunc("/hello", func(w http.ResponseWriter, r *http.Request){ fmt.Fprintln(w, "hello client!") })
c)
http.HandleFunc("/hello", func(w http.ResponseWriter, r *http.Request){ w.Write([]byte("hello server!") })
d)
http.HandleFunc(func("/server", w http.ResponseWriter, r *http.Request){ fmt.Fprintln(w, "hello client!") })