Go Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to Go. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 4 - Can a Go function be created on the fly and used as values?

A - true

B - false

Answer : A

Explanation

Functions can be created on the fly and can be used as values.

Q 5 - Can you define a pointer to pointer in Go?

A - true

B - false

Answer : A

Explanation

Yes! Go allows you to have pointer on a pointer and so on.

Q 6 - Which of the following function returns the capacity of slice as how many elements it can be accomodate?

A - size()

B - len()

C - cap()

D - None of the above.

Answer : C

Explanation

cap() function returns the capacity of slice as how many elements it can be accomodate.

Q 7 - Which of the following causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating in Go?

A - break

B - continue

C - goto

D - None of the above.

Answer : B

Explanation

continue causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.

Q 8 - Go supports type inheritance.

A - true

B - false

Answer : B

Explanation

No support for type inheritance.

Q 9 - In Go language, Structure types are derived types.

A - false

B - true

Answer : B

Explanation

Yes! Structure types are derived types.

Q 10 - Expressions that refer to a memory location is called "rvalue" expression.

A - false

B - true

Answer : A

Explanation

Expressions that refer to a memory location is called "lvalue" expression.

go_questions_answers.htm
Advertisements