PHP Frameworks and Core PHP Quiz Quiz

  1. PHP: isset() Function

    What does the `isset()` function do in PHP?

    1. Checks if a variable is set and is not NULL
    2. Initializes a variable
    3. Checks if a variable is an integer
    4. Returns the type of a variable
  2. PHP: String Concatenation

    Which operator is used for string concatenation in PHP?

    1. .
    2. +
    3. ,
    4. -
  3. PHP: Class Inheritance

    Which keyword is used to inherit a class in PHP?

    1. extends
    2. inherits
    3. implements
    4. include
  4. PHP: Defining Constants

    How do you define a constant in PHP?

    1. Using the `define()` function
    2. Using the `const` keyword
    3. Using the `$constant` keyword
    4. Both using `define()` or `const`
  5. Laravel: Defining Routes

    In Laravel, which file is typically used to define routes?

    1. routes/web.php
    2. app/routes.php
    3. config/routes.php
    4. routes/api.php
  6. Laravel: Eloquent ORM

    What is Eloquent in Laravel?

    1. An ORM (Object-Relational Mapper)
    2. A templating engine
    3. A routing component
    4. A debugging tool
  7. Laravel: Controllers

    In Laravel, what is the primary function of a Controller?

    1. To handle user requests and return responses
    2. To manage database migrations
    3. To define database schemas
    4. To render Blade templates
  8. CodeIgniter: MVC Architecture

    CodeIgniter is based on which architectural pattern?

    1. MVC (Model-View-Controller)
    2. MVP (Model-View-Presenter)
    3. MVVM (Model-View-ViewModel)
    4. SPA (Single Page Application)
  9. CodeIgniter: URL Routing

    How are URLs typically structured in CodeIgniter?

    1. controller/method/arguments
    2. method/controller/arguments
    3. arguments/controller/method
    4. controller/arguments/method
  10. CodeIgniter: Libraries

    What is a CodeIgniter Library?

    1. A set of helper functions for common tasks
    2. A collection of pre-written classes to perform specific tasks
    3. A tool for managing database migrations
    4. A templating engine component