Lukket

Cool start up looking for two PHP coders

As a next step, please answer the programming tasks below as soon as possible to be considered for the position.

1. In a language of your choice, write a function that gets a string as an argument and returns true if the string starts with an upper case letter and false if it starts with a lower case letter. You can assume the argument strings will only include letters in the English alphabet.

2. Explain why the statement

array("asdf") === array("asdf")

returns true in PHP but the equivalent statement

Array("asdf") === Array("asdf")

returns false in JavaScript.

3. In JavaScript, write code that alerts "Mikä on elämän tarkoitus?" when the following statement is executed:

window["mikä"]("on")("elämän")("tarkoitus")("?")

window refers to the JavaScript global object.

4. Scenario:

An administrator writes up a plaintext (no HTML) article in a website administration backend and submits it. The article needs to be saved in a database and an error message or success message along with the created article that is correctly formatted must be output to the administrator. From the point of view of MVC architecture, explain what happens in each tier in both success and error cases.

5. What do you think the following code is trying to accomplish?

$koodi = '';

$k = 0;

while ($[url removed, login to view]().$k),$alku,$alku+10);

$korvattavat = array("0","O","l","I","1");

$possible = "23456789abcdfghjkmnpqrstvwxyz";

$char = substr($possible, mt_rand(0, strlen($possible)-1), 1);

$koodi = str_replace($korvattavat,$char,$koodi);

$query = "SELECT code FROM #__com_groovefactory_gig_codes WHERE code='".$koodi."'";

$db->setQuery($query);

$db->query();

if ($db->getNumRows()==0)

break;

$k++;

}

Is there anything wrong with the approach the code takes to solve the problem? If yes, what would you do

to improve it?

Færdigheder: Javascript, jQuery / Prototype, MySQL, PHP, Web Design

Se mere: where to start programming, what would you do for $5, what will you do for $5, what is the problem statement, what is problem statement, what is a string in programming, what is a problem statement, what is an array in programming, what is an argument in programming, what can you do with php, website for c programming solve, up string, two string problem, the string problem, start programming, php string to html, k programming language, javascript coders, c programming if statement, c programming array of strings, cool programming language, char in c programming, argument programming, administration position, __com_groovefactory_gig_codes

Om arbejdsgiveren:
( 0 bedømmelser ) Ghaziabad, India

Projekt-ID: #4038894

9 freelancere byder i gennemsnit $574 for dette job

USAGraphicPR0

********************************************.. YOUR SEARCH ENDS HERE .. ********************************************** GET IT DONE RIGHT THE FIRST TIME! Hello Sir/Ma'am, I look forward to talking to you further and get Mere

$1000 USD in 8 dage
(130 bedømmelser)
8.2
buraqtech

Check your PMB for details!!!

$585 USD in 10 dage
(98 bedømmelser)
8.1
Webwingtechology

Dear Sir, Kindly Check PMB, For further discussion of your Project In Details... Many Thanks, Nikhil Pawar Webwing Technologies PVT Limited Business Development Executive

$740 USD in 18 dage
(96 bedømmelser)
8.0
dotsaravanan

Hello, Thanks for your post. Kindly check our PMB.

$500 USD in 12 dage
(24 bedømmelser)
6.4
swatiwebsolution

Hi, We have a 6 year experience of Website Design and development using PHP, MYSQL, Asp.Net, AJAX, Jquery, Wordpress, Joomla, We are capable to do any kind website design and development, Kindly see PMB for more de Mere

$600 USD in 30 dage
(32 bedømmelser)
5.5
webexpert80

Hi, I have over 5 years experience in php, mysql, zend etc and web development am interested. Let me know if you are serious buyer.

$500 USD in 15 dage
(12 bedømmelser)
4.4
willow840204

Hello. Please contact with me. I can do. Thank you.

$490 USD in 10 dage
(0 bedømmelser)
0.0
Q860aVNJf

We are freelance software developers. If you contact me I can give a quote for your project and we can discuss the details. www.<b><i>Removed by [url removed, login to view] Admin for breaching our Terms and Conditions</i></b>.io

$500 USD på 1 dag
(0 bedømmelser)
0.0
milamar

Good morning sir. some remarks, please check PMB.

$500 USD in 5 dage
(0 bedømmelser)
0.0
alexmccbv

we will provide you complete Solution as per your need. For more detail please check our message where you can find our previous work too

$250 USD in 4 dage
(0 bedømmelser)
0.0