MCQs on PHP

Ques 1

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


Ques 2

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


Ques 3

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


Ques 4

निम्नलिखित में से कौन सा वेरिएबल पूर्वनिर्धारित वेरिएबल नहीं है?

Which of the following variables is not a predefined variable?

[A] $get

[B] $ask

[C] $request

[D] $post

Correct Answer : $ask


Ques 5

निम्नलिखित में से कौन सी विधि यूआरएल के माध्यम से स्क्रिप्ट में इनपुट भेजती है?

Which of the following method sends input to a script via a URL?

[A] Get

[B] Post

[C] Both

[D] None

Correct Answer : Get


Ques 6

"**" ऑपरेटर किस श्रेणी के ऑपरेटर से संबंधित है?

The "**" operator belongs to which category of operators?

[A] Arithmetic operator

[B] Logical operator

[C] Comparison operator

[D] Conditional operator

Correct Answer : Arithmetic operator


Ques 7

निम्नलिखित में से किस ऑपरेटर को PHP में नल कोलेसिंग के रूप में जाना जाता है?

Which of the following operator is known as null coalescing in PHP?

[A] < == >

[B] ===

[C] ??

[D] ?

Correct Answer : ??


Ques 8

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()


Ques 9

क्या हम PHP में किसी कंस्ट्रक्टर को ओवरलोड कर सकते हैं?

Can we overload a constructor in PHP?

[A] Yes

[B] No

[C]

[D]

Correct Answer : No


Ques 10

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


Ques 11

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


Ques 12

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


Ques 13

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


Ques 14

निम्नलिखित 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


Ques 15

_______ फ़ंक्शन हमें 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


Ques 16

इस तथ्य को अस्पष्ट करने के लिए हमें कौन सा निर्देश अक्षम करना चाहिए कि 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


Ques 17

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.


Ques 18

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)


Ques 19

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


Ques 20

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


Ques 21

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 @


Ques 22

TAC-2018

PHP में किसी वेरिएबल को दर्शाने के लिए किस उपसर्ग का प्रयोग किया जाता है?

Which prefix is used to denote a variable in PHP.

[A] $

[B] @

[C] ~

[D] #

Correct Answer : $


Latest Updates