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 a derived type in Go?

A - Pointer types

B - Array types

C - Structure types

D - All of the above.

Answer : D

Explanation

All of the above are derived types.

Answer : C

Explanation

Both of the above options are correct.

Q 6 - Which of the following function can be used to copy a slice to another slice in Go?

A - append()

B - copy()

C - resize()

D - None of the above.

Answer : B

Explanation

Using copy() function, contents of a source slice are copied to destination slice.

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 Go programming language, Programs are constructed using packages, for efficient management of dependencies?

A - false

B - true

Answer : B

Explanation

Programs are constructed using packages, for efficient management of dependencies.

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 - Expressions that refer to a memory location is called "rvalue" expression.

A - false

B - true

Answer : A

Explanation

Expressions that refer to a memory location is called "lvalue" expression.


go_questions_answers.htm

Advertisements
E-Books Store