QUESTION #1

food := []models.Food{}
uadmin.All(&food)

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, food)
B. uadmin.ReturnJSON(w, r, &food)
C. uadmin.ReturnJSON(r, w, food)
D. uadmin.ReturnJSON(r, w, &food)


QUESTION #2

paper := []models.Paper{}
uadmin.All(&paper)

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, &paper)
B. uadmin.ReturnJSON(r, w, &paper)
C. uadmin.ReturnJSON(w, r, paper)
D. uadmin.ReturnJSON(r, w, paper)


QUESTION #3

bag := models.Bag{}
uadmin.Get(&bag, "id = ?", 1)

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(r, w, bag)
B. uadmin.ReturnJSON(r, w, &bag)
C. uadmin.ReturnJSON(w, r, bag)
D. uadmin.ReturnJSON(w, r, &bag)


QUESTION #4

animal := models.Animal{}
uadmin.Get(&animal, "id = ?", 1)

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(r, w, &animal)
B. uadmin.ReturnJSON(w, r, animal)
C. uadmin.ReturnJSON(r, w, animal)
D. uadmin.ReturnJSON(w, r, &animal)


QUESTION #5

activity := []models.Activity{}
activityList := strings.Split(r.FormValue("activity_id"), ",")
uadmin.Filter(&activity, "id IN (?)", activityList)

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, &activityList)
B. uadmin.ReturnJSON(w, r, activityList)
C. uadmin.ReturnJSON(w, r, &activity)
D. uadmin.ReturnJSON(w, r, activity)


QUESTION #6

letter := []models.Letter{}
letterList := strings.Split(r.FormValue("letter_id"), ",")
uadmin.Filter(&letter, "id IN (?)", letterList)

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, letter)
B. uadmin.ReturnJSON(w, r, letterList)
C. uadmin.ReturnJSON(w, r, &letter)
D. uadmin.ReturnJSON(w, r, &letterList)


QUESTION #7

amount := map[string]interface{}{}
cash := []models.Cash{}
uadmin.All(&cash)
amount["cash"] = cash

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, "cash")
B. uadmin.ReturnJSON(w, r, amount)
C. uadmin.ReturnJSON(w, r, &cash)
D. uadmin.ReturnJSON(w, r, cash)


QUESTION #8

total := map[string]interface{}{}
population := []models.Population{}
uadmin.All(&population)
total["population"] = population

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, population)
B. uadmin.ReturnJSON(w, r, &population)
C. uadmin.ReturnJSON(w, r, "population")
D. uadmin.ReturnJSON(w, r, total)


QUESTION #9

log := map[string]interface{}{}
user := []models.User{}
userList := strings.Split(r.FormValue("user_id"), ",")
uadmin.Filter(&user, "id IN (?)", userList)
log["user"] = user

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, user)
B. uadmin.ReturnJSON(w, r, userList)
C. uadmin.ReturnJSON(w, r, log)
D. uadmin.ReturnJSON(w, r, &user)


QUESTION #10

list := map[string]interface{}{}
employee := []models.Employee{}
employeeList := strings.Split(r.FormValue("employee_id"), ",")
uadmin.Filter(&employee, "id IN (?)", employeeList)
list["employee"] = employee

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, list)
B. uadmin.ReturnJSON(w, r, employee)
C. uadmin.ReturnJSON(w, r, employeeList)
D. uadmin.ReturnJSON(w, r, &employee)


QUESTION #11

type ResponseData struct {
        Status string `json:"status"`
        Game []GameStruct `json:"games"`
}
response := ResponseData{}
if gameList != nil {
        for _, game := range gameList {
                response.Game = append(response.Game, GameStruct {
                        ID: game.ID,
                        Name: game.Name,
                })
        response.Status = "ok"
        // Your code
}

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, game)
B. uadmin.ReturnJSON(w, r, response)
C. uadmin.ReturnJSON(w, r, GameStruct)
D. uadmin.ReturnJSON(w, r, ResponseData)


QUESTION #12

type ResponseData struct {
        Status string `json:"status"`
        Movie []MovieStruct `json:"movies"`
}
response := ResponseData{}
if movieList != nil {
        for _, movie := range movieList {
                response.Movie = append(response.Movie, MovieStruct {
                        ID: movie.ID,
                        Name: movie.Name,
                })
        response.Status = "ok"
        // Your code
}

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, MovieStruct)
B. uadmin.ReturnJSON(w, r, ResponseData)
C. uadmin.ReturnJSON(w, r, movie)
D. uadmin.ReturnJSON(w, r, response)


QUESTION #13

type SocialData struct {
        Status string `json:"status"`
        SocialMedia []SocialMediaStruct `json:"social_media"`
}
display := SocialData{}
if socialMediaList != nil {
        for _, social := range socialMediaList {
                display.SocialMedia = append(display.SocialMedia, SocialMediaStruct {
                        ID: social.ID,
                        Name: social.Name,
                })
        display.Status = "ok"
        // Your code
}

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, display)
B. uadmin.ReturnJSON(w, r, SocialData)
C. uadmin.ReturnJSON(w, r, SocialMediaStruct)
D. uadmin.ReturnJSON(w, r, social)


QUESTION #14

type ComputerData struct {
        Status string `json:"status"`
        Computer []ComputerStruct `json:"computers"`
}
output := ComputerData{}
if computerList != nil {
        for _, computer := range computerList {
                output.Computer = append(output.Computer, ComputerStruct {
                        ID: computer.ID,
                        Name: computer.Name,
                })
        output.Status = "ok"
        // Your code
}

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, ComputerStruct)
B. uadmin.ReturnJSON(w, r, computer)
C. uadmin.ReturnJSON(w, r, output)
D. uadmin.ReturnJSON(w, r, ComputerData)


QUESTION #15

type GovernmentData struct {
        Status string `json:"status"`
        Government []GovernmentStruct `json:"governments"`
}
management := GovernmentData{}
if governmentList != nil {
        for _, government := range governmentList {
                management.Government = append(management.Government, GovernmentStruct {
                        ID: government.ID,
                        Name: government.Name,
                })
        management.Status = "ok"
        // Your code
}

Which uAdmin function will match the given statement above?

A. uadmin.ReturnJSON(w, r, GovernmentData)
B. uadmin.ReturnJSON(w, r, government)
C. uadmin.ReturnJSON(w, r, GovernmentStruct)
D. uadmin.ReturnJSON(w, r, management)