QUESTION #1

Suppose you have given values as shown below.

Data: None
File: box.html
Location: main directory

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, nil, "box.html")
B. uadmin.HTMLContext(w, nil, "main/box.html")
C. uadmin.HTMLContext(w, 0, "box.html")
D. uadmin.HTMLContext(w, 0, "main/box.html")


QUESTION #2

Suppose you have given values as shown below.

Data: None
File: house.html
Location: main directory

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, 0, "house.html")
B. uadmin.HTMLContext(w, nil, "house.html")
C. uadmin.HTMLContext(w, 0, "main/house.html")
D. uadmin.HTMLContext(w, nil, "main/house.html")


QUESTION #3

Suppose you have given values as shown below.

Data: None
File: animal.html
Location: main directory

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, nil, "main/animal.html")
B. uadmin.HTMLContext(w, 0, "animal.html")
C. uadmin.HTMLContext(w, nil, "animal.html")
D. uadmin.HTMLContext(w, 0, "main/animal.html")


QUESTION #4

Suppose you have given values as shown below.

Data: None
File: photo.html
Location: main directory

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, 0, "main/photo.html")
B. uadmin.HTMLContext(w, 0, "photo.html")
C. uadmin.HTMLContext(w, nil, "main/photo.html")
D. uadmin.HTMLContext(w, nil, "photo.html")


QUESTION #5

Suppose you have given values as shown below.

Data: None
File: clock.html
Location: main directory

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, nil, "main/clock.html")
B. uadmin.HTMLContext(w, 0, "main/clock.html")
C. uadmin.HTMLContext(w, nil, "clock.html")
D. uadmin.HTMLContext(w, 0, "clock.html")


QUESTION #6

Suppose you have given values as shown below.

Data: friends
File: gallery.html
Location: views folder

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, &friends, "views/gallery.html")
B. uadmin.HTMLContext(w, friends, "views/gallery.html")
C. uadmin.HTMLContext(w, &friends, "gallery.html")
D. uadmin.HTMLContext(w, friends, "gallery.html")


QUESTION #7

Suppose you have given values as shown below.

Data: adults
File: population.html
Location: views folder

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, adults, "views/population.html")
B. uadmin.HTMLContext(w, adults, "population.html")
C. uadmin.HTMLContext(w, &adults, "views/population.html")
D. uadmin.HTMLContext(w, &adults, "population.html")


QUESTION #8

Suppose you have given values as shown below.

Data: computers
File: technology.html
Location: views folder

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, computers, "technology.html")
B. uadmin.HTMLContext(w, computers, "views/technology.html")
C. uadmin.HTMLContext(w, &computers, "technology.html")
D. uadmin.HTMLContext(w, &computers, "views/technology.html")


QUESTION #9

Suppose you have given values as shown below.

Data: tables
File: restaurant.html
Location: views folder

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, &tables, "views/restaurant.html")
B. uadmin.HTMLContext(w, tables, "restaurant.html")
C. uadmin.HTMLContext(w, tables, "views/restaurant.html")
D. uadmin.HTMLContext(w, &tables, "restaurant.html")


QUESTION #10

Suppose you have given values as shown below.

Data: refrigerators
File: appliance.html
Location: views folder

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, &refrigerators, "views/appliance.html")
B. uadmin.HTMLContext(w, refrigerators, "appliance.html")
C. uadmin.HTMLContext(w, &refrigerators, "appliance.html")
D. uadmin.HTMLContext(w, refrigerators, "views/appliance.html")


QUESTION #11

Suppose you have given source code as shown below.

type Context struct {
     Machines []map[string]interface{}
}
c := Context{}
machine := []models.Machine{}
uadmin.All(&machine)
for m := range machine {
     c.Machines = append(c.Machines, map[string]interface{}{
         "ID": machine[m].ID,
         "Name": machine[m].Name,
     })
}

The filename is machine.html located in views folder.

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, c, "views/machine.html")
B. uadmin.HTMLContext(w, Machines, "views/machine.html")
C. uadmin.HTMLContext(w, c.Machines, "views/machine.html")
D. uadmin.HTMLContext(w, machine, "views/machine.html")


QUESTION #12

Suppose you have given source code as shown below.

type Context struct {
     Parents []map[string]interface{}
}
c := Context{}
family := []models.Family{}
uadmin.All(&family)
for f := range family {
     c.Parents = append(c.Parents, map[string]interface{}{
         "ID": family[f].ID,
         "Name": family[f].Name,
     })
}

The filename is family.html located in views folder.

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, family, "views/family.html")
B. uadmin.HTMLContext(w, c, "views/family.html")
C. uadmin.HTMLContext(w, Parents, "views/family.html")
D. uadmin.HTMLContext(w, c.Parents, "views/family.html")


QUESTION #13

Suppose you have given source code as shown below.

type Context struct {
     Instruments []map[string]interface{}
}
c := Context{}
laboratory := []models.Laboratory{}
uadmin.All(&laboratory)
for l := range laboratory {
     c.Instruments = append(c.Instruments, map[string]interface{}{
         "ID": laboratory[l].ID,
         "Name": laboratory[l].Name,
     })
}

The filename is laboratory.html located in views folder.

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, c.Instruments, "views/laboratory.html")
B. uadmin.HTMLContext(w, laboratory, "views/laboratory.html")
C. uadmin.HTMLContext(w, c, "views/laboratory.html")
D. uadmin.HTMLContext(w, Instruments, "views/laboratory.html")


QUESTION #14

Suppose you have given source code as shown below.

type Context struct {
     Vehicles []map[string]interface{}
}
c := Context{}
transportation := []models.Transportation{}
uadmin.All(&transportation)
for t := range transportation {
     c.Vehicles = append(c.Vehicles, map[string]interface{}{
         "ID": transportation[t].ID,
         "Name": transportation[t].Name,
     })
}

The filename is transportation.html located in views folder.

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, c.Vehicles, "views/transportation.html")
B. uadmin.HTMLContext(w, transportation, "views/transportation.html")
C. uadmin.HTMLContext(w, Vehicles, "views/transportation.html")
D. uadmin.HTMLContext(w, c, "views/transportation.html")


QUESTION #15

Suppose you have given source code as shown below.

type Context struct {
     Galaxies []map[string]interface{}
}
c := Context{}
universe := []models.Universe{}
uadmin.All(&universe)
for u := range universe {
     c.Galaxies = append(c.Galaxies, map[string]interface{}{
         "ID": universe[u].ID,
         "Name": universe[u].Name,
     })
}

The filename is universe.html located in views folder.

Which of the following will match the given statement above?

A. uadmin.HTMLContext(w, c, "views/universe.html")
B. uadmin.HTMLContext(w, c.Galaxies, "views/universe.html")
C. uadmin.HTMLContext(w, universe, "views/universe.html")
D. uadmin.HTMLContext(w, Galaxies, "views/universe.html")