wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

5. Echo - Query And ORM

Total questions: 11

Worksheet time: 9mins

Name
Class
Date
1.

What's the differences between using "Find" and "First" in GORM?

a)

Both are getting data from databases, but "First" only take a partial data

b)

"Find" only used to get data that available, "First" only get the first data available

c)

"Find" search for a data, and "First" shows all data

d)

Both does the same, to find a data

2.

on dto, user_request.go used to...

a)

maintain the request of client so server can give the correct data

b)

creating a request of data from databases

c)

maintain what does the dto only takes from the data of form body

d)

let user request a data from dto

3.

What does the code on the left do?

a)

To migrate a data from database into server

b)

To migrate a models created into database tables

c)

To automatically migrate every request/response into json values

d)

to handle an error when migration is unhandled/faulty

4.

What does the code on the left do?

a)

To save a data

b)

To update a partial data/all data

c)

To save a data cache

d)

To update the databases state

5.



(a)  

6.

Do you agree if we can also use query along with ORM?

a)

Yes, because ORM is also not that perfect

b)

No, we can't use query along with ORM because ORM muchly use Object

7.

If one of the struct use `json:"-"`, will the data shown?

a)

No, it won't

b)

Yes, it will

8.

This line of codes will run if...

a)

The handler is successfully run the repositories and return a data as the reponse

b)

The repositories returning a response

c)

The handler is caught an error

d)

The dto can't receive any data from the request

9.



(a)  

10.



(a)  

11.



(a)