Pro Developer Survey

10 Questions | Total Attempts: 30

Please wait...
Survey Quizzes & Trivia

Every developer has a curve of progression, from their first "Hello World" app to where they are today. How far have you progressed in your development? This survey covers a wide range of topics, tools, and behaviorisms that are statistically well-known and used by the most professional of developers. Let's see how you stack up against the pros in the industry!

Questions and Answers
  • 1. 
    If given a choice, I would prefer to code using:
    • A. 

      An advanced multipurpose editor (Vim, Emacs, TextPad, etc.)

    • B. 

      A console editor directly on the production server.

    • C. 

      An Integrated Development Environment (IDE)

  • 2. 
    Professional developers choose IDEs because they offer what? (check all that apply)
    • A. 

      Code autocompletion

    • B. 

      Syntax highlighting

    • C. 

      Ability to go to a function's / class's code with the click of a button

    • D. 

      Debugging support

    • E. 

      Profiling support

    • F. 

      Live syntax checking

    • G. 

      Function parameter placement guides

    • H. 

      Ability to see every variable at once (locals window)

    • I. 

      Ability to add breakpoints and step through the code as it is executed

  • 3. 
    The terms factory, proxy, adapter, and facade are all called d______   p_______.
  • 4. 
    What is a specialized test meant to test a single class or specific function called?
    • A. 

      QA test

    • B. 

      Integration test

    • C. 

      Unit test

    • D. 

      User test

  • 5. 
    SCENARIO: You are tasked with solving a bug in someone else's code you've never looked at before.  After spending a bit analyzing the code, you find that you don't exactly understand how the code is working.  Your next step would be to ...
    • A. 

      Output variable data using print()s, echo()s, print_r()s, etc.

    • B. 

      Echo to the error_log and/or use FirePHP or some other error logging tool

    • C. 

      Strategically add breakpoints and step through the code until you find the bug

  • 6. 
    In an IDE, the locals window shows what?
    • A. 

      Local functions in the open file

    • B. 

      Files included by the open file

    • C. 

      Every variable and its value(s) in the current scope

  • 7. 
    The main goal of the object-oriented concept of Encapsulation is to
    • A. 

      Make it difficult to change a class' properties in an incorrect fashion

    • B. 

      Hide implementation details

    • C. 

      Keep maintenance costs low by enforcing code-by-contract

  • 8. 
    The following code has a major flaw.$username = $_GET['username'];echo "Hello, $username!";When this code is used, it leads to a security problem called an ____ exploit.
  • 9. 
    The following code has a major flaw.$username = $_GET['username'];$password = $_GET['password'];$query = "SELECT * FROM Users WHERE username='$username' AND password=MD5('$password')$pdo = MyDB::getInstance(); // returns a PDO object$statement = $pdo->query($query);This code is susceptible to S__  i____.
  • 10. 
    (BONUS Non-graded):  Given a choice and the resources, I would prefer to develop using
    • A. 

      An advanced (non-IDE) text editor (vim, emacs, TextPad, etc.)

    • B. 

      An IDE (Visual Studio, Zend Studio, PHPed, etc.)