QUESTION #1

person := models.Person{}

Which uAdmin function will return the count of all records in a table?

A. uadmin.Count(person, "id > 0")
B. uadmin.Count(&person, "id > 0")
C. uadmin.Count(person, "id > 1")
D. uadmin.Count(&person, "id > 1")


QUESTION #2

wall := []models.Wall{}

Which uAdmin function will return the count of all records in a table?

A. uadmin.Count(&wall, "id > 0")
B. uadmin.Count(wall, "id > 0")
C. uadmin.Count(&wall, "id > 1")
D. uadmin.Count(wall, "id > 1")


QUESTION #3

monitor := []models.Monitor{}

Which uAdmin function will return the count of all records in a table?

A. uadmin.Count(monitor, "id > 1")
B. uadmin.Count(&monitor, "id > 1")
C. uadmin.Count(monitor, "id > 0")
D. uadmin.Count(&monitor, "id > 0")


QUESTION #4

animal := []models.Animal{}

Which uAdmin function will return the count of all records in a table?

A. uadmin.Count(animal, "id > 1")
B. uadmin.Count(animal, "id > 0")
C. uadmin.Count(&animal, "id > 1")
D. uadmin.Count(&animal, "id > 0")


QUESTION #5

student := []models.Student{}

Which uAdmin function will return the count of all records in a table that starts with letter j?

A. uadmin.Count(&student, "LOWER(name) LIKE ?", "j%")
B. uadmin.Count(&student, "LOWER(name) LIKE ?", "%j")
C. uadmin.Count(&student, "LOWER(name) LIKE ?", "%j%")
D. uadmin.Count(&student, "LOWER(name) LIKE ?", "j")


QUESTION #6

museum := []models.Museum{}

Which uAdmin function will return the count of all records in a table that ends with letter p?

A. uadmin.Count(&museum, "LOWER(name) LIKE ?", "%p%")
B. uadmin.Count(&museum, "LOWER(name) LIKE ?", "p%")
C. uadmin.Count(&museum, "LOWER(name) LIKE ?", "%p")
D. uadmin.Count(&museum, "LOWER(name) LIKE ?", "p")


QUESTION #7

decoration := []models.Decoration{}

Which uAdmin function will return the count of all records in a table that starts with letter b and ends with letter d?

A. uadmin.Count(&decoration, "LOWER(name) LIKE ?", "d%b")
B. uadmin.Count(&decoration, "LOWER(name) LIKE ?", "%b%d%")
C. uadmin.Count(&decoration, "LOWER(name) LIKE ?", "%d%b%")
D. uadmin.Count(&decoration, "LOWER(name) LIKE ?", "b%d")


QUESTION #8

place := []models.Place{}

Which uAdmin function will return the count of all records in a table that contains the word "trip"?

A. uadmin.Count(&place, "LOWER(name) LIKE ?", "_trip_")
B. uadmin.Count(&place, "LOWER(name) LIKE ?", "%_trip_%")
C. uadmin.Count(&place, "LOWER(name) LIKE ?", "_%trip%_")
D. uadmin.Count(&place, "LOWER(name) LIKE ?", "%trip%")


QUESTION #9

basement := []models.Basement{}
Field to Query: building_id
Parameter: building_id

Which uAdmin function will return the count of basements in a specific building?

A. uadmin.Count(&basement, "building_id = ?", r.FormValue(building_id))
B. uadmin.Count(&basement, "building_id = ?", r.FormValue(building_id)
C. uadmin.Count(&basement, "building_id = ?", r.FormValue("building_id"))
D. uadmin.Count(&basement, "building_id = ?", r.FormValue("building_id")


QUESTION #10

city := []models.City{}
Field to Query: country_id
Parameter: country_id

Which uAdmin function will return the count of cities in a specific country?

A. uadmin.Count(&city, "country_id = ?", r.FormValue("country_id")
B. uadmin.Count(&city, "country_id = ?", r.FormValue("country_id"))
C. uadmin.Count(&city, "country_id = ?", r.FormValue(country_id)
D. uadmin.Count(&city, "country_id = ?", r.FormValue(country_id))


QUESTION #11

motorcycle := []models.Motorcycle{}
Field to Query: vehicle_id
Parameter: vehicle

Which uAdmin function will return the count of motorcycles in a specific vehicle?

A. uadmin.Count(&motorcycle, "vehicle = ?", r.FormValue("vehicle_id"))
B. uadmin.Count(&motorcycle, "vehicle = ?", r.FormValue(vehicle_id))
C. uadmin.Count(&motorcycle, "vehicle_id = ?", r.FormValue("vehicle"))
D. uadmin.Count(&motorcycle, "vehicle_id = ?", r.FormValue(vehicle))


QUESTION #12

basketball := []models.Basketball{}
Field to Query: sport_id
Parameter: sport

Which uAdmin function will return the count of basketballs in a specific sport?

A. uadmin.Count(&basketball, "sport_id = ?", r.FormValue("sport"))
B. uadmin.Count(&basketball, "sport = ?", r.FormValue("sport_id"))
C. uadmin.Count(&basketball, "sport_id = ?", r.FormValue(sport))
D. uadmin.Count(&basketball, "sport = ?", r.FormValue(sport_id))


QUESTION #13

Suppose you have this model as shown below:

CUSTOMER NAME GENDER
John Doe John Doe Male
Jane Doe Jane Doe Female
Allen Dale Allen Dale

Code:

customer := models.Customer{}
gender := models.Gender{}
uadmin.Get(&gender, "id = ?", customer.GenderID)

Which uAdmin function will return the count of all customers with a gender value in a table?

A. uadmin.Count(&customer, "gender_id = ?", customer.GenderID)
B. uadmin.Count(&gender, "customer_id = ?", gender.CustomerID)
C. uadmin.Count(&customer, "gender_id = ?", gender.CustomerID)
D. uadmin.Count(&gender, "customer_id = ?", customer.GenderID)


QUESTION #14

Suppose you have this model as shown below:

MOUNTAIN NAME CONTINENT
Mount Everest Mount Everest Asia
Mount Olympus Mount Olympus
Mount Elbrus Mount Elbrus Europe

Code:

mountain := models.Mountain{}
continent := models.Continent{}
uadmin.Get(&continent, "id = ?", mountain.ContinentID)

Which uAdmin function will return the count of all mountains with a continent value in a table?

A. uadmin.Count(&continent, "mountain_id = ?", continent.MountainID)
B. uadmin.Count(&mountain, "continent_id = ?", mountain.ContinentID)
C. uadmin.Count(&continent, "mountain_id = ?", mountain.ContinentID)
D. uadmin.Count(&mountain, "continent_id = ?", continent.MountainID)


QUESTION #15

Suppose you have this model as shown below:

SKYSCRAPER NAME COUNTRY
Burj Khalifa Burj Khalifa United Arab Emirates
X-Seed 4000 X-Seed 4000
Taipei 101 Taipei 101 Taiwan

Code:

skyscraper := models.Skyscraper{}
country := models.Country{}
uadmin.Get(&country, "id = ?", skyscraper.CountryID)

Which uAdmin function will return the count of all skyscrapers with a country value in a table?

A. uadmin.Count(&country, "skyscraper_id = ?", country.SkyscraperID)
B. uadmin.Count(&skyscraper, "country_id = ?", skyscraper.CountryID)
C. uadmin.Count(&country, "skyscraper_id = ?", skyscraper.CountryID)
D. uadmin.Count(&skyscraper, "country_id = ?", country.SkyscraperID)