GoConqr has a new look! Let us know what you think.

Quiz

go part2 khan

Khamit Zhussip 36 questions

Take the quiz

Questions in this quiz (36)

  1. 1What is the index number of the last element of an array with 29 elements?
    1. A29
    2. B28
    3. C27
    4. D0
    5. E1
  2. 2What's the output of following code?

    package main
    import "fmt"
    func main()\{
    c \:\= [...]int\{\}
    fmt.Println(len(c))
    \}
    1. A0
    2. B1
    3. C3
    4. Dcompile error
  3. 3Go supports type inheritance.
    1. ATrue
    2. BFalse
  4. 4In Go language, variables of different types can be declared in one statement.
    1. ATrue
    2. BFalse
  5. 5A slice is an abstraction over __________.
    1. Aarray
    2. Bvariable
    3. Cstructure
    4. Dinterface
  6. 6If a slice is declared with no inputs, then by default, it is initialized as nil. Its length and capacity are _________.
    1. A0
    2. B1
    3. C-1
    4. DInf
  7. 7One can increase the capacity of a slice using the ___________ function.
    1. Aappend()
    2. Bcopy()
    3. Cincrease()
    4. Dadd()
  8. 8Given a key and a value, you can store the value in a ________ object.
    1. AMap
    2. BArray
    3. CStructure
    4. DData
  9. 9You must use _________ function to create a map.
    1. Amake
    2. Bcreate
    3. Cadd
    4. Ddo
  10. 10__________ function is used to delete an entry from a map.
    1. Adelete()
    2. Berase()
    3. Cclean()
    4. Dremove()

Information

Description
Quiz on go part2 khan, created by Khamit Zhussip on 23/05/2019.
Language
English
Views
16
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?