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 1 - Does Go support operator overloading?

A - yes

B - no

Answer : B

Explanation

No support for operator overloading.

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.

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 - Which of the following method of parameter passing, copies the actual value of an argument into the formal parameter of the function?

A - call by value.

B - call by reference

C - Both of the above.

D - None of the above.

Answer : A

Explanation

Call by value − This method copies the actual value of an argument into the formal parameter of the function.

Q 8 - Go supports pointer arithmetics.

A - true

B - false

Answer : B

Explanation

No support for pointer arithmetic.

Q 9 - Dynamic type variable declaration provides assurance to the compiler that there is one variable existing with the given type and name.

A - true

B - false

Answer : B

Explanation

Static type variable declaration provides assurance to the compiler that there is one variable existing with the given type and name.

Q 10 - Variables are rvalues and so may appear on the left-hand side of an assignment.

A - false

B - true

Answer : A

Explanation

Variables are lvalues and so may appear on the left-hand side of an assignment.


go_questions_answers.htm

Advertisements