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>"))
      }

SAMPLE REPORT
Candidate Name: David Messi Test Date: 28-May-2014
Test Name: Go Test (Go Programming Language Test) Test Start Time: 13.30

Score: 18 Out Of 20

Percentage: 90

Result: PASS

passing score image
SECTION PERFORMANCE
Section Name FAIL PASS
Go Language
Score: 18/20
STRENGTH AND WEAKNESS
Strength Go Language
Weakness -
* Note: If score <= 40 then its a Weakness. If score >= 80 then its a Strength.
ONLINE PROCTORING
0%
10 20 30 40 50 60 70 80 90 100%
Tolerable Limit Not acceptable
Window Violation: 0 | Time Violation: 0 secs
CANDIDATE DETAILS
Gender : Male Phone Number : +1-541-754-3010
Total Experience (Years) : 3 Total Experience (Months) : 5
Skill Set : Go Language Current Employer : Interview Mocha
Current Job Title : Solution Architect Current Salary : 600.00
Expected Salary : 1000000.00 Current Location : Chicago

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule 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
  • hexaware
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

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule a Demo