PHP MCQ Part - I



  1. HTML page can be access using _______ protocol.
    1. HTTP
    2. FTP
    3. SMTP
    4. POP
  2. ____________ is used to view the webpage
    1. Explorer
    2. Browser
    3. My Computer
    4. All
  3. Website can be _____________
    1. Static
    2. Dynamic
    3. A & B
    4. None
  4. Which of the followings are Client side scripting language ?
    1. JavaScipt
    2. VBScript
    3. A & B
    4. None
  5. Client Side Script excuted by _____________
    1. Webserver
    2. IIS
    3. Apache
    4. Browser
  6. Which of the following are sever side scripting language ?
    1. ASP
    2. CGI
    3. JSP
    4. All of Above
  7. __________is a technique to increase the reliability of the internet connection of an IP network.
    1. Multihoming
    2. Adhoc Network
    3. Virtual Netowork
    4. Private Network
  8. _____________ is a method that web servers use to host more than one domain name on the same computer and IP address.
    1. Virtual hosting
    2. Domain Nane
    3. WebHost
    4. Multihoming
  9. Which of the following services provided by the ISP
    1. Email
    2. Web Hosting
    3. Domain Registration
    4. All of Above
  10. ___________ standard network protocol used to transfer files from one host to another host.
    1. HTTP
    2. FTP
    3. TCP
    4. All
  11. PHP stands for
    1. PHP: Hypertext Preprocessor
    2. Personal Hypertext Processor
    3. Pre Hypertext Protocol
    4. Programming Hypertext Preprocessor
  1. PHP can runs on
    1. Windows Platform
    2. Unix Platform
    3. Both
    4. None
  2. We can use __________________ for install the PHP
    1. XAMPP
    2. WAMP
    3. Both
    4. None
  3. php.ini is __________
    1. PHP configuration File
    2. PHP startup file
    3. PHP source file
    4. All
  4. php.ini file can edited using _________
    1. editor
    2. php
    3. brower
    4. none
  5. A ______________ file is a directory-level configuration file
    1. .htaccess
    2. php.ini
    3. php.exe
    4. desktop.ini



  1. Which of the following tags is not a valid way to begin and end a PHP code block?
  1. <?php … ?>
  2. <?... ?>
  3. <% … %>
  4. <!-- -->
  1. How does the identity operator = = = compare two values?
    1. It converts them to a common compatible data type and then compares the resulting values
    2. It returns True only if they are both of the same type and value
    3. If the two values are strings, it performs a lexical comparison
    4. It converts both values to strings and compares them
  2. Which of the following is valid comment in PHP
    1. /* ……… */
    2. //
    3. #
    4. All.
  3. Variables always start with a ........ in PHP.
    1. Pond-sign
    2. Yen-sign
    3. Dollar-sign
    4. Euro-sign
  4. which of the following are the valid PHP data types?
    1. Resource
    2. null
    3. Boolean
    4. string
    5. All
  5. Which of the following is Ternary Operator?
    1. ? :
    2. &
    3. =
    4. = =
  6. Which of the following variable names are invalid?
    1. $var_1
    2. $var1
    3. $var-1
    4. None
  7. In PHP string can be represented using
    1. Single Quote
    2. Double Quote
    3. Heredoc
    4. All
  8. Contestant can be defined using ________
    1. contstant()
    2. define()
    3. defined
    4. All
  9. Which of the following is logical and operator
    1. &&
    2. and
    3. Both
    4. none