Ads Here

Friday, October 22, 2021

Apple Python developer interview questions

 

Question 1 of 7

This position is a 12 month contract at Apple in Sunnyvale CA.
Apple is seeking a Python Developer to update existing and implement new utility commands for our Client environment.
These self-contained utility commands are exposed to our Client users and perform custom functions not provided by Client, such as:
conversion of data records integrate with ticketing systems, integrate with chat bots, enriching data records with external info, exchange data with other internal systems.

does this fir you skill set

Select Yes or No

Question 2 of 7

How does your experience and knowledge fit for this role at Apple ? (Record a video response)

Question 3 of 7

What are key features of Python? (Record a video response)

Question 4 of 7

What is your experience with enriching data records with external information(for example GeoIP details)?
If no experience in this, do you have similar experience? (Record a video response)

Question 5 of 7

What is pickling and unpickling? (Record a video response)

Question 6 of 7

Write a program:

Programming Challenge Description:
The goal of this challenge is to design a cash register program.
You will be given two decimal numbers. The first is the purchase price (PP) of the item.
The second is the cash (CH) given by the customer.
Your register currently has the following bills/coins within it:
'PENNY': .01,
'NICKEL': .05,
'DIME': .10,
'QUARTER': .25,
'HALF DOLLAR': .50,
'ONE': 1.00,
'TWO': 2.00,
'FIVE': 5.00,
'TEN': 10.00,
'TWENTY': 20.00,
'FIFTY': 50.00,
'ONE HUNDRED': 100.00

The aim of the program is to calculate the change that has to be returned to the customer.

Input:
Your program should read lines of text from standard input.
Each line contains two numbers which are separated by a semicolon.
The first is the Purchase price (PP) and the second is the cash(CH) given by the customer.

Output:
For each line of input print a single line to standard output which is the change to be returned to the customer.
In case the CH < PP, print out ERROR. If CH == PP, print out ZERO.
For all other cases print the amount that needs to be returned, in terms of the currency values provided.
The output should be alphabetically sorted.

Test 1
Test Input : 15.94;16.00
Expected Output : NICKEL,PENNY


Test 2
Test Input : Input17;16
Expected Output : ERROR  

Test 3
Test Input : 35;35
Expected Output : ZERO  


Test 4
Test Input : 45;50
Expected Output : FIVE

Question 7 of 7

How did you solve the challenge ? (Record a video response)

No comments:

Post a Comment