QUESTION #1

Which of the following will be used to initialize the Choice?

A. uadmin.Choice
B. uadmin.Choice{}
C. []uadmin.Choice
D. []uadmin.Choice{}


QUESTION #2

What are the different fields in the Choice struct?

A. Key, Value, Select
B. K, V, Selected
C. K, V, Select
D. Key, Value, Selected


QUESTION #3

Suppose you have given data as shown below.

Choice: false
ID: 0
Name: -

Which of the following will match the given statement above?

A. V: 0
        K: "-"
        Selected: false


B. V: "-"
        K: false
        Selected: 0


C. V: false
        K: 0
        Selected: "-"


D. V: "-"
        K: 0
        Selected: false



QUESTION #4

Suppose you have given data as shown below.

Choice: true
ID: 3
Name: Mike

Which of the following will match the given statement above?

A. V: true
        K: 3
        Selected: "Mike"


B. V: 3
        K: "Mike"
        Selected: true


C. V: "Mike"
        K: 3
        Selected: true


D. V: "Mike"
        K: true
        Selected: 3



QUESTION #5

Suppose you have given data as shown below.

Choice: false
ID: 2
Name: Jane

Which of the following will match the given statement above?

A. V: 2
        K: "Jane"
        Selected: false


B. V: "Jane"
        K: 2
        Selected: false


C. V: "Jane"
        K: false
        Selected: 2


D. V: false
        K: 2
        Selected: "Jane"



QUESTION #6

Suppose you have given data as shown below.

Choice: true
ID: 7
Name: Christine

Which of the following will match the given statement above?

A. V: "Christine"
        K: 7
        Selected: true


B. V: true
        K: 7
        Selected: "Christine"


C. V: "Christine"
        K: true
        Selected: 7


D. V: 7
        K: "Christine"
        Selected: true



QUESTION #7

Suppose you have given data as shown below.

Choice: true
ID: 13
Name: Alicia

Which of the following will match the given statement above?

A. V: "Alicia"
        K: 13
        Selected: true


B. V: 13
        K: "Alicia"
        Selected: true


C. V: true
        K: 13
        Selected: "Alicia"


D. V: "Alicia"
        K: true
        Selected: 7



QUESTION #8

Suppose you have given source code as shown below.

choices := []uadmin.Choice{}
sports := []models.Sport{}
uadmin.All(&sports)
for _, s := range sports {
        // Your code
}

The selected value is true.

Which of the following will match the given statement above?

A. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(reflect.ValueOf(s)),
                K: uadmin.GetString(s),
                Selected: true,
        })


B. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(s),
                K: uadmin.GetString(reflect.ValueOf(s)),
                Selected: true,
        })


C. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(reflect.ValueOf(s)),
                K: uadmin.GetID(s),
                Selected: true,
        })


D. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(s),
                K: uadmin.GetID(reflect.ValueOf(s)),
                Selected: true,
        })



QUESTION #9

Suppose you have given source code as shown below.

choices := []uadmin.Choice{}
drinks := []models.Drink{}
uadmin.All(&drinks)
for _, d := range drinks {
        // Your code
}

The selected value is false.

Which of the following will match the given statement above?

A. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(reflect.ValueOf(d)),
                K: uadmin.GetID(d),
                Selected: false,
        })


B. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(reflect.ValueOf(d)),
                K: uadmin.GetString(d),
                Selected: false,
        })


C. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(d),
                K: uadmin.GetID(reflect.ValueOf(d)),
                Selected: false,
        })


D. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(d),
                K: uadmin.GetString(reflect.ValueOf(d)),
                Selected: false,
        })



QUESTION #10

Suppose you have given source code as shown below.

choices := []uadmin.Choice{}
animals := []models.Animal{}
uadmin.All(&animals)
for _, a := range animals {
        // Your code
}

The selected value is true.

Which of the following will match the given statement above?

A. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(reflect.ValueOf(a)),
                K: uadmin.GetString(a),
                Selected: true,
        })


B. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(a),
                K: uadmin.GetID(reflect.ValueOf(a)),
                Selected: true,
        })


C. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(reflect.ValueOf(a)),
                K: uadmin.GetID(a),
                Selected: true,
        })


D. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(a),
                K: uadmin.GetString(reflect.ValueOf(a)),
                Selected: true,
        })



QUESTION #11

Suppose you have given source code as shown below.

choices := []uadmin.Choice{}
devices := []models.Device{}
uadmin.All(&devices)
for _, d := range devices {
        // Your code
}

The selected value is false.

Which of the following will match the given statement above?

A. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(reflect.ValueOf(d)),
                K: uadmin.GetString(d),
                Selected: false,
        })


B. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(reflect.ValueOf(d)),
                K: uadmin.GetID(d),
                Selected: false,
        })


C. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(d),
                K: uadmin.GetString(reflect.ValueOf(d)),
                Selected: false,
        })


D. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(d),
                K: uadmin.GetID(reflect.ValueOf(d)),
                Selected: false,
        })



QUESTION #12

Suppose you have given source code as shown below.

choices := []uadmin.Choice{}
applications := []models.Application{}
uadmin.All(&applications)
for _, a := range applications {
        // Your code
}

The selected value is false.

Which of the following will match the given statement above?

A. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(a),
                K: uadmin.GetID(reflect.ValueOf(a)),
                Selected: false,
        })


B. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(reflect.ValueOf(a)),
                K: uadmin.GetString(a),
                Selected: false,
        })


C. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(a),
                K: uadmin.GetString(reflect.ValueOf(a)),
                Selected: false,
        })


D. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(reflect.ValueOf(a)),
                K: uadmin.GetID(a),
                Selected: false,
        })



QUESTION #13

Suppose you have this model as shown below:

RIVER NAME
Amazon Amazon
Ganges Ganges
Danube Danube
Nile Nile

Code:

choices := []uadmin.Choice{}
rivers := []models.River{}
uadmin.Filter(&rivers, "id IN (1,4)")
for _, r := range rivers {
        // Your code
}

The selected value is true.

Which of the following will match the given statement above and what will be the result?

A. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(r),
                K: uadmin.GetID(reflect.ValueOf(r)),
                Selected: true,
        })
        ---------------------------------------------------------------------
        Result: Amazon and Nile


B. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(reflect.ValueOf(r)),
                K: uadmin.GetString(r),
                Selected: true,
        })
        ---------------------------------------------------------------------
        Result: Amazon and Nile


C. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(r),
                K: uadmin.GetID(reflect.ValueOf(r)),
                Selected: true,
        })
        ---------------------------------------------------------------------
        Result: Ganges and Danube


D. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(reflect.ValueOf(r)),
                K: uadmin.GetString(r),
                Selected: true,
        })
        ---------------------------------------------------------------------
        Result: Ganges and Danube



QUESTION #14

Suppose you have this model as shown below:

CONTINENT NAME
South America South America
Oceania Oceania
North America North America
Europe Europe
Australia Australia
Asia Asia
Africa Africa

Code:

choices := []uadmin.Choice{}
continents := []models.Continent{}
uadmin.Filter(&continents, "id IN (2,4,6)")
for _, c := range continents {
        // Your code
}

The selected value is true.

Which of the following will match the given statement above and what will be the result?

A. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(reflect.ValueOf(c)),
                K: uadmin.GetString(c),
                Selected: true,
        })
        ---------------------------------------------------------------------
        Result: South America, North America, and Australia


B. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(c),
                K: uadmin.GetID(reflect.ValueOf(c)),
                Selected: true,
        })
        ---------------------------------------------------------------------
        Result: South America, North America, and Australia


C. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(c),
                K: uadmin.GetID(reflect.ValueOf(c)),
                Selected: true,
        })
        ---------------------------------------------------------------------
        Result: Oceania, Europe, and Asia


D. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(reflect.ValueOf(c)),
                K: uadmin.GetString(c),
                Selected: true,
        })
        ---------------------------------------------------------------------
        Result: Oceania, Europe, and Asia



QUESTION #15

Suppose you have this model as shown below:

MOUNTAIN NAME
Kilimanjaro Kilimanjaro
Mount Elbrus Mount Elbrus
Denali Denali
Mount Aconcagua Mount Aconcagua
Mount Everest Mount Everest
Vinson Massif Vinson Massif
Mount Kosciuszko Mount Kosciuszko
Jaya Peak (Mount Carstensz) Jaya Peak (Mount Carstensz)

Code:

choices := []uadmin.Choice{}
mountains := []models.Mountain{}
uadmin.Filter(&mountains, "id IN (1,3,6,8)")
for _, m := range mountains {
        // Your code
}

The selected value is false.

Which of the following will match the given statement above and what will be the result?

A. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(reflect.ValueOf(m)),
                K: uadmin.GetString(m),
                Selected: false,
        })
        ---------------------------------------------------------------------
        Result: Kilimanjaro, Denali, Vinson Massif, and Jaya Peak (Mount Carstensz)


B. choices = append(choices, uadmin.Choice{
                V: uadmin.GetID(reflect.ValueOf(m)),
                K: uadmin.GetString(m),
                Selected: false,
        })
        ---------------------------------------------------------------------
        Result: Mount Elbrus, Mount Aconcagua, Vinson Massif, and Jaya Peak (Mount Carstensz)


C. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(m),
                K: uadmin.GetID(reflect.ValueOf(m)),
                Selected: false,
        })
        ---------------------------------------------------------------------
        Result: Kilimanjaro, Denali, Vinson Massif, and Jaya Peak (Mount Carstensz)


D. choices = append(choices, uadmin.Choice{
                V: uadmin.GetString(m),
                K: uadmin.GetID(reflect.ValueOf(m)),
                Selected: false,
        })
        ---------------------------------------------------------------------
        Result: Mount Elbrus, Mount Aconcagua, Vinson Massif, and Jaya Peak (Mount Carstensz)