Go Test Assessment

Topics covered

Error Handling, Interfaces, Goroutines, Arrays and Slices, Functions, Pointers, Structures, Interfaces, Time Package

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

Go Language test is useful to effectively assess the skills of candidates before an interview. Go language is a free and open source language programming which is a statically-typed language with syntax similar to that of C. It is designed to check the development and Javascript skills. The test is created and validated by Subject Matter Experts. 

The Go Language Test contains questions on following topics:  

  • Error Handling

  • Interfaces

  • Goroutines

  • Arrays and Slices

  • Functions

  • Pointers

  • Structures

  • Interfaces

  • Time Package

This pre-employment test is useful for hiring:
  • System Software Engineer - Golang
  • Golang Developer

Test details:

Go Language Test enables employers and recruiters to evaluate skills and job readiness of candidates. For this reason, the emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

Test Details: 20 minutes 

20 Application Questions


The combination of Application and Theory questions helps to evaluate Technical as well as practical Skills of Candidates.

Go Test (Go Programming Language Test)

Question #1 of 3

Choose correct ways to count time consumed by HTTP request.

Note: There can be multiple correct answers to this question.

    • start := time.Now()
      resp, err := http.Get("https://fb.com")
      elapsed := time.Now() - start
      fmt.Println(elapsed)

    • start := time.Now()
      resp, err := http.Get("https://fb.com")
      elapsed := time.Since(start).Seconds()
      fmt.Println(elapsed)

    • start := time.Now()
      resp, err := http.Get("https://fb.com")
      elapsed := time.Now().After(start)
      fmt.Println(elapsed)

    • start := time.Now()
      resp, err := http.Get("https://fb.com")
      elapsed := time.Now().Sub(start)
      fmt.Println(elapsed)

Question #2 of 3

Which of the following ways is correct to define custom function for "int" type?

Note: There can be multiple correct answers to this question.

    • func (i int) Custom(){
          //...
      }

    • func (i *int) Custom(){
          //...
      }

    • type MyInt int

      func (i MyInt) Custom(){
          //...
      }

    • type MyInt struct{
          int
      }

      func (i MyInt) Custom() {
          //...
      }

Question #3 of 3

Having a simple HTTP server started with:

    http.HandleFunc("/", handler)
    http.ListenAndServe(":8080", nil)
Create a proper "handler" function to serve "/" address with HTML code.

  My Title
  Test exercise
    

    • func handler() *io.Writer {
          res := new(io.Writer)
          res.Write([]byte(`
              <html>
              <head><title>My Title</title></head>
              <body>Test exercise</body>
              </html>
          `))
      }

    • func handler() []byte {
          return []byte("<html>" +
          "<head><title>My Title</title></head>" +
          "<body>Test exercise</body>" +
          "</html>")
      }

    • func handler(res http.ResponseWriter, req *http.Request) {
          res.Write([]byte(`
              <html>
              <head><title>My Title</title></head>
              <body>Test exercise</body>
              </html>
          `))
      }

    • func handler(res http.ResponseWriter, req *http.Request) {
          req.Write([]byte("<html>" +
          "<head><title>My Title</title></head>" +
          "<body>Test exercise</body>" +
          "</html>"))
      }

Candidate Name
Assessment Name
Invited by
Assessment Date
IP Address
Status
















24.00 Out of 40.00
Pass
60%
03
23 Minutes

Java EE

9/10

Hibernate

3/10

Oracle PL/SQL

7/10

Analytical Thinking

5/10

Note:If score<= 30% then its a Weakness. If score >=70% then its a Strength.

Strengths

Java EE, Oracle PL/SQL, Analytical Thinking

Weaknesses

Hibernate

Happy

It was a good test for me, the questions were on the latest technology of java on which I am currently working. It was a great experience. Thank you!

Take your first step to hire job fit candidate

GET A DEMO

How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Take your first step to hire job fit candidate

GET A DEMO