- 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.
Q 1 - Which of the following is true about Go programming language?
A - Programs are constructed using packages, for efficient management of dependencies.
Answer : C
Explanation
Both of the above options are correct.
Q 2 - Which of the following is not a integer type in Go?
Answer : C
Explanation
complex128 is not a integer type.
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.
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 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 function can be used to increase the capacity of a slice in Go?
Answer : A
Explanation
Slice allows increasing the capacity of a slice using append() function.
Q 7 - Which of the following is true about for loop in Go if for clause that is ( init; condition; increment ) is present?
A - The init step is executed first, and only once.
B - init step allows you to declare and initialize any loop control variables.
C - You are not required to put a statement in init step, as long as a semicolon appears.
Answer : D
Explanation
All of the above options are correct.
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.
Answer : B
Explanation
Yes! Structure types are derived types.
Answer : A
Explanation
No! Array types are derived types.
To Continue Learning Please Login
Login with Google