- 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 static type declaration of a variable in Go?
Answer : C
Explanation
Both of the above options are correct.
Q 2 - Which of the following is true about packages in Go?
A - The first line of the program package defines the package name in which a Go program should lie.
B - It is a must statement as Go programs runs in packages.
Answer : D
Explanation
All of the above options are correct.
Q 3 - Which of the following operator checks if the values of two operands are equal or not in Go?
Answer : A
Explanation
!= − Checks if the values of two operands are equal or not, if values are not equal then condition becomes true.
Answer : A
Explanation
Yes! function clousures are supported in Go. Functions closure are anonymous functions and can be used in dynamic programming.
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 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 is correct about type casting in Go?
A - Type casting is a way to convert a variable from one data type to another data type.
B - if you want to store a long value into a simple integer then you can type cast long to int.
Answer : C
Explanation
Both of the above options are correct.
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 : A
Explanation
Package statement is a must statement as Go programs runs in packages.
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.