Nettuts+ Quiz #9: The Absolute Basics of PHP

Nettuts+ Quiz #9: The Absolute Basics of PHP

This entry is part 9 of 12 in the The Official Nettuts+ Quizzes Session
« PreviousNext »

In 2012, we plan to take our quizzes to a whole new level with ones aimed at all languages and catering to all competencies and tastes. But what better language to start off the new year than PHP, the darling of the masses?

In this test, aimed at beginners, your knowledge of the absolute basics of PHP will be tested. Yes, we know PHP is a bit old school but it still powers a massive portion of the web and is a force to be reckoned with. And don’t get complacent with the difficulty level of this test either! More difficult ones are on the way — we just like to take it nice and slow. Or maybe we like lulling you into a false sense of security…



Siddharth is Siddharth on Codecanyon
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • Neil

    100%

  • http://raykendo.com Ken

    Wow, 94.12% and I’ve barely touched PHP. Great beginner quiz.

  • http://luubk.com luubk

    100%. :D

  • http://zahidbin.blogspot.com/ Zahid

    I scored 82.35%

  • http://www.catonthe3.com Thiago

    100%! :D
    Nice quiz.
    Question 12 is a tricky one.

  • http://www.codextips.com Riahan Mahmu Arman

    :D :D 100

  • srigi

    100%. Definitely too easy. On the end you should put:

    $i = 0;
    $i = ($++i) ? $i– : ++$i;

    This would separate wheat from the chaff.

    • Dave

      I get parse error on ($++i) ?

      • srigi

        Ouuu, sry. It should be (++$i).

      • Iron

        Ha, he is part of the chaff.

  • Sherwin

    I would love to see the advance quiz that covers oop :)

  • http://www.creadevwebs.com Mike

    100% :)

    Definitely to easy, but I guess it would be ok for some one with little to no programming experience.

  • http://jatinhariani.com Jatin Hariani

    100%. Pretty easy.
    (It’s not bragging if you are awesome!)

  • http://samdoidge.com Sam Doidge

    Question 2: ‘PHP code can not be embedded within regular HTML code. ‘ is false, apparently.

    I got this wrong, is

    not embedding PHP within regular HTML code?

  • Jurgis

    100% Easy test.

  • http://www.piash.net piash

    You’d out-duel Dumbledore, wouldn’t you? You scored 100%

  • javier

    100% Except for question 15, which is ambiguous… Use short tags.. or GTFO! :P

  • http://nicosusanto.blog.com nico susanto

    100% AWWWWWWYEAHHH
    thanks to net tutplus for making this quis

  • http://www.ijasnijas.com IJas

    M I Dumbledore ?? BTW Where is the ‘TEST’ ?? ;)

  • Tester

    Question #6 and #16 are the same …

  • http://www.webimpulse.co.uk oliur chowdhury

    “PHP variables are case sensitive. This statement is.. ”

    I answered True and I was told it’s wrong.

    However, the php official manual says it clearly that it’s TRUE.

    http://php.net/manual/en/language.variables.basics.php

  • http://techarrest.com Aman Arora @ Tech Blog

    Got 70% and I thought I have quite good knowledge of PHP :(

  • Seth

    100%…did you hear that Facebook. Looks like someone is buffing up the application now that I know the bare minimum amount of PHP

  • http://ever-flow.net veritascs

    I missed #2! PHP code can not be embedded within regular HTML code. This statement is…

    They should specify if the html is server or client side! :P

    • noob

      can you please give an example of SERVER SIDE HTML??

  • Adnan

    anyone mind explaining question 12?

    • http://loginetsolutions.com Adrian

      It’s about using single or double quotes:

      $var = “txt”;

      echo ‘Text $var’; //it will print: Text $var

      echo “Text $var”; //it will print: Text txt

  • Michael

    Question2:

    PHP code can not be embedded in regular HTML code because this would be a .htm file which does not run PHP code.

    That’s how I read that question…

  • Lier

    5.34% Great!!!!!!

  • http://tutscode.com/ Bayu Idham Fathurachman

    100% , what test !?

  • http://johnmeher.com John Meher

    I feel like a noob:( I got one wrong. But I do know what I should do, I just forget why I should sometimes:)

  • ezrockstar

    100%
    almost slipped on #12
    thank you..

  • houari

    100% !!! nice quiz

  • http://www.powerstyle.ps Amer

    undefined You scored 94.12%

  • http://developpr.com Nick

    100%
    Great Quiz!
    I was only unsure of the case-sensitivity of the variables

  • http://bytearea.blogspot.com Mufid

    I just know PHP variable IS case sensitive.

    But, FALSE and false is the same right? Where’s the case sensitive context?

  • Fenwick

    Quizzed on iPhone. Answered all correct. However, the form submittal for each question was fussy

  • william

    94.12%, harder to make another hit.

  • http://wwwsoutions.anatec.info Alan Albuquerque

    88,25%, I’m Brazilian and do not understand any English

  • LP

    100% …

    you have to do a harder quiz =)

  • http://www.jkb.com.au Jacob

    For those confused by Q2, the wording of the question does make it a bit trickier, especially if English is not your first language. Yes, PHP can be embedded into HTML, so the statement that it CANNOT be embedded is FALSE.

    It can be embedded, as you can write some standard HTML code, pop a PHP statement in there (within the PHP tags of course) and continue writing HTML. It’s one of the main reasons PHP became as popular as it did :-)

  • Ilayaraja

    secured 88.2%. Nice post.

  • http://Chuck.Norris Chuck Norris

    146% very easy test.
    I’m Chuck Norris, and I’m approve this test!

  • http://about.com/mattauckland Matt Auckland

    88.24% Only 2 wrong 10 and 15, and one of those was because I miss read the question (question 10). Doh!

  • rvm

    94.12% … easy test, but I`ve done a stupid mistake :)
    I will be happy to see a OOP Quiz about PHP

  • Singh

    100%

  • Techeese

    88.24%
    I haven’t really been using date and constant yet :’(

  • Ratheesh

    100% :)

  • http://www.horesh-studios.com Motti

    Got 100% nice quiz :)

  • http://riskianawulan.net Riskiana

    yeah 100 :D

  • http://stastastoooooopid.net stastastooopid

    how’d i gets only a 0%?!?! ahhhhhhh!! i is soo sta sta sta stooooopids!!!

  • ram

    wow! that was easy :) , I was confused in question number 5 since I havent tried using number as a variable name,

  • http://keenanpayne.com Keenan Payne

    82.35% not too bad for hardly ever using PHP. Great quiz Nettuts!

  • Deepak

    Just missed the last one… 94.12%

  • http://www.sevenlayersdesign.com Andy

    100%. Fun quiz. Keep’em coming!