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 2 - Which of the following is not a floating type in Go?

A - float128

B - complex64

C - complex128

D - All of the above.

Answer : A

Explanation

float128 is not a floating type.

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.

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

A - call by value.

B - call by reference

C - Both of the above.

D - None of the above.

Answer : B

Explanation

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

Q 9 - Go supports generic programming.

A - true

B - false

Answer : B

Explanation

No support for generic programming.

Q 10 - The type for a case in select statement must be the a communication channel operation.

A - true

B - false

Answer : A

Explanation

The type for a case in select statement must be the a communication channel operation.

go_questions_answers.htm
Advertisements