interview questions

Download Interview Questions

If you can't read please download the document

Upload: rajeevadeevi

Post on 16-Jan-2016

212 views

Category:

Documents


0 download

DESCRIPTION

test

TRANSCRIPT

1. You are given a constant with a only lower case sentence. Example : hello world! Transform the sentence so that the first character on each word is in upper case. 2. Write small sample webservice . Both server and client3. The input will be a list with random unsorted numbers from 1 to 999. The list is separated with a space. The list will always contain duplicates. Print out the sorted list in the same format. No sorting functions in PHP will be allowed. Example : 698 303 266 45 887 193 45 45 558 612 224 820 929 6 612 927 Example output : 6 45 45 193 224 266 303 558 612 698 820 887 927 929 4. The JSON will have double quotes around the keys, space after comma and colon.The depth of the JSON will not be deeper then what you see in the example.The keys will always be characters in lower and upper case and random 5 to 10 length.The values will always be numerical and the random value from 1 to 99999.Output the key and value as shown below.Separate each "key = value" with a newline.The keys in the output must be in alphabetical order.Do not use json_decode.Example : {"e": 5, "d": 4, "c": 3, "b": 2, "a": 1}Output as a = 1b = 2c = 3d = 4e = 55. Build a sample google map using javascript api and place sample markers on it with infowindow on click.6. Write a small practical example that demonstrates differences between interface and an abstract class.