QUESTION #1

func (b Book) Validate() (errMsg map[string]string) {
        errMsg = map[string]string{}
        book := Book{}
        if uadmin.Count(&book, "name = ? AND id <> ?", b.Name, b.ID) != 0 {
                errMsg["Name"] = Your code
        }
        return
}

The JSON file is located in the models folder.

Error message says: This book name is already in the system.

Which uAdmin function will match the given statement above?

A. uadmin.Tf("models/Book/Name/errMsg", "", fmt.Sprintf("This book name is already in the system"))
B. uadmin.Tf("models/Book/Name/errMsg", fmt.Sprintf("This book name is already in the system."))
C. uadmin.Tf("models/Book/Name/errMsg", "", "This book name is already in the system.")
D. uadmin.Tf("models/Book/Name/errMsg", "", fmt.Sprintf("This book name is already in the system."))


QUESTION #2

func (p Person) Validate() (errMsg map[string]string) {
        errMsg = map[string]string{}
        person := Person{}
        if uadmin.Count(&person, "name = ? AND id <> ?", p.Name, p.ID) != 0 {
                errMsg["Name"] = Your code
        }
        return
}

The JSON file is located in the models folder.

Error message says: This person name is already in the system.

Which uAdmin function will match the given statement above?

A. uadmin.Tf("models/Person/Name/errMsg", fmt.Sprintf("This person name is already in the system."))
B. uadmin.Tf("models/Person/Name/errMsg", "", fmt.Sprintf("This person name is already in the system."))
C. uadmin.Tf("models/Person/Name/errMsg", "", "This person name is already in the system.")
D. uadmin.Tf("models/Person/Name/errMsg", "", fmt.Sprintf("This person name is already in the system"))


QUESTION #3

func (t Table) Validate() (errMsg map[string]string) {
        errMsg = map[string]string{}
        table := Table{}
        if uadmin.Count(&table, "name = ? AND id <> ?", t.Name, t.ID) != 0 {
                errMsg["Name"] = Your code
        }
        return
}

The JSON file is located in the models folder.

Error message says: This table name is already in the system.

Which uAdmin function will match the given statement above?

A. uadmin.Tf("models/Table/Name/errMsg", "", fmt.Sprintf("This table name is already in the system"))
B. uadmin.Tf("models/Table/Name/errMsg", "", fmt.Sprintf("This table name is already in the system."))
C. uadmin.Tf("models/Table/Name/errMsg", "", "This table name is already in the system.")
D. uadmin.Tf("models/Table/Name/errMsg", fmt.Sprintf("This table name is already in the system."))


QUESTION #4

func (a Animal) Validate() (errMsg map[string]string) {
        errMsg = map[string]string{}
        animal := Animal{}
        if uadmin.Count(&animal, "name = ? AND id <> ?", a.Name, a.ID) != 0 {
                errMsg["Name"] = Your code
        }
        return
}

The JSON file is located in the models folder.

Error message says: This animal name is already in the system.

Which uAdmin function will match the given statement above?

A. uadmin.Tf("models/Animal/Name/errMsg", "", fmt.Sprintf("This animal name is already in the system."))
B. uadmin.Tf("models/Animal/Name/errMsg", "", fmt.Sprintf("This animal name is already in the system"))
C. uadmin.Tf("models/Animal/Name/errMsg", fmt.Sprintf("This animal name is already in the system."))
D. uadmin.Tf("models/Animal/Name/errMsg", "", "This animal name is already in the system.")


QUESTION #5

func (d Device) Validate() (errMsg map[string]string) {
        errMsg = map[string]string{}
        device := Device{}
        if uadmin.Count(&device, "name = ? AND id <> ?", d.Name, d.ID) != 0 {
                errMsg["Name"] = Your code
        }
        return
}

The JSON file is located in the models folder.

Error message says: This device name is already in the system.

Which uAdmin function will match the given statement above?

A. uadmin.Tf("models/Device/Name/errMsg", "", "This device name is already in the system.")
B. uadmin.Tf("models/Device/Name/errMsg", "", fmt.Sprint("This device name is already in the system"))
C. uadmin.Tf("models/Device/Name/errMsg", "", fmt.Sprint("This device name is already in the system."))
D. uadmin.Tf("models/Device/Name/errMsg", fmt.Sprint("This device name is already in the system."))


QUESTION #6

func (p Paper) Validate() (errMsg map[string]string) {
        errMsg = map[string]string{}
        paper := Paper{}
        if uadmin.Count(&paper, "name = ? AND id <> ?", p.Name, p.ID) != 0 {
                errMsg["Name"] = Your code
        }
        return
}

The JSON file is located in the models folder.

Error message says: This paper name is already in the system.

Which uAdmin function will match the given statement above?

A. uadmin.Tf("models/Paper/Name/errMsg", fmt.Sprint("This paper name is already in the system."))
B. uadmin.Tf("models/Paper/Name/errMsg", "", fmt.Sprint("This paper name is already in the system"))
C. uadmin.Tf("models/Paper/Name/errMsg", "", "This paper name is already in the system.")
D. uadmin.Tf("models/Paper/Name/errMsg", "", fmt.Sprint("This paper name is already in the system."))


QUESTION #7

func (v Vehicle) Validate() (errMsg map[string]string) {
        errMsg = map[string]string{}
        vehicle := Vehicle{}
        if uadmin.Count(&vehicle, "name = ? AND id <> ?", v.Name, v.ID) != 0 {
                errMsg["Name"] = Your code
        }
        return
}

The JSON file is located in the models folder.

Error message says: This vehicle name is already in the system.

Which uAdmin function will match the given statement above?

A. uadmin.Tf("models/Vehicle/Name/errMsg", fmt.Sprint("This vehicle name is already in the system."))
B. uadmin.Tf("models/Vehicle/Name/errMsg", "", fmt.Sprint("This vehicle name is already in the system."))
C. uadmin.Tf("models/Vehicle/Name/errMsg", "", "This vehicle name is already in the system.")
D. uadmin.Tf("models/Vehicle/Name/errMsg", "", fmt.Sprint("This vehicle name is already in the system"))


QUESTION #8

decoration := models.Decoration{}
results := []map[string]interface{}{}
uadmin.Get(&decoration, "id = 1")
results = append(results, map[string]interface{}{
        "Name (Arabic)": Your code,
})

Which uAdmin function will match the given statement above?

A. uadmin.Translate(decoration.Name, "ab")
B. uadmin.Translate(decoration.Name, "rb")
C. uadmin.Translate(decoration.Name, "ar")
D. uadmin.Translate(decoration.Name, "ac")


QUESTION #9

building := models.Building{}
results := []map[string]interface{}{}
uadmin.Get(&building, "id = 1")
results = append(results, map[string]interface{}{
        "Name (Japanese)": Your code,
})

Which uAdmin function will match the given statement above?

A. uadmin.Translate(building.Name, "jp")
B. uadmin.Translate(building.Name, "js")
C. uadmin.Translate(building.Name, "jn")
D. uadmin.Translate(building.Name, "ja")


QUESTION #10

computer := models.Computer{}
results := []map[string]interface{}{}
uadmin.Get(&computer, "id = 1")
results = append(results, map[string]interface{}{
        "Name (Chinese)": Your code,
})

Which uAdmin function will match the given statement above?

A. uadmin.Translate(computer.Name, "zh")
B. uadmin.Translate(computer.Name, "ch")
C. uadmin.Translate(computer.Name, "ns")
D. uadmin.Translate(computer.Name, "cn")


QUESTION #11

movie := models.Movie{}
results := []map[string]interface{}{}
uadmin.Get(&movie, "id = 1")
results = append(results, map[string]interface{}{
        "Name (German)": Your code,
})

Which uAdmin function will match the given statement above?

A. uadmin.Translate(movie.Name, "gr")
B. uadmin.Translate(movie.Name, "ne")
C. uadmin.Translate(movie.Name, "de")
D. uadmin.Translate(movie.Name, "gn")


QUESTION #12

game := models.game{}
results := []map[string]interface{}{}
uadmin.Get(&game, "id = 1")
results = append(results, map[string]interface{}{
        "Name (Dutch)": Your code,
})

Which uAdmin function will match the given statement above?

A. uadmin.Translate(game.Name, "nl")
B. uadmin.Translate(game.Name, "ch")
C. uadmin.Translate(game.Name, "dt")
D. uadmin.Translate(game.Name, "ls")


QUESTION #13

application := models.Application{}
results := []map[string]interface{}{}
uadmin.Get(&application, "id = 1")
results = append(results, map[string]interface{}{
        "Name (Turkish)": Your code,
        "Name (Vietnamese)": Your code,
})

Which uAdmin function will match the given statement above?

A. uadmin.Translate(application.Name, "tr")
        uadmin.Translate(application.Name, "vi")


B. uadmin.Translate(application.Name, "tr")
        uadmin.Translate(application.Name, "vt")


C. uadmin.Translate(application.Name, "tk")
        uadmin.Translate(application.Name, "vi")


D. uadmin.Translate(application.Name, "tk")
        uadmin.Translate(application.Name, "vt")



QUESTION #14

restaurant := models.Restaurant{}
results := []map[string]interface{}{}
uadmin.Get(&restaurant, "id = 1")
results = append(results, map[string]interface{}{
        "Name (Italian)": Your code,
        "Name (Korean)": Your code,
})

Which uAdmin function will match the given statement above?

A. uadmin.Translate(restaurant.Name, "tn")
        uadmin.Translate(restaurant.Name, "kr")


B. uadmin.Translate(restaurant.Name, "it")
        uadmin.Translate(restaurant.Name, "kr")


C. uadmin.Translate(restaurant.Name, "tn")
        uadmin.Translate(restaurant.Name, "ko")


D. uadmin.Translate(restaurant.Name, "it")
        uadmin.Translate(restaurant.Name, "ko")



QUESTION #15

country := models.Country{}
results := []map[string]interface{}{}
uadmin.Get(&country, "id = 1")
results = append(results, map[string]interface{}{
        "Name (Russian)": Your code,
        "Name (Spanish)": Your code,
})

Which uAdmin function will match the given statement above?

A. uadmin.Translate(country.Name, "ru")
        uadmin.Translate(country.Name, "sh")


B. uadmin.Translate(country.Name, "rs")
        uadmin.Translate(country.Name, "sh")


C. uadmin.Translate(country.Name, "ru")
        uadmin.Translate(country.Name, "es")


D. uadmin.Translate(country.Name, "rs")
        uadmin.Translate(country.Name, "es")