Skip to content

Commit

Permalink
A few new questions
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Revueltas committed Jun 23, 2014
1 parent 0e77860 commit f2930ff
Showing 1 changed file with 38 additions and 7 deletions.
45 changes: 38 additions & 7 deletions data/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ questions:
-
question: 'What is the short open tag for PHP?'
answers:
- {value: <!, correct: false}
- {value: <%, correct: false}
- {value: <?, correct: true}
- {value: <!, correct: false}
- {value: <%, correct: false}
- {value: <?, correct: true}
- {value: <?=, correct: false}
-
question: 'Which of these operators is non-associative?'
answers:
Expand All @@ -23,7 +24,37 @@ questions:
-
question: 'Which web services are supported natively in PHP?'
answers:
- {value: SOAP and XML-RPC, correct: true}
- {value: REST and SOAP, correct: false}
- {value: Corba and XML-RPC,correct: false}
- {value: XML-RPC and REST, correct: false}
- {value: SOAP and XML-RPC, correct: true}
- {value: REST and SOAP, correct: false}
- {value: Corba and XML-RPC, correct: false}
- {value: XML-RPC and REST, correct: false}
-
question: 'Variable names and function names are, respectively:'
answers:
- {value: case insensitive and case sensitive, correct: false}
- {value: case sensitive and case sensitive, correct: false}
- {value: case sensitive and case insensitive, correct: true}
- {value: case insensitive and case insensitive, correct: false}
-
question: 'Does PHP support function overloading?'
answers:
- {value: yes in all case, correct: false}
- {value: no in all case, correct: true}
- {value: yes but it depends on the function scope, correct: false}
- {value: no except when it is an anonymous function, correct: false}
-
question: 'Which of the following statements is not true?'
answers:
- {value: In PHP>=5.6 argument lists may include the ... token to denote that the function accepts a variable number of arguments, correct: false}
- {value: A function name, as other labels in PHP, must match the following regular expression: [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*, correct: false}
- {value: Variable functions work with language constructs such as echo, print, unset(), isset(), empty(), include or require, correct: true}
- {value: Assigning a closure (anonymous function) to a variable uses the same syntax as any other assignment, including the trailing semicolon, correct: false}
-
question: 'Which of the following function declarations must be used to return a reference?'
answers:
- {value: function &foo() {...}, correct: true}
- {value: function $foo() {...}, correct: false}
- {value: function %foo() {...}, correct: false}
- {value: function $$foo() {...}, correct: false}


0 comments on commit f2930ff

Please sign in to comment.