পিএইচপি — MCQ প্রশ্ন
আইটি ও প্রোগ্রামিং MCQ (ওপেন) · আইটি ও প্রোগ্রামিং। এই অধ্যায়ে মোট 410টি প্রশ্ন আছে। নিচে প্রথম 10টি প্রশ্ন ও অপশন দেওয়া হলো; সঠিক উত্তর সার্ভারে যাচাই হয়।
এই অধ্যায়ে সব প্রশ্নে অনুশীলন করুন
What is API Platform in the context of PHP?
- A PHP framework to build APIs and manage OpenAPI documentation
- A database management system
- A PHP templating engine
- A debugging tool for PHP applications
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which format does API Platform use by default to document APIs?
- OpenAPI (Swagger)
- RAML
- GraphQL SDL
- WSDL
উত্তর যাচাই করতে প্র্যাকটিসে যান।
How do you expose a PHP entity as a REST API resource using API Platform?
- By adding the #[ApiResource] attribute or ApiResource annotation to the entity class
- By extending a base API class
- By creating a YAML configuration file only
- By writing a controller with custom REST routes
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which PHP package is primarily used to generate OpenAPI documentation in API Platform?
- api-platform/core
- symfony/serializer
- nelmio/api-doc-bundle
- zircote/swagger-php
উত্তর যাচাই করতে প্র্যাকটিসে যান।
How can you customize the OpenAPI documentation title in API Platform?
- By modifying the 'title' option in api_platform.yaml configuration
- By editing the composer.json file
- By annotating each entity with a title
- By changing the main index.php file
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which Symfony bundle is integrated with API Platform to automatically generate and expose OpenAPI docs?
- ApiPlatformBundle
- MakerBundle
- TwigBundle
- DoctrineBundle
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Can API Platform support GraphQL in addition to REST?
- Yes, via built-in support for GraphQL endpoints
- No, only REST APIs are supported
- Only with a third-party plugin
- GraphQL requires separate configuration unrelated to API Platform
উত্তর যাচাই করতে প্র্যাকটিসে যান।
Which command is used to install API Platform using Composer?
- composer require api-platform/core
- composer install api-platform
- composer update api-platform
- composer create-project api-platform/api-platform
উত্তর যাচাই করতে প্র্যাকটিসে যান।
What is the role of the OpenAPI Generator in API Platform?
- To generate client SDKs and server stubs based on the OpenAPI spec
- To provide database migrations
- To serve static content
- To manage user authentication
উত্তর যাচাই করতে প্র্যাকটিসে যান।
How to add a custom operation to an API resource in API Platform that appears in OpenAPI docs?
- By defining a custom operation in the resource annotation or attribute with an OpenAPI context
- By modifying the database schema
- By creating manual OpenAPI YAML files only
- By adding a route in routes.yaml unrelated to the API resource
উত্তর যাচাই করতে প্র্যাকটিসে যান।