Blockchain Go Language Set 2
Free Online Best Blockchain Go Language MCQ Questions for improve your basic knowledge of Blockchain Go Language. This Blockchain Go Language Set 2 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 2.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1 |
What is a ledger?
A | ledger is typically a database or a record book |
B | ledger works on the principle of ECCDLP |
C | ledger provides equivalent security for a much lesser key size which makes ECC faster and more secure |
D | ledgeris a cryptocurrency |
Question 2 |
is a popular package for writing web handlers
A | Gorilla/mux |
B | size |
C | len |
D | cap() |
Question 3 |
What is a Merkle Tree?
A | Merkle Tree is used to verify the transaction in the quickest time and less space complexity |
B | Merkle Tree is a cryptocurrency |
C | Merkle Tree is a record book |
D | Merkle Tree is a technology behind cryptocurrency and just one case of technology |
Question 4 |
What is the output of the following code snippet?
package main func main()
{ x := 1 y := &x
fmt.Println(*y) *y = 2
fmt.Println(x) }
A | 1 |
B | 28 |
C | 15 |
D | 27 |
Question 5 |
package main import ( "fmt")
func hello() []string {return nil}
func main()
{
h := hello
if h == nil {fmt.Println("nil")
}
else
{
fmt.Println("not nil")}
}
A | nil |
B | not nil |
C | compilation error |
D | None of the above |
Question 6 |
What is use of spew.Dump ?
A | spew.Dump allows lower-bound and upper bound to be specified to get the subslice of it using[lower-bound:upper-bound]. |
B | spew.Dump is a convenient function that pretty prints our structs into the console. It’s useful for debugging |
C | spew.Dump allows us to view structs and slices cleanly formatted in our console |
D | spew.Dump is a way to convert a variable from one data type to another data type |
Question 7 |
How to print type of a variable in Go?
A | var a, b, c = 3, 4, "foo" fmt.Printf("a is of type %Tn", a) |
B | var a, b, c = 3, 4, "foo"tmt.Printf("a is of type %Tn", a) |
C | var a, b, c = 3, 4, Printf("a is of type %Tn", a) |
D | None of the above |
Question 8 |
How To Get A Sub-slice Of A Slice?
A | used in for loop to iterate over items of an array, slice, channel or map |
B | allows lower-bound and upper bound to be specified to get the subslice of it using[lower-bound:upper-bound]. |
C | is a way to convert a variable from one data type to another data type |
D | All of Above |
Question 9 |
What Are Methods In Go?
A | declaration syntax, a "receiver" is present to represent the container of the function |
B | This receiver can be used to call function using "." operator. |
C | Both A and B are correct |
D | are anonymous functions and can be used in dynamic programming |
Question 10 |
What is Blockchain ?
A | Blockchain is used to verify the transaction in the quickest time and less space complexity |
B | Blockchain is a cryptocurrency |
C | Blockchain is a record book |
D | Blockchain is a technology behind cryptocurrency and just one case of technology |
Question 11 |
Which of the following is correct statement?
A | Go support type inheritance |
B | Go support generic programming |
C | Go a case sensitive language |
D | All of Above |
Question 12 |
List out the built in support in GO?
A | Container: container/list , container/heap |
B | Web Server: net/http |
C | Cryptography: Crypto/md5 , crypto/sha1 |
D | All of these |
Question 13 |
Which one of the following is correct?
A | const Pi = 3.14 |
B | const Pi = math.Pi |
C | Both A and B are correct |
D | None of the above |
Question 14 |
What Is Range In Go?
A | used in for loop to iterate over items of an array, slice, channel or map |
B | allows lower-bound and upper bound to be specified to get the subslice of it using[lower-bound:upper-bound]. |
C | is a way to convert a variable from one data type to another data type |
D | All of Above |
Question 15 |
Which of these facts about a ledger is NOT CORRECT?
A | A ledger is used purely for the reporting of cash |
B | A ledger consists of transactions, often governed by contracts |
C | A ledger is a system of record |
D | A ledger describes the inputs and outputs of a business. |
Question 16 |
What Are The Function Closures?
A | These are anonymous functions and can be used in dynamic programming. |
B | declaration syntax, a "receiver" is present to represent the container of the function |
C | this can be used to call function using "." operator. |
D | All of Above |
Question 17 |
8. Which of the following is initial value (zero value) for interfaces, slice, pointers, maps, channels and functions?
A | 0 |
B | "" |
C | Nil |
D | FALSE |
Question 18 |
______is the position of the data record in the blockchain
A | Index |
B | Timestamp |
C | size |
D | Gorilla/mux |
Question 19 |
What are the different types of Blockchains?
A | 2 |
B | 3 |
C | 4 |
D | 5 |
Question 20 |
What are the benefits of using Go Programming?
A | Support for environment adopting patterns similar to dynamic languages. |
B | Compilation time is fast |
C | InBuilt concurrency support: light-weight processes (via goroutines), channels, select statement |
D | All of the above |
Question 21 |
What is use of Spaw ?
A | Spaw allows us to view structs and slices cleanly formatted in our console |
B | Spaw is a convenient function that pretty prints our structs into the console. It’s useful for debugging |
C | Spaw is a way to convert a variable from one data type to another data type |
D | Spaw allows lower-bound and upper bound to be specified to get the subslice of it using[lower-bound:upper-bound]. |
Question 22 |
An lvalue may appear as either the left-hand or right-hand side of an assignment.
A | FALSE |
B | TRUE |
C | All of these |
D | None |
Question 23 |
In which of the following method of parameter passing, changes made to the parameter inside the function have effect on the argument?
A | call by value. |
B | call by reference |
C | Both of the above. |
D | None of the above. |
Question 24 |
Which of the following is correct statement?
A | Go support pointer arithmetics |
B | Go support method overloading |
C | Go support operator overloading |
D | None of the above |
Question 25 |
___is automatically determined and is the time the data is written
A | Timestamp |
B | Index |
C | len |
D | size |
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!