Blockchain Go Language Set 1
Free Online Best Blockchain Go Language MCQ Questions for improve your basic knowledge of Blockchain Go Language. This Blockchain Go Language Set 1 test that contains 25 Multiple Choice Questions with 4 options. You have to select the right answer to a question.
Start
Congratulations - you have completed Blockchain Go Language Set 1.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1 |
Which of the following is true about switch statement in Go?
A | In expression switch, a case contains expressions which is compared against the value of the switch expression. |
B | In type switch, a case contain type which is compared against the type of a specially annotated switch expression. |
C | both a and b |
D | None of the above. |
Question 2 |
Which of the following is not a integer type in Go?
A | uint8 |
B | uint64 |
C | complex128 |
D | All of the above. |
Question 3 |
Which of the following is a derived type in Go?
A | Union types |
B | Function types |
C | Slice types |
D | All of these |
Question 4 |
What are the advantages of GO?
A | GO compiles very quickly |
B | Go supports concurrency at the language level |
C | Functions are firstclass objects in GO |
D | All of these |
Question 5 |
Which of the following operator checks if the values of two operands are equal or not in Go?
A | != |
B | <> |
C | eq |
D | None of the above. |
Question 6 |
Which of the following is true about static type declaration of a variable in Go?
A | Static type variable declaration provides assurance to the compiler that there is one variable existing with the given type and name |
B | Static type variable declaration has its meaning at the time of compilation only, compiler needs actual variable declaration at the time of linking of the program |
C | both a and b |
D | None of the above |
Question 7 |
One of the following had an hand in creating the language?
A | Micheal Rodney |
B | Rob Pike |
C | Harry Lobman |
D | Carrick Mcdon |
Question 8 |
Which version was released in February, 2018?
A | 1.5 |
B | 1.2 |
C | 1.1 |
D | 1.3 |
Question 9 |
One of the following made no contribution to the creation of the language?
A | Robert Griesemer |
B | Ken Thompson |
C | Samuel Cage |
D | Rob Pike |
Question 10 |
What's the name of the collection involved in the language?
A | Portable collection |
B | Direct collection |
C | Garbage collection |
D | Static collection |
Question 11 |
Which of the following function returns the capacity of slice as how many elements it can be accomodate?
A | size() |
B | len() |
C | cap() |
D | None of the above. |
Question 12 |
Which of the following is the default value of a global variable in Go?
A | Undefined |
B | 0 or nil |
C | Not fixed |
D | None of the above. |
Question 13 |
Explain workspace in GO?
A | src contains GO source files organized into packages |
B | pkg contains package objects and |
C | bin contains executable commands |
D | All of these |
Question 14 |
Since when has the program been supporting mobile devices?
A | 2011 |
B | 2015 |
C | 2016 |
D | 2017 |
Question 15 |
Which of the following is true about break statement in Go?
A | If you are using nested loopsthe break statement will stop the execution of the innermost loop and start executing the next line of code after the block. |
B | If you are using nested loops (i.e., one loop inside another loop), the break statement will stop the execution of the outermost loop and start executing the next line of code after the block. |
C | Both of the above. |
D | None of the above. |
Question 16 |
Which of the following is true about dynamic type declaration of a variable in Go?
A | Dynamic type variable declaration requires compiler to interpret the type of variable based on value passed to it. |
B | Compiler don't need a variable to have type statically as a necessary requirement. |
C | both a and b |
D | None of the above. |
Question 17 |
Where was the language created?
A | Restaurant |
B | Grocery store
|
C | Google |
D | Apple |
Question 18 |
Which of the following is correct about interfaces in Go?
A | Go programming provides another data type called interfaces which represents a set of method signatures. |
B | Struct data type implements these interfaces to have method definitions for the method signature of the interfaces. |
C | Both of the above. |
D | None of the above. |
Question 19 |
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. |
D | All of the above. |
Question 20 |
In which quarter of 2009 was the programming language created?
A | 4th quarter |
B | 2nd quarter |
C | 3rd quarter |
D | 1st quarter |
Question 21 |
What is Go programming language?
A | It is an open source programming language developed at Google. |
B | It is also known as Golang. |
C | This language is designed primarily for system programming. |
D | All of these |
Question 22 |
Which of the following is correct about nil pointer in Go?
A | Go compiler assign a Nil value to a pointer variable in case you do not have exact address to be assigned. |
B | Nil value assignment is done at the time of variable declaration. |
C | A pointer that is assigned nil is called a nil pointer. |
D | All of the above. |
Question 23 |
What's another name for Go?
A | Golang |
B | Gooang |
C | Godong |
D | Gobong |
Question 24 |
Which of the following function returns the total number of elements present in a slice?
A | len() |
B | cap() |
C | size() |
D | None of the above. |
Question 25 |
When was the language created?
A | 2007 |
B | 2008 |
C | 2009 |
D | 2010 |
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
Get Results
There are 25 questions to complete.
← |
List |
→ |
Return
Shaded items are complete.
1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 |
End |
Return
You have completed
questions
question
Your score is
Correct
Wrong
Partial-Credit
You have not finished your quiz. If you leave this page, your progress will be lost.
Correct Answer
You Selected
Not Attempted
Final Score on Quiz
Attempted Questions Correct
Attempted Questions Wrong
Questions Not Attempted
Total Questions on Quiz
Question Details
Results
Date
Score
Hint
Time allowed
minutes
seconds
Time used
Answer Choice(s) Selected
Question Text
All done
Need more practice!
Keep trying!
Not bad!
Good work!
Perfect!