Apprentice Engineer Interview Questions

596 apprentice engineer interview questions shared by candidates

**On-Site Dev 3** Two Whiteboard Questions: 1. He gave me a JSON response, which has one property users that was an array of users, each user having an id username etc etc. I had to write a function that would take in that json response, and then return an object where for each user in that array, there was a property on the object where the user id was the property name, and the full user object was the value, including the id. Ex {1: {userId: 1, userName: pete} } 2. He instantiated a class that had not been created passing a string into the constructor. Then he ran a few methods on that class; add, remove, and print. Basically adding items to a cart, removing one, printing the items in the cart. My job was to write the class that could accommodate the methods he created as well as a constructor that could take in a string to add an item to the cart.
avatar

Web Developer Apprentice

Interviewed at Intrepid Pursuits

3.6
Jun 13, 2018

**On-Site Dev 3** Two Whiteboard Questions: 1. He gave me a JSON response, which has one property users that was an array of users, each user having an id username etc etc. I had to write a function that would take in that json response, and then return an object where for each user in that array, there was a property on the object where the user id was the property name, and the full user object was the value, including the id. Ex {1: {userId: 1, userName: pete} } 2. He instantiated a class that had not been created passing a string into the constructor. Then he ran a few methods on that class; add, remove, and print. Basically adding items to a cart, removing one, printing the items in the cart. My job was to write the class that could accommodate the methods he created as well as a constructor that could take in a string to add an item to the cart.

Viewing 391 - 400 interview questions

Glassdoor has 596 interview questions and reports from Apprentice engineer interviews. Prepare for your interview. Get hired. Love your job.