Test
go part1
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (44)
1The program starts running in
- Apackage main
- Bpackage extra
- Cpackage start
- Dpackage go
2Where was the language Go created?
- AGoogle
- BApple
- CAmazon
- DFacebook
3The notation of logical NOT operator in a Go program is
- A!
- B^
- C;
- D-
4What is the minimum number of times a do loop would definitely get executed?
- A0
- B1
- C2
- D3
5What is the purpose of break statement?
- Aterminates the for loop or switch statement and transfers execution to the statement immediately following the for loop or switch.
- Bcauses the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.
- Crequires compiler to interpret the type of variable based on value passed to it.
- Dtransfers control to the labeled statement.
6What is the purpose of continue statement?
- Acauses the loop to skip the remainder of its body and immediately retest its condition prior to reiterating.
- Bterminates the for loop or switch statement and transfers execution to the statement immediately following the for loop or switch.
- Ctransfers control to the labeled statement.
- DNone of the above
7What is default value of a global variable in Go?
- A0
- B1
- C2
- D3
8What is default value of a local variable in Go?
- A0
- B1
- C2
- D3
9What is default value of a pointer variable in Go?
- Anil
- Btrue
- Cfalse
- D1
10What is an array?
- AA Collection of similar data items under a common name.
- BA Collection of fields
- CA set of method signatures
- DNone of the above
11Which of the following operator checks if the values of two operands are equal or not in Go?
- A!\=
- B<>
- C-eq
- DNone of the above
12Which of the following operator decreases integer value by one in Go?
- A--
- B++
- C-
- D%
- E+
13Which one of the following is correct?
- Aconst Pi \= 3.14
- Bconst Pi \= math.Pi
- Cboth a and b are correct
- DNone of the above
14Which of the following operator increases integer value by one in Go?
- A++
- B--
- C+
- D-
- E%
15Which of the following is a derived type in Go?
- AInterface types
- BMap types
- CChannel types
- DAll of the above
16Which of the following is a derived type in Go?
- AUnion types
- BFunction types
- CSlice types
- DAll of the above
17Which of the following function returns the capacity of slice as how many elements it can be accomodate?
- Asize()
- Blen()
- Ccap()
- DAll of the above
- ENone of the above
18Which of the following function returns the total number of elements present in a slice?
- Asize()
- Blen()
- Ccap()
- DAll of the above
- ENone of the above
19Which of the following function can be used to increase the capacity of a slice in Go?
- Aappend()
- Bcopy()
- Cresize()</p>\n<p> resize()
- Dincrease()
- ENone of the above
20Which of the following function can be used to copy a slice to another slice in Go?
- Aappend()
- Bcopy()
- Cresize()
- Dincrease()
- ENone of the above
21Which of the following is correct about maps in Go?</
- AGo provides another important data type map which maps unique keys to values.
- BA key is an object that you use to retrieve a value at a later date.
- CBoth of the above
- DNone of the above
22Which of the following terminates the for loop or switch statement and transfers execution to the statement immediately following the for loop or switch in Go?
- Abreak
- Bcontinue
- Cgoto
- Dfor
- ENone of the above
23Which of the following causes the loop to skip the remainder of its body and immediately retest its condition prior to reiterating in Go?
- Abreak
- Bcontinue
- Cgoto
- Dfor
- ENone of the above
24What will be the output of the following code?
package main
import "fmt"
func main() \{
var a int8 \= 3
var b int16 \= 4
sum \:\= a + b
fmt.Println(sum)
\}- ACompile time error
- B7
- C0
- D31
25Which of the following transfers control to the labeled statement in Go?
- Abreak
- Bcontinue
- Cgoto
- Dfor
- ENone of the above
26Which of the following transfers control to the labeled statement in Go?
- Abreak
- Bcontinue
- Cgoto
- Dfor
- ENone of the above
27Which of the following method of parameter passing, copies the actual value of an argument into the formal parameter of the function?
- Acall by value
- Bcall by reference
- Cboth of the above
- Dnone of the above
28In which of the following method of parameter passing, changes made to the parameter inside the function have no effect on the argument?
- Acall by value
- Bcall by reference
- Cboth of the above
- Dnone of the above
29What's the output of following code?
package main
import "fmt"
func main()\{
c \:\= [...]int\{\}
fmt.Println(len(c))
\}- A0
- B1
- Clen
- Dcompile error
- EInf
30RESTful web services ?
- ADefines its own security
- BInherits security measures from the underlying transport
- CBoth of the above
- DNone of the above
31What is/are the advantages of RESTful Web Services?
- ALanguage and Platform independent
- BREST can use SOAP
- CPermits different data format
- DAll of the above
32What is the category of 5XX HTTP Codes belongs to?
- AServer error
- BRedirection
- CClient error
- DInformational
33What is the Category of 4XX HTTP Codes belongs to?
- AServer error
- BClient error
- CInformational
- DSuccess
34What is the Category of 3XX HTTP Codes belongs to?</
- AServer error
- BRedirection
- CClient error
- DSuccess
35What's the output of following code?
package main
import "fmt"
const (
i \= iota
j
k
)
func main() \{
fmt.Println(i, j, k)
\}- A0 1 2
- B1 2 3
- Ciota
- Di j k
36What is the Category of 3XX HTTP Codes belongs to?
- AServer error
- BRedirection
- CClient error
- DSuccess
37What is the HTTP Code Related to Internal Server Error??
- A500
- B504
- C502
- D501
38What is the Category of 2XX HTTP Codes belongs to?
- ARedirection
- BServer error
- CClient error
- DSuccess
39What is the Category of the 1XX HTTP Codes belongs to??
- ARedirection
- BInformational
- CClient error
- DSuccess
40What does the Acronym REST Stands for?
- ARepresentational State Transfer
- BRepresentational Assured API
- CRepresentational Service Tax
- DRepresentational Solid Test
41What is the protocol used in REST?
- AHTTP
- BSOAP
- CJMX
- DXML
42What is the HTTP Code Related to Page Not Found?
- A404
- B403
- C402
- D401
43What is the HTTP Code 200 Indicates??
- ASuccess
- BWarning
- CError
- DCompleted
44What are the different HTTP Methods available??
- AGET,SAVE,PUT,POST
- BGET,HEAD,CONNECT,OPTIONS
- CGET,PUT,REMOVE,POST
- DGET,SET,DELETE,MARK
Información
- Descripción
- khann
- Autor
- Khamit Zhussip
- Idioma
- English
- Visitas
- 28
- Valoración
- Aún sin valoraciones Valora este test