
- 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
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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.

Q 1 - Which of the following is true about dynamic type declaration of a variable in Go?
B - Compiler don't need a variable to have type statically as a necessary requirement.
Answer : C
Explanation
Both of the above options are correct.
Q 2 - Which of the following is a derived type in Go?
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.
Q 4 - Which of the following is true about break statement in Go?
Answer : A
Explanation
If you are using nested loops (i.e., one loop inside another loop), the break statement will stop the execution of the innermost loop and start executing the next line of code after the block.
Q 5 - Which of the following is true about local variables in Go?
A - Variables that are declared inside a function or block are called local variables.
B - They can be used only by statements that are inside that function or block of code.
C - Local variables are not known to functions outside their own.
Answer : D
Explanation
All of the above options are correct.
Q 6 - Which of the following is correct about maps in Go?
A - Go provides another important data type map which maps unique keys to values.
B - A key is an object that you use to retrieve a value at a later date.
Answer : C
Explanation
Both of the above options are correct.
Q 7 - Which of the following terminates the for loop or switch statement and transfers execution to the statement immediately following the for loop or switch in Go?
Answer : A
Explanation
break terminates the for loop or switch statement and transfers execution to the statement immediately following the for loop or switch.
Q 8 - Go programming implementations use a traditional compile and link model to generate executable binaries.
Answer : B
Explanation
Go programming implementations use a traditional compile and link model to generate executable binaries.
Q 9 - Dynamic type variable declaration provides assurance to the compiler that there is one variable existing with the given type and name.
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 - Variables are rvalues and so may appear on the left-hand side of an assignment.
Answer : A
Explanation
Variables are lvalues and so may appear on the left-hand side of an assignment.