Ditutup

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?

Kemahiran: Javascript, jQuery / Prototaip, MySQL, PHP, Reka Bentuk Laman Web

Lihat lebih lanjut: website programming solve, up string, two string problem, php string html, javascript coders, programming statement, programming array strings, cool programming language, argument programming, administration position, mvc architecture, two letter, step up, solve php error, mvc php, db query, asdf, statement position, looking window, global error, letter statement, website database backend php, mvc function, php function write, php mvc programming

Tentang Majikan:
( 0 ulasan ) Ghaziabad, India

ID Projek: #4038894

9 pekerja bebas membida secara purata $574 untuk pekerjaan ini

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 Lagi

$1000 USD dalam 8 hari
(130 Ulasan)
8.2
buraqtech

Check your PMB for details!!!

$585 USD dalam 10 hari
(98 Ulasan)
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 dalam 18 hari
(96 Ulasan)
8.0
dotsaravanan

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

$500 USD dalam 12 hari
(24 Ulasan)
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 Lagi

$600 USD dalam 30 hari
(32 Ulasan)
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 dalam 15 hari
(12 Ulasan)
4.4
willow840204

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

$490 USD dalam 10 hari
(0 Ulasan)
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 Freelancer.com Admin for breaching our Terms and Conditions</i></b>.io

$500 USD dalam sehari
(0 Ulasan)
0.0
milamar

Good morning sir. some remarks, please check PMB.

$500 USD dalam 5 hari
(0 Ulasan)
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 dalam 4 hari
(0 Ulasan)
0.0