![Go Tutorial](/go/images/go-mini-logo.jpg)
- 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.
![Questions and Answers](/images/questions_and_answers.png)
Answer : B
Explanation
No support for pointer arithmetic.
Answer : A
Explanation
Yes! Variables of different types can be declared in one go using type inference.
Q 3 - Which of the following operator gives remainder of after an integer division in Go?
Answer : B
Explanation
% − Modulus Operator returns remainder of after an integer division.
Answer : A
Explanation
Yes! function clousures are supported in Go. Functions closure are anonymous functions and can be used in dynamic programming.
Q 5 - Which of the following is true about formal parameters in Go?
A - Function parameters, formal parameters, are treated as local variables with-in that function.
Answer : C
Explanation
Both 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 transfers control to the labeled statement in Go?
Answer : C
Explanation
goto transfers control to the labeled statement.
Answer : B
Explanation
No support for type inheritance.
Q 9 - In Go language, variables of different types can be declared in one statement.
Answer : A
Explanation
Yes! Variables of different types can be declared in one go using type inference.
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.