Junior Software Engineer Interview Questions

7,254 junior software engineer interview questions shared by candidates

You will be given a positive integer N, and two single-digit integers p and q, where p != q and both are greater than 1. You must output all of the integers in descending order from N to 1 inclusive, separated by a comma ','. However, any integer divisible by p or q should be replaced by the text OUT and any integer whose decimal representation contains digit p or q should be replaced by the text THINK. Integers for which both of the preceding statements are true should instead be replaced by the text OUTTHINK.
avatar

Junior Software Engineer

Interviewed at IBM

3.9
Dec 5, 2017

You will be given a positive integer N, and two single-digit integers p and q, where p != q and both are greater than 1. You must output all of the integers in descending order from N to 1 inclusive, separated by a comma ','. However, any integer divisible by p or q should be replaced by the text OUT and any integer whose decimal representation contains digit p or q should be replaced by the text THINK. Integers for which both of the preceding statements are true should instead be replaced by the text OUTTHINK.

IBM is implementing an online pharmacy application for a major drug store chain. As part of the application, customers can start to type in the name of a drug and the system will allow them to choose from among the list of drugs which begins with the letters that they have typed. For example, if they type the letters "ASP", the system could offer "ASPRIN" as a possible match, along with other drugs that begin with "ASP". If there's no match, the system will show <NONE>. Assumptions: The list may be very long, hundreds of thousands of drugs. The call will be made very often, so search speed is crucial. Assume that in the production version, whatever preprocessing you do on the list of drugs is only done once, and the search is the only part that is called repeatedly. Input: The entire list of drugs in alphabetical order, followed by a blank line, and then a partial sequence to search for. Output: The first 2 matching drugs, one per line, or <NONE> if there's no match.
avatar

Junior Software Engineer

Interviewed at IBM

3.9
Dec 5, 2017

IBM is implementing an online pharmacy application for a major drug store chain. As part of the application, customers can start to type in the name of a drug and the system will allow them to choose from among the list of drugs which begins with the letters that they have typed. For example, if they type the letters "ASP", the system could offer "ASPRIN" as a possible match, along with other drugs that begin with "ASP". If there's no match, the system will show <NONE>. Assumptions: The list may be very long, hundreds of thousands of drugs. The call will be made very often, so search speed is crucial. Assume that in the production version, whatever preprocessing you do on the list of drugs is only done once, and the search is the only part that is called repeatedly. Input: The entire list of drugs in alphabetical order, followed by a blank line, and then a partial sequence to search for. Output: The first 2 matching drugs, one per line, or <NONE> if there's no match.

Design and code a pricing engine that will be used to generate quotes for charterUP. Prices should be computed using the following inputs: VehicleType, VehicleCount, PricingMethod, PricingMethodUnits, and VehicleTypeRate. The formula for computing price will be: price = VehicleCount * VehicelTypeRate * PricingMethod * PricingMethodUnits. PricingMethods: Daily, Hourly, Distance Vehicle Types: Charter Bus, Mini Bus, Sprinter, Party Bus, Sedan, SUV, Limousine, Trolley Rates will need to be stored for each VehicleType and PricingMethod combination as follows: Note: Distance rates are per mile.
avatar

Junior Software Engineer

Interviewed at CharterUP

4.3
Oct 30, 2022

Design and code a pricing engine that will be used to generate quotes for charterUP. Prices should be computed using the following inputs: VehicleType, VehicleCount, PricingMethod, PricingMethodUnits, and VehicleTypeRate. The formula for computing price will be: price = VehicleCount * VehicelTypeRate * PricingMethod * PricingMethodUnits. PricingMethods: Daily, Hourly, Distance Vehicle Types: Charter Bus, Mini Bus, Sprinter, Party Bus, Sedan, SUV, Limousine, Trolley Rates will need to be stored for each VehicleType and PricingMethod combination as follows: Note: Distance rates are per mile.

Viewing 4361 - 4370 interview questions

Glassdoor has 7,254 interview questions and reports from Junior software engineer interviews. Prepare for your interview. Get hired. Love your job.