- Go Tutorial
- Go - Home
- Go - Overview
- Go - Environment Setup
- Go - Program Structure
- Go - Basic Syntax
- Go - Data Types
- Go - Variables
- Go - Constants
- Go - Operators
- Go - Decision Making
- Go - Loops
- Go - Functions
- Go - Scope Rules
- Go - Strings
- Go - Arrays
- Go - Pointers
- Go - Structures
- Go - Slice
- Go - Range
- Go - Maps
- Go - Recursion
- Go - Type Casting
- Go - Interfaces
- Go - Error Handling
- Go Useful Resources
- Go - Questions and Answers
- Go - Quick Guide
- Go - Useful Resources
- Go - Discussion
Go Online Quiz
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.
Answer : B
Explanation
No support for method overloading.
Q 2 - Which of the following is correct about lvalue expression in Go?
A - Expressions that refer to a memory location is called "lvalue" expression.
B - An lvalue may appear as either the left-hand or right-hand side of an assignment.
C - Variables are lvalues and so may appear on the left-hand side of an assignment.
Answer : D
Explanation
All of the above are derived types.
Q 3 - Which of the following is true about switch statement in Go?
Answer : C
Explanation
Both of the above options are correct.
Answer : A
Explanation
Yes! Method are special functions with a receiver.
Q 5 - Which of the following is correct about nil pointer in Go?
B - Nil value assignment is done at the time of variable declaration.
Answer : D
Explanation
All of the above options are correct.
Q 6 - Which of the following function returns the total number of elements present in a slice?
Answer : B
Explanation
len() function returns the elements presents in the slice.
Q 7 - Which of the following transfers control to the labeled statement in Go?
Answer : C
Explanation
goto transfers control to the labeled statement.
Q 8 - In Go programming language, Programs are constructed using packages, for efficient management of dependencies?
Answer : B
Explanation
Programs are constructed using packages, for efficient management of dependencies.
Answer : B
Explanation
No support for generic programming.
Q 10 - Numeric literals are lvalues and so may not be assigned and can not appear on the left-hand side.
Answer : B
Explanation
Numeric literals are rvalues and so may not be assigned and can not appear on the left-hand side.
To Continue Learning Please Login
Login with Google