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.RenderHTML(w, r, "box.html", nil)
B. uadmin.RenderHTML(w, r, "main/box.html", nil)
C. uadmin.RenderHTML(w, r, "box.html", 0)
D. uadmin.RenderHTML(w, r, "main/box.html", 0)


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.RenderHTML(w, r, "house.html", 0)
B. uadmin.RenderHTML(w, r, "house.html", nil)
C. uadmin.RenderHTML(w, r, "main/house.html", 0)
D. uadmin.RenderHTML(w, r, "main/house.html", nil)


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.RenderHTML(w, r, "main/animal.html", nil)
B. uadmin.RenderHTML(w, r, "animal.html", 0)
C. uadmin.RenderHTML(w, r, "animal.html", nil)
D. uadmin.RenderHTML(w, r, "main/animal.html", 0)


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.RenderHTML(w, r, "main/photo.html", 0)
B. uadmin.RenderHTML(w, r, "photo.html", 0)
C. uadmin.RenderHTML(w, r, "main/photo.html", nil)
D. uadmin.RenderHTML(w, r, "photo.html", nil)


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.RenderHTML(w, r, "main/clock.html", nil)
B. uadmin.RenderHTML(w, r, "main/clock.html", 0)
C. uadmin.RenderHTML(w, r, "clock.html", nil)
D. uadmin.RenderHTML(w, r, "clock.html", 0)


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.RenderHTML(w, r, "views/gallery.html", &friends)
B. uadmin.RenderHTML(w, r, "views/gallery.html", friends)
C. uadmin.RenderHTML(w, r, "gallery.html", &friends)
D. uadmin.RenderHTML(w, r, "gallery.html", friends)


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.RenderHTML(w, r, "views/population.html", adults)
B. uadmin.RenderHTML(w, r, "population.html", adults)
C. uadmin.RenderHTML(w, r, "views/population.html", &adults)
D. uadmin.RenderHTML(w, r, "population.html", &adults)


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.RenderHTML(w, r, "technology.html", computers)
B. uadmin.RenderHTML(w, r, "views/technology.html", computers)
C. uadmin.RenderHTML(w, r, "technology.html", &computers)
D. uadmin.RenderHTML(w, r, "views/technology.html", &computers)


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.RenderHTML(w, r, "views/restaurant.html", &tables)
B. uadmin.RenderHTML(w, r, "restaurant.html", tables)
C. uadmin.RenderHTML(w, r, "views/restaurant.html", tables)
D. uadmin.RenderHTML(w, r, "restaurant.html", &tables)


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.RenderHTML(w, r, "views/appliance.html", &refrigerators)
B. uadmin.RenderHTML(w, r, "appliance.html", refrigerators)
C. uadmin.RenderHTML(w, r, "appliance.html", &refrigerators)
D. uadmin.RenderHTML(w, r, "views/appliance.html", refrigerators)


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.RenderHTML(w, r, "views/machine.html", c)
B. uadmin.RenderHTML(w, r, "views/machine.html", Machines)
C. uadmin.RenderHTML(w, r, "views/machine.html", c.Machines)
D. uadmin.RenderHTML(w, r, "views/machine.html", machine)


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.RenderHTML(w, r, "views/family.html", family)
B. uadmin.RenderHTML(w, r, "views/family.html", c)
C. uadmin.RenderHTML(w, r, "views/family.html", Parents)
D. uadmin.RenderHTML(w, r, "views/family.html", c.Parents)


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.RenderHTML(w, r, "views/laboratory.html", c.Instruments)
B. uadmin.RenderHTML(w, r, "views/laboratory.html", laboratory)
C. uadmin.RenderHTML(w, r, "views/laboratory.html", c)
D. uadmin.RenderHTML(w, r, "views/laboratory.html", Instruments)


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.RenderHTML(w, r, "views/transportation.html", c.Vehicles)
B. uadmin.RenderHTML(w, r, "views/transportation.html", transportation)
C. uadmin.RenderHTML(w, r, "views/transportation.html", Vehicles)
D. uadmin.RenderHTML(w, r, "views/transportation.html", c)


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.RenderHTML(w, r, "views/universe.html", c)
B. uadmin.RenderHTML(w, r, "views/universe.html", c.Galaxies)
C. uadmin.RenderHTML(w, r, "views/universe.html", universe)
D. uadmin.RenderHTML(w, r, "views/universe.html", Galaxies)