Eduversity.bd — Learn with Us, Achieve Your Dreams

পিএইচপি — MCQ প্রশ্ন

আইটি ও প্রোগ্রামিং MCQ (ওপেন) · আইটি ও প্রোগ্রামিং। এই অধ্যায়ে মোট 410টি প্রশ্ন আছে। নিচে প্রথম 10টি প্রশ্ন ও অপশন দেওয়া হলো; সঠিক উত্তর সার্ভারে যাচাই হয়।

এই অধ্যায়ে সব প্রশ্নে অনুশীলন করুন

  1. What is API Platform in the context of PHP?

    1. A PHP framework to build APIs and manage OpenAPI documentation
    2. A database management system
    3. A PHP templating engine
    4. A debugging tool for PHP applications

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  2. Which format does API Platform use by default to document APIs?

    1. OpenAPI (Swagger)
    2. RAML
    3. GraphQL SDL
    4. WSDL

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  3. How do you expose a PHP entity as a REST API resource using API Platform?

    1. By adding the #[ApiResource] attribute or ApiResource annotation to the entity class
    2. By extending a base API class
    3. By creating a YAML configuration file only
    4. By writing a controller with custom REST routes

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  4. Which PHP package is primarily used to generate OpenAPI documentation in API Platform?

    1. api-platform/core
    2. symfony/serializer
    3. nelmio/api-doc-bundle
    4. zircote/swagger-php

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  5. How can you customize the OpenAPI documentation title in API Platform?

    1. By modifying the 'title' option in api_platform.yaml configuration
    2. By editing the composer.json file
    3. By annotating each entity with a title
    4. By changing the main index.php file

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  6. Which Symfony bundle is integrated with API Platform to automatically generate and expose OpenAPI docs?

    1. ApiPlatformBundle
    2. MakerBundle
    3. TwigBundle
    4. DoctrineBundle

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  7. Can API Platform support GraphQL in addition to REST?

    1. Yes, via built-in support for GraphQL endpoints
    2. No, only REST APIs are supported
    3. Only with a third-party plugin
    4. GraphQL requires separate configuration unrelated to API Platform

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  8. Which command is used to install API Platform using Composer?

    1. composer require api-platform/core
    2. composer install api-platform
    3. composer update api-platform
    4. composer create-project api-platform/api-platform

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  9. What is the role of the OpenAPI Generator in API Platform?

    1. To generate client SDKs and server stubs based on the OpenAPI spec
    2. To provide database migrations
    3. To serve static content
    4. To manage user authentication

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

  10. How to add a custom operation to an API resource in API Platform that appears in OpenAPI docs?

    1. By defining a custom operation in the resource annotation or attribute with an OpenAPI context
    2. By modifying the database schema
    3. By creating manual OpenAPI YAML files only
    4. By adding a route in routes.yaml unrelated to the API resource

    উত্তর যাচাই করতে প্র্যাকটিসে যান।

← আগের অধ্যায়পরের অধ্যায় →