Go Online Quiz


Advertisements


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

Answer : C

Explanation

Both of the above options are correct.

Answer : D

Explanation

All of the above options are correct.

Answer : C

Explanation

Both of the above options are correct.

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 method overloading.

A - true

B - false

Answer : B

Explanation

No support for method overloading.

Q 9 - In Go language, variables of different types can be declared in one statement.

A - true

B - false

Answer : A

Explanation

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

Q 10 - Numeric literals are lvalues and so may not be assigned and can not appear on the left-hand side.

A - true

B - false

Answer : B

Explanation

Numeric literals are rvalues and so may not be assigned and can not appear on the left-hand side.


go_questions_answers.htm

Advertisements