[ PHP Programming MCQS ]

झारखंड में आयोजित होने वाली JPSC, JSSC, JET, झारखंड पुलिस भर्ती परीक्षा आदि के लिए उपयोगी सामान्य अध्ययन।

[ PHP Programming MCQS ]

Useful GK for JPSC, JSSC, JET, Jharkhand Police and other exams.
641. Action Hook register करने के लिए कौन-सा function उपयोग होता है?
[A] add_action()
[B] register_action()
[C] action_hook()
[D] create_action()
641. Which function is used to register an Action Hook?
[A] add_action()
[B] register_action()
[C] action_hook()
[D] create_action()
सही उत्तर: add_action()
व्याख्या: Custom action callbacks register करता है।
Correct Answer: add_action()
Explanation: Registers custom action callbacks.
642. Filter Hook register करने के लिए कौन-सा function उपयोग होता है?
[A] add_filter()
[B] register_filter()
[C] filter_hook()
[D] create_filter()
642. Which function is used to register a Filter Hook?
[A] add_filter()
[B] register_filter()
[C] filter_hook()
[D] create_filter()
सही उत्तर: add_filter()
व्याख्या: Custom filter callbacks register करता है।
Correct Answer: add_filter()
Explanation: Registers custom filter callbacks.
643. WordPress Plugin header किस file में होता है?
[A] Main Plugin File
[B] style.css
[C] index.php
[D] wp-config.php
643. Where is the WordPress Plugin header located?
[A] Main Plugin File
[B] style.css
[C] index.php
[D] wp-config.php
सही उत्तर: Main Plugin File
व्याख्या: Plugin metadata main plugin file में लिखी जाती है।
Correct Answer: Main Plugin File
Explanation: Plugin metadata is defined in the main plugin file.
644. WordPress shortcode बनाने के लिए कौन-सा function उपयोग होता है?
[A] add_shortcode()
[B] create_shortcode()
[C] register_shortcode()
[D] shortcode_add()
644. Which function is used to create a WordPress shortcode?
[A] add_shortcode()
[B] create_shortcode()
[C] register_shortcode()
[D] shortcode_add()
सही उत्तर: add_shortcode()
व्याख्या: Custom shortcode register करता है।
Correct Answer: add_shortcode()
Explanation: Registers a custom shortcode.
645. WordPress REST API का default base path क्या है?
[A] /wp-json/
[B] /api/
[C] /rest/
[D] /json-api/
645. What is the default base path of WordPress REST API?
[A] /wp-json/
[B] /api/
[C] /rest/
[D] /json-api/
सही उत्तर: /wp-json/
व्याख्या: WordPress REST endpoints इसी path से शुरू होते हैं।
Correct Answer: /wp-json/
Explanation: REST endpoints begin with this path.
646. register_rest_route() function का उपयोग किसलिए होता है?
[A] Custom API Endpoint Create करना
[B] Theme Register करना
[C] Plugin Activate करना
[D] Database Connect करना
646. What is register_rest_route() used for?
[A] Create Custom API Endpoints
[B] Register Theme
[C] Activate Plugin
[D] Connect Database
सही उत्तर: Custom API Endpoint Create करना
व्याख्या: REST API routes register करता है।
Correct Answer: Create Custom API Endpoints
Explanation: Registers REST API routes.
647. WooCommerce क्या है?
[A] WordPress E-commerce Plugin
[B] CMS
[C] Theme Framework
[D] Cache Plugin
647. What is WooCommerce?
[A] WordPress E-commerce Plugin
[B] CMS
[C] Theme Framework
[D] Cache Plugin
सही उत्तर: WordPress E-commerce Plugin
व्याख्या: Online stores बनाने के लिए।
Correct Answer: WordPress E-commerce Plugin
Explanation: Used to build online stores.
648. WooCommerce products किस post type में store होते हैं?
[A] product
[B] item
[C] shop
[D] goods
648. In which post type are WooCommerce products stored?
[A] product
[B] item
[C] shop
[D] goods
सही उत्तर: product
व्याख्या: WooCommerce custom post type का उपयोग करता है।
Correct Answer: product
Explanation: WooCommerce uses a custom post type.
649. WooCommerce orders किस post type में store होते थे (legacy structure)?
[A] shop_order
[B] order
[C] wc_order
[D] product_order
649. In which post type were WooCommerce orders stored (legacy)?
[A] shop_order
[B] order
[C] wc_order
[D] product_order
सही उत्तर: shop_order
व्याख्या: Traditional WooCommerce architecture।
Correct Answer: shop_order
Explanation: Traditional WooCommerce architecture.
650. WordPress database table prefix default रूप से क्या होता है?
[A] wp_
[B] wordpress_
[C] cms_
[D] db_
650. What is the default WordPress database table prefix?
[A] wp_
[B] wordpress_
[C] cms_
[D] db_
सही उत्तर: wp_
व्याख्या: Installation के दौरान बदला जा सकता है।
Correct Answer: wp_
Explanation: Can be changed during installation.