.
  Vyom World.com . Let's Touch the Sky Together!  
.

Home
VyomWorld.com Home
Interview Questions
VyomLinks.com Home
JobsAssist.com Home
Vyom Network
Contact Us
Jobs & Careers
Resume Submitter
Placement Papers
IT Companies Directory
Computer Jobs
Interview Questions
Online Exams
Vyom Career eMag.
Fun
Send FREE SMS!
SMS Jokes
Source Codes Library
Source Codes Home
ASP Source Codes
C Source Codes
C++ Source Codes
COBOL Source Codes
Java Source Codes
Pascal Source Codes
Submit Source Codes
GATE
GATE an Overview
GATE Preparation
Study Materal
GRE
GRE an Overview
GRE Questions
GRE Preparation
GRE Universities
TOEFL Preparation
TOEFL Resources
GMAT Preparation
GMAT Resources
MBA Preparation
MBA Resources
Networking Concepts
Networking Concepts
Testing Preparation
Testing Resources
Webmasters
Free Traffic Builder
Webmaster Articles
Web Hosting
Tutorials
Hardware Tutorial
1500 Free eBooks New!


Home » Placement Papers » Verifone Placement Papers » Verifone Previous Year Placement Paper

 

Verifone Placement Paper -: PHP Questions And Answers


Advertisements
Advertisements




Verifone Previous Years Solved Sample Placement Papers

  1. In the following PHP program, what is/are the properties?

    
    
        

    A. function sample()

    B. echo “This is an example”;

    C. public $name; Answer: Option C

    D. class Example

  2. Explanation: Above code is an example of ‘classes’. Classes are the blueprints of objects. Classes are the programmer-defined data type, which includes the local methods and the local variables. Class is a collection of objects which has properties and behavior.

  3. What will be the output of the following PHP code?

    
    
        

    A. $GREETING

    B. no output Answer: Option B

    C. PHP is a scripting language

    D. GREETING

  4. Explanation: Constants do not need a $ before them, they are referenced by their variable names itself.

  5. A function in PHP which starts with __ (double underscore) is known as __________

    A. Default Function

    B. User Defined Function

    C. Inbuilt Function

    D. Magic Function Answer: Option D

  6. Explanation: PHP functions that start with a double underscore – a “__” – are called magic functions. They are functions that are always defined inside classes, and are not stand-alone functions.

  7. Which of the following pair have non-associative equal precedence?

    A. +, -

    B. ==, != Answer: Option B

    C. +, /

    D. &=, |=

  8. Which of the following functions output text?

    A. echo()

    B. print()

    C. Both A, B Answer: Option C

    D. display()

  9. Which of the following statement is not correct for PHP?

    A. It is a server-side scripting language

    B. A PHP file may contain text, HTML tags, or scripts

    C. It can run on Windows and Linux systems only Answer: Option C

    D. It is compatible with most of the common servers used today

  10. Which of the following printing construct/function accepts multiple parameters?

    A. echo Answer: Option A

    B. print

    C. printf

    D. All of the above

  11. What will be the output of the following code?
    $a = 10;
    if ($a > 5 OR < 15)
    echo 'true';
    else
    echo 'false';

    A. true

    B. false

    C. No output

    D. Parse Error Answer: Option D

  12. Which of the following variable names are invalid?

    A. $var_1

    B. $var1

    C. $var-1

    D. $var/1

    E. Both C, D Answer: Option E

  13. What will be the output of the following code?
    $a = 10;
    echo 'Value of a = $a';

    A. Value of a = 10

    B. Value of a = $a Answer: Option B

    C. Undefined

    D. Syntax Error

  14. What will be the output of the following code?
    $Rent = 250;
    function Expenses($Other) {
    $Rent = 250 + $Other;
    return $Rent;
    }
    Expenses(50);
    echo $Rent;

    A. 300

    B. 250 Answer: Option B

  15. Which of the following pair have non-associative equal precedence?

    A. +, -

    B. ==, != Answer: Option B

    C. +, /

    D. &=, |=

  16. Which of the following functions output text?

    A. echo()

    B. print()

    C. Both A, B Answer: Option C

    D. display()

  17. Which of the following statement is not correct for PHP?

    A. It is a server-side scripting language

    B. A PHP file may contain text, HTML tags, or scripts

    C. It can run on Windows and Linux systems only Answer: Option C

    D. It is compatible with most of the common servers used today

  18. Which of the following printing construct/function accepts multiple parameters?

    A. echo Answer: Option A

    B. print

    C. printf

    D. All of the above

  19. What will be the output of the following code?
    $a = 10;
    if ($a > 5 OR < 15)
    echo 'true';
    else
    echo 'false';

    A. true

    B. false

    C. No output

    D. Parse Error Answer: Option D

  20. Which of the following variable names are invalid?

    A. $var_1

    B. $var1

    C. $var-1

    D. $var/1

    E. Both C, D Answer: Option E

  21. What will be the output of the following code?
    $a = 10;
    echo 'Value of a = $a';

    A. Value of a = 10

    B. Value of a = $a Answer: Option B

    C. Undefined

    D. Syntax Error

  22. What will be the output of the following code?
    $Rent = 250;
    function Expenses($Other) {
    $Rent = 250 + $Other;
    return $Rent;
    }
    Expenses(50);
    echo $Rent;

    A. 300

    B. 250 Answer: Option B




 


.

Recently Updated: New Placement Papers added.
Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | GRE Preparation | Jobs, Discussions | Software Listing | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | International Business Information | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | FAQs | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Excellent Mobiles | Software Testing | Interview Questions | Freshers Jobs | Server Insiders | File Extension Directory

Copyright ©2003-2025 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy