Dow Jones Interview Question: Four Interview Questions 1. M... | Glassdoor

Interview Question

Technology Showcase Event! Interview New York, NY

Four Interview Questions 1. Multiple Choice - Choose a

  location to work. (3 min) 2. Video - Use an example to explain the lifecycle of HTTP request & response. (3 min) 3. Essay - Programming (40 min) Most people have adopted the decimal number system which has ten symbols (0,1,2,3,4,5,6,7,8,9). There are other number systems like binary, hex and octal. Your job is to convert a hex number into a musical number. What is a musical number you might ask? It’s something we invented. Keep reading. The Hex alphabet contains 16 symbols: 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f The Musical alphabet contains 12 symbols: A,A#,B,C,C#,D,D#,E,F,F#,G,G# (# is pronounced 'sharp' so 'A#' is pronounced 'A-sharp', 'C#' is 'C-sharp' and so on) Your program should validate input (make sure input is a hex number i.e. it is in base-16) and convert it to a number represented by the musical alphabet (base-12). Your program should output the musical number OR an error string "Input is not valid Hex" if the input is not valid hex. Sample inputs & outputs: Input:9, Output:F# Input:dead, Output:BFG#GD Input:feedface, Output:F#G#C#C#C#A#AA#B ***You may write the program in any language you wish, just make a note at the top of the answer page letting us know which one you chose. 4. Video - Please explain the thought process behind your answer to the previous question. (3 min)
technical, coding

Add Answers or Comments

To comment on this, Sign In or Sign Up.