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 2 - Can you declared multiple types of variables in single declaration in Go?

A - true

B - false

Answer : A

Explanation

Yes! Variables of different types can be declared in one go using type inference.

Answer : A

Explanation

If you are using nested loops (i.e., one loop inside another loop), the break statement will stop the execution of the innermost loop and start executing the next line of code after the block.

Answer : C

Explanation

Both of the above options are correct.

Q 8 - Go supports type inheritance.

A - true

B - false

Answer : B

Explanation

No support for type inheritance.

Q 9 - Go supports generic programming.

A - true

B - false

Answer : B

Explanation

No support for generic programming.

Q 10 - An rvalue is an expression that cannot have a value assigned to it which means an rvalue may appear on the right- but not left-hand side of an assignment.

A - true

B - false

Answer : A

Explanation

An rvalue is an expression that cannot have a value assigned to it which means an rvalue may appear on the right- but not left-hand side of an assignment.

go_questions_answers.htm
Advertisements