Skip to main content

Menu

Home Quizzes Categories Current Affairs GK AI ToolsNEW Play Live Contact

PHP Quiz

Review PHP fundamentals and the features used to build dynamic server-side applications.

25 Questions
30 min Duration
40% To pass
1.00 Marks / correct

Instructions

  • This quiz has 25 questions.
  • Questions are picked at random from a bank of 50, so each attempt is different.
  • You have 30 minutes. The quiz submits automatically when time runs out.
  • You need 40% to pass.
  • There is no negative marking.
  • You can mark questions for review and return to them before submitting.
  • Correct answers and explanations are shown after you submit.

Sample Questions & Answers

A preview of 12 questions from this quiz, each with the correct answer and a written explanation. Attempt the full, timed quiz to be scored and earn XP.

  1. Question 1

    In JavaScript, which option best describes let?

    • A special numeric value meaning Not-a-Number
    • A keyword for declaring a block-scoped variable that can be reassigned Correct answer
    • The loose equality comparison operator
    • A method used to register an event handler
    Explanation: let is correctly described by: A keyword for declaring a block-scoped variable that can be reassigned.
  2. Question 2

    In JavaScript, which option best describes const?

    • A keyword for declaring a block-scoped binding that cannot be reassigned Correct answer
    • An operator that returns a string describing an operand's type
    • The programming interface representing an HTML or XML document as a tree
    • An object representing eventual completion or failure of an asynchronous operation
    Explanation: const is correctly described by: A keyword for declaring a block-scoped binding that cannot be reassigned.
  3. Question 3

    In JavaScript, which option best describes var?

    • The strict equality operator
    • A function registered to respond to an event
    • A keyword that makes a function asynchronous and enables await inside it
    • The older JavaScript keyword for declaring function-scoped variables Correct answer
    Explanation: var is correctly described by: The older JavaScript keyword for declaring function-scoped variables.
  4. Question 4

    In JavaScript, which option best describes function?

    • The loose equality comparison operator
    • A method used to register an event handler
    • A keyword used to declare functions Correct answer
    • An expression that pauses an async function until a Promise settles
    Explanation: function is correctly described by: A keyword used to declare functions.
  5. Question 5

    In JavaScript, which option best describes arrow function?

    • The programming interface representing an HTML or XML document as a tree
    • A concise function syntax using => Correct answer
    • An object representing eventual completion or failure of an asynchronous operation
    • A function retaining access to its lexical environment
    Explanation: arrow function is correctly described by: A concise function syntax using =>.
  6. Question 6

    In JavaScript, which option best describes array?

    • An ordered collection of values Correct answer
    • A function registered to respond to an event
    • A keyword that makes a function asynchronous and enables await inside it
    • The region in which a binding can be accessed
    Explanation: array is correctly described by: An ordered collection of values.
  7. Question 7

    In JavaScript, which option best describes object?

    • A method used to register an event handler
    • An expression that pauses an async function until a Promise settles
    • An array method that creates a new array from transformed elements
    • A collection of properties and values Correct answer
    Explanation: object is correctly described by: A collection of properties and values.
  8. Question 8

    In JavaScript, which option best describes string?

    • An object representing eventual completion or failure of an asynchronous operation
    • A function retaining access to its lexical environment
    • A JavaScript data type representing text Correct answer
    • An array method that returns elements passing a test
    Explanation: string is correctly described by: A JavaScript data type representing text.
  9. Question 9

    In JavaScript, which option best describes number?

    • A keyword that makes a function asynchronous and enables await inside it
    • A JavaScript data type representing numeric values Correct answer
    • The region in which a binding can be accessed
    • An array method that combines elements into an accumulated result
    Explanation: number is correctly described by: A JavaScript data type representing numeric values.
  10. Question 10

    In JavaScript, which option best describes boolean?

    • A JavaScript data type representing true or false Correct answer
    • An expression that pauses an async function until a Promise settles
    • An array method that creates a new array from transformed elements
    • Syntax for extracting values from arrays or object properties
    Explanation: boolean is correctly described by: A JavaScript data type representing true or false.
  11. Question 11

    In JavaScript, which option best describes null?

    • A function retaining access to its lexical environment
    • An array method that returns elements passing a test
    • Syntax that safely accesses nested properties when an intermediate value is nullish
    • A value representing an intentional absence of an object value Correct answer
    Explanation: null is correctly described by: A value representing an intentional absence of an object value.
  12. Question 12

    In JavaScript, which option best describes undefined?

    • The region in which a binding can be accessed
    • An array method that combines elements into an accumulated result
    • A value commonly indicating that no value has been assigned or a property is absent Correct answer
    • Syntax using ... to expand iterable or object properties
    Explanation: undefined is correctly described by: A value commonly indicating that no value has been assigned or a property is absent.

Login/Register to attempt the full quiz and earn XP.

Explore more: All Computer & Technology quizzes · JavaScript

PHP Programming

PHP remains a useful server-side language for building dynamic web applications. Review syntax, arrays, functions, forms, sessions, cookies, object-oriented programming and database-related concepts.

Frequently Asked Questions

Each attempt serves 25 questions, drawn at random from a bank of 50, with 30 minutes.

You need at least 40% to pass this quiz.

No, there is no negative marking on this quiz.

Yes. You can attempt this quiz again at any time, though first-attempt XP bonuses apply only once.

Sign in to attempt this quiz and earn XP.

Login to Start Create free account

Related Quizzes