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 7 - In which of the following method of parameter passing, changes made to the parameter inside the function have no effect on the argument?

A - call by value.

B - call by reference

C - Both of the above.

D - None of the above.

Answer : A

Explanation

Call by value − changes made to the parameter inside the function have no effect on the argument.

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 - Go supports generic programming.

A - true

B - false

Answer : B

Explanation

No support for generic programming.

Q 10 - You can have any number of case statements within a select statement in Go.

A - true

B - false

Answer : A

Explanation

You can have any number of case statements within a select statement in Go.


go_questions_answers.htm

Advertisements