- 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 not a floating type in Go?
Answer : A
Explanation
float128 is not a floating type.
Q 3 - Which of the following is correct about rvalue expression in Go?
A - The term rvalue refers to a data value that is stored at some address in memory.
Answer : D
Explanation
All of the above options are correct.
Answer : A
Explanation
A Go function can return multiple values.
Q 5 - Which of the following is the default value of a global variable in Go?
Answer : B
Explanation
Default value of a global variable is 0 type value or nil.
Q 6 - Which of the following function returns the capacity of slice as how many elements it can be accomodate?
Answer : C
Explanation
cap() function returns the capacity of slice as how many elements it can be accomodate.
Q 7 - Which of the following is correct about interfaces in Go?
Answer : C
Explanation
Both of the above options are correct.
Answer : B
Explanation
No support for method overloading.
Q 9 - A static type variable declaration requires compiler to interpret the type of variable based on value passed to it.
Answer : B
Explanation
A dynamic type variable declaration requires compiler to interpret the type of variable based on value passed to it.
Q 10 - The term rvalue refers to a data value that is stored at some address in memory.
Answer : A
Explanation
The term rvalue refers to a data value that is stored at some address in memory.
To Continue Learning Please Login
Login with Google