- 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 operator 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 select statement in Go?
B - The type for a case must be the a communication channel operation.
Answer : D
Explanation
All of the above options are correct.
Answer : A
Explanation
Functions can be created on the fly and can be used as values.
Answer : A
Explanation
Yes! Go allows you to have pointer on a pointer and so on.
Q 6 - Which of the following is correct about slices in Go?
A - If a slice is declared with no inputs the by default, it is initialized as nil.
B - length of a nil slice is 0.
Answer : D
Explanation
All of the above options are correct.
Q 7 - Which of the following is correct about interfaces in Go?
Answer : C
Explanation
Both of the above options are correct.
Q 8 - Go programming language is strongly and statically typed, provides inbuilt support for garbage collection?
Answer : A
Explanation
Go programming language is strongly and statically typed, provides inbuilt support for garbage collection.
Q 9 - The first line of the program package defines the package name in which a Go program should lie.
Answer : A
Explanation
The first line of the program package defines the package name in which a Go program should lie.
Q 10 - You can have any number of case statements within a select statement in Go.
Answer : A
Explanation
You can have any number of case statements within a select statement in Go.
To Continue Learning Please Login
Login with Google