- Go - Home
- Go - Overview
- Go - Environment Setup
- Go - Program Structure
- Go - Basic Syntax
- Go - Data Types
- Go - Variables
- Go - Constants
- Go - Identifiers
- Go - Keywords
- Go - Operators
- Go - Arithmetic Operators
- Go - Assignment Operators
- Go - Relational Operators
- Go - Logical Operators
- Go - Bitwise Operators
- Go - Miscellaneous Operators
- Go - Operators Precedence
- Go Decision Making
- Go - Decision Making
- Go - If Statement
- Go - If Else Statement
- Go - Nested If Statements
- Go - Switch Statement
- Go - Select Statement
- Go Control Flow Statements
- Go - For Loop
- Go - Nested for Loops
- Go - Break Statement
- Go - Continue Statement
- Go - Goto Statement
- Go Functions
- Go - Functions
- Go - Call by Value
- Go - Call by Reference
- Go - Functions as Values
- Go - Function Closure
- Go - Function Method
- Go - Anonymous function
- Go Strings
- Go - Strings
- Go - String Length
- Go - String Concatenation
- Go - Compare Strings
- Go - Split String
- Go - Substring Extraction
- Go - String Replacement
- Go - String Interpolation
- Go - Parse Date Strings
- Go Arrays
- Go - Arrays
- Go - Multidimensional Arrays
- Go - Multidimensional Arrays
- Go - Passing Arrays to Functions
- Go - Pointers
- Go - Pointers
- Go - Array of pointers
- Go - Pointer to pointer
- Go - Passing pointers to functions
- Go Advanced Control Structures
- Go - Scope Rules
- Go - Dereferencing Pointer
- Go - Structures
- Go - Slice
- Go - Slice of Slices
- Go - Range
- Go - Maps
- Go - Recursion
- Go - Type Casting
- Go - Interfaces
- Go - Type Assertion
- Go - Error Handling
- Go - Concurrency
- Go - Regular Expression
- Go - Inheritance
- Go - Packages
- Go - Templates
- Go - Reflection
- Go - Generics
- Go File Handling
- Go - Read File By Word
- Go - Read File By Line
- Go - Read CSV Files
- Go - Delete File
- Go - Rename & Move File
- Go - Truncate a File
- Go - File Read-Write Mode W/O Truncation
- Go Miscellaneous
- Go - defer Keyword
- Go - Fmt Package
- Go - Zero Value
- Go - Import
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 not a integer type in Go?
Answer : C
Explanation
complex128 is not a integer type.
Q 3 - Which of the following is true about for loop statement in Go?
A - if condition is available, then for loop executes as long as condition is true.
B - if range is available, then for loop executes for each item in the range.
Answer : C
Explanation
Both of the above options are correct.
Answer : A
Explanation
A Go function can return multiple values.
Q 5 - Which of the following is correct about slice in Go?
A - Go Slice is an abstraction over Go Array.
B - It provides many utility functions required on Array and is widely used in Go programming.
Answer : D
Explanation
All of the above options are correct.
Q 6 - Which of the following is correct about maps in Go?
A - Given a key and a value, you can strore the value in a Map object.
B - After value is stored, you can retrieve it by using its key.
Answer : C
Explanation
Both of the above options are correct.
Q 7 - Which of the following causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating in Go?
Answer : B
Explanation
continue causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.
Q 8 - Which of the following method is the default method of parameter passing in Go?
Answer : A
Explanation
By default, Go uses call by value to pass arguments.
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 - Expressions that refer to a memory location is called "rvalue" expression.
Answer : A
Explanation
Expressions that refer to a memory location is called "lvalue" expression.