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

Q 3 - Which of the following operator gives remainder of after an integer division in Go?

A - ^

B - %

C - $

D - None of the above.

Answer : B

Explanation

% − Modulus Operator returns remainder of after an integer division.

Q 4 - Method are special functions with a receiver in Go.

A - true

B - false

Answer : A

Explanation

Yes! Method are special functions with a receiver.

Answer : C

Explanation

Both of the above options are correct.

Q 7 - Which of the following terminates the for loop or switch statement and transfers execution to the statement immediately following the for loop or switch in Go?

A - break

B - continue

C - goto

D - None of the above.

Answer : A

Explanation

break terminates the for loop or switch statement and transfers execution to the statement immediately following the for loop or switch.

Q 8 - Which of the following method of parameter passing, copies the address of an argument into the formal parameter?

A - call by value.

B - call by reference

C - Both of the above.

D - None of the above.

Answer : B

Explanation

Call by reference − This method copies the address of an argument into the formal parameter.

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

A - false

B - true

Answer : B

Explanation

Yes! Pointer types are derived types.

Q 10 - In Go language, Array types are inbuilt types.

A - false

B - true

Answer : A

Explanation

No! Array types are derived types.


go_questions_answers.htm

Advertisements