- 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 : A
Explanation
Yes! Go is a case sensitive programming language.
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 expression switch statement in Go?
Answer : D
Explanation
All of the above options are correct.
Answer : A
Explanation
Yes! Method are special functions with a receiver.
Q 5 - Which of the following is the default value of a local variable in Go?
Answer : B
Explanation
Default value of a local variable is 0 type value or nil.
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 causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating in Go?
Answer : B
Explanation
continue causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.
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
Yes! Pointer types are derived types.
Q 10 - Expressions that refer to a memory location is called "rvalue" expression.
Answer : A
Explanation
Expressions that refer to a memory location is called "lvalue" expression.
To Continue Learning Please Login
Login with Google