Search test library by skills or roles
⌘ K

Adaface Sample Go Questions

Here are some sample Go questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Defer, Panic, and Recover
Control Flow
Error Handling
Solve
Consider the following Go code snippet, where we're exploring the use of defer, panic, and recover:
 image
In this pseudo-code, badCall function is deliberately causing a panic. test function uses a deferred function to handle the panic and recover from it. What will the output of this code be when it is run?
 image

Medium

Go Maps
Maps
Solve
Which of the following statements are true regarding the order of output for following Go code:
 image
A. Output will be ordered by values
            B. Output will be ordered by keys
            C. Output will be ordered randomly
            D. Output will be ordered by position in the code

Medium

File Handling and Defer
File Handling
Solve
Consider the following Go code. Where should we use *defer*?
 image

Easy

Go WaitGroup
Concurrency
Solve
What does the following Go code output?
 image

Medium

Mutex Locks
Mutex
Goroutines
Concurrency
Solve
Consider the following Go program:
 image
What is the expected output of the final counter when the program is run?
🧐 Question🔧 Skill

Medium

Defer, Panic, and Recover
Control Flow
Error Handling

2 mins

Go
Solve

Medium

Go Maps
Maps

2 mins

Go
Solve

Medium

File Handling and Defer
File Handling

2 mins

Go
Solve

Easy

Go WaitGroup
Concurrency

2 mins

Go
Solve

Medium

Mutex Locks
Mutex
Goroutines
Concurrency

2 mins

Go
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Defer, Panic, and Recover
Control Flow
Error Handling
Go
Medium2 mins
Solve
Go Maps
Maps
Go
Medium2 mins
Solve
File Handling and Defer
File Handling
Go
Medium2 mins
Solve
Go WaitGroup
Concurrency
Go
Easy2 mins
Solve
Mutex Locks
Mutex
Goroutines
Concurrency
Go
Medium2 mins
Solve

Trusted by recruitment teams in enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1500+ companies in 80+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️