MCQs on PHP
DSSSB TGT CS 2021
निम्नलिखित में से कौन सा/से ओपन-सोर्स सॉफ़्टवेयर है/हैं?
Which of the following is/are the open-source software(s)?
I. PHP
II. Apache
[A] Only I
[B] Only II
[C] Both I and II
[D] Neither I nor II
Correct Answer : Both I and II
PHP का मतलब क्या है?
PHP Stands for?
[A] PHP Hypertex Processor
[B] PHP Hyper Markup Preprocessor
[C] PHP Hypertext Preprocessor
[D] PHP Hyper Markup Processor
Correct Answer : PHP Hypertext Preprocessor
PHP के जनक के रूप में किसे जाना जाता है?
Who is known as the father of PHP?
[A] Rasmus Lerdorf
[B] Drek Kolkevi
[C] List Barely
[D] Willam Makepiece
Correct Answer : Rasmus Lerdorf
निम्नलिखित में से कौन सा वेरिएबल पूर्वनिर्धारित वेरिएबल नहीं है?
Which of the following variables is not a predefined variable?
[A] $get
[B] $ask
[C] $request
[D] $post
Correct Answer : $ask
निम्नलिखित में से कौन सी विधि यूआरएल के माध्यम से स्क्रिप्ट में इनपुट भेजती है?
Which of the following method sends input to a script via a URL?
[A] Get
[B] Post
[C] Both
[D] None
Correct Answer : Get
"**" ऑपरेटर किस श्रेणी के ऑपरेटर से संबंधित है?
The "**" operator belongs to which category of operators?
[A] Arithmetic operator
[B] Logical operator
[C] Comparison operator
[D] Conditional operator
Correct Answer : Arithmetic operator
निम्नलिखित में से किस ऑपरेटर को PHP में नल कोलेसिंग के रूप में जाना जाता है?
Which of the following operator is known as null coalescing in PHP?
[A] < == >
[B] ===
[C] ??
[D] ?
Correct Answer : ??
PHP में ऐरे बनाने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?
Which of the following function is used to create an array in PHP?
[A] arr()
[B] p_array()
[C] php_array()
[D] array()
Correct Answer : array()
क्या हम PHP में किसी कंस्ट्रक्टर को ओवरलोड कर सकते हैं?
Can we overload a constructor in PHP?
[A] Yes
[B] No
[C]
[D]
Correct Answer : No
PHP में निम्नलिखित में से किसके लिए अंतर्निहित समर्थन नहीं है?
PHP does not have an built in support for which one of the following ?
[A] JPEG
[B] GIF
[C] MPEG
[D] PDF
Correct Answer : MPEG
PHP भाषा में PEAR का मतलब होता है
In PHP language PEAR stands for
[A] PHP Extension and Application Repository
[B] PHP Event and Application Repository
[C] A PHP Enhancement and Application reduce
[D] All of these above
Correct Answer : PHP Extension and Application Repository
PHP प्रोग्रामिंग भाषा के बारे में गलत कथन का चयन करें
Select the incorrect statement about PHP programming language
[A] A Classes are case-insensitive
[B] Functions are case-insensitive
[C] Variables are case-insensitive
[D] Constants are case-sensitive
Correct Answer : Variables are case-insensitive
PHP में वैध फ़ंक्शन नाम ……………… से शुरू होता है। इसके बाद कितने भी अक्षर, अंक या अंडरस्कोर हों।
In PHP valid function name starts with a ……………………. followed by any number of letters, numbers, or underscores.
i. numbers
ii. letters
iii. underscores
[A] i and ii only
[B] ii and iii only
[C] i and iii only
[D] All i, ii and iii
Correct Answer : ii and iii only
निम्नलिखित PHP कोड का आउटपुट क्या होगा।
What will be the output of the following PHP code.
<?php
function display($a)
{
if ($a < 20) {
echo "$a\n";
display($a + 1);
}
}
echo display(19);
?>
[A] 20
[B] 19 20
[C] 19
[D] 19 18
Correct Answer : 19
_______ फ़ंक्शन हमें printf() द्वारा उपयोग किए गए समान फ़ॉर्मेटिंग सिंटैक्स का उपयोग करके आसानी से सरणी सामग्री प्रदर्शित करने की अनुमति देता है।
_______ function allows us to easily display array contents using the same formatting syntax used by the printf().
i. vprint()
ii.vprintf()
iii. sprintf()
[A] i and ii only
[B] ii and iii only
[C] i and iii only
[D] All i, ii and iii
Correct Answer : i and iii only
इस तथ्य को अस्पष्ट करने के लिए हमें कौन सा निर्देश अक्षम करना चाहिए कि PHP का उपयोग हमारे सर्वर पर किया जा रहा है?
Which directive should we disable to obscure the fact that PHP is being used on our server?
[A] show_php
[B] expose_php
[C] print_php
[D] info_php
Correct Answer : expose_php
SSC Scientific Assistant CS 2017
'हैश फंक्शन' के बारे में निम्नलिखित में से कौन सा सत्य है?
Which of the following is true about 'Hash Function'?
[A] It creates a small flexible block of data.
[B] It creates a small, fixed block of data.
[C] It creates a encrypted block of data.
[D] None of these
Correct Answer : It creates a small, fixed block of data.
MPESB -2023
निम्नलिखित में से कौन सी प्रोग्रामिंग तकनीक का उपयोग स्टैटिक वेबसाइटों के निर्माण के लिए नहीं किया जाता है?
Which of the following programming technologies is not used to construct static websites?
[A] HTML
[B] CSS
[C] Hypertext preprocessor (php)
[D] JavaScript
Correct Answer : Hypertext preprocessor (php)
COPATT-2018
जावास्क्रिप्ट कुकीज़ क्या हैं?
What are JavaScript Cookies?
[A] Anti-Virus program
[B] User information stored in small text files
[C] Built-in-function in programming language
[D] Web server development
Correct Answer : User information stored in small text files
BIHAR STET-2023
PHP का क्या अर्थ है?
What does PHP stand for?
[A] Personal Home Page
[B] Professional Hypertext Processor
[C] Preprocessed Hypertext Pages
[D] PHP: Hypertext Preprocessor
Correct Answer : PHP: Hypertext Preprocessor
BIHAR STET-2023
PHP में एक पंक्ति पर टिप्पणी कैसे करें?
How do you comment a single line in PHP?
[A] // This is a comment @
[B] /* This is a comment */
[C] <!-- This is a comment -->
[D] ** This is a comment **
Correct Answer : // This is a comment @
TAC-2018
PHP में किसी वेरिएबल को दर्शाने के लिए किस उपसर्ग का प्रयोग किया जाता है?
Which prefix is used to denote a variable in PHP.
[A] $
[B] @
[C] ~
[D] #
Correct Answer : $