/Preliminary-Online-Interview-Test-for-Python-Developer

This repository contains the answers to the questions for an online interview.

Primary LanguagePython

Python Basic Developer Test

Background:

You have been provided with a web page showing the colors of dresses put on by Bincom staffs for the week. We are planning to produce Tshirts for staffs and we have issues deciding the colors to be used. We want to make our decision based on the analysis of the data presented in the web page.

Kindly go through the web page and write a python program that answers the questions below:

Requirements:

· You may use python2 or python3 · You may use any IDE of your choice · You may use regular expression

Key Features:

  1.  Which color of shirt is the mean color?
    
  2.  Which color is mostly worn throughout the week?
    
  3.  Which color is the median?
    
  4.  BONUS Get the variance of the colors.
    
  5.  BONUS if a colour is chosen at random, what is the probability that the color is red?
    
  6.  Save the colours and their frequencies in postgresql database.
    
  7.  BONUS write a recursive searching algorithm to search for a number entered by user in a list of numbers.
    
  8.  Write a program that generates random 4 digits number of 0s and 1s and convert the generated number to base 10.
    
  9.  Write a program to sum the first 50 fibonacci sequence.
    

Hints: Bonus Questions are not Required but are recommended. We are Testing your Basic Programming Ability. You may browse any website of your choice to get code snippets and tutorials if necessary. Follow this link to get the html page https://drive.google.com/open?id=1nf9WMDjZWIUnlnKyz7qomEYDdtWfW1Uf