.
  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 » Honeywell Placement Papers » Honeywell Previous Year Placement Paper

 

Honeywell Placement Paper - PHP Language Questions And Answers


Advertisements
Advertisements




Honeywell Previous Years Solved Sample Placement Papers

  1. What will be the output of the following code?
        <?php
        $foo = 'Bob';
        $bar = &$foo;
        $bar = "My name is $bar";
        echo $bar;
        echo $foo;
        ?>
        

    a) Error

    b) My name is BobBob

    c) My name is BobMy name is Bob

    d) My name is Bob Bob

    Answer: c) My name is BobMy name is Bob
  2. PHP’s numerically indexed array begins with position __.

    a) 1

    b) 2

    c) 0

    d) -1

    Answer: c) 0
  3. Which of the functions is used to sort an array in descending order?

    a) sort()

    b) asort()

    c) rsort()

    d) dsort()

    Answer: c) rsort()
  4. Which of the following are correct ways of creating an array?
        (i) state[0] = "karnataka";
        (ii) $state[] = array("karnataka");
        (iii) $state[0] = "karnataka";
        (iv) $state = array("karnataka");
        

    a) (iii) and (iv)

    b) (ii) and (iii)

    c) Only (i)

    d) (ii), (iii) and (iv)

    Answer: a) (iii) and (iv)
  5. What will be the output of the following PHP code?
        <?php
        $fruits = array ("mango", "apple", "pear", "peach");
        $fruits = array_flip($fruits);
        echo ($fruits[0]);
        ?>
        

    a) mango

    b) Error

    c) peach

    d) 0

    Answer: b) Error
  6. What will be the output of the following PHP code?
        <?php
        $states = array("karnataka" => array
          ("population" => "11,35,000", "capital" => "Bangalore"),
          "Tamil Nadu" => array("population" => "17,90,000",
          "capital" => "Chennai"));
        echo $states["karnataka"]["population"];
        ?>
        

    a) karnataka 11,35,000

    b) 11,35,000

    c) population 11,35,000

    d) karnataka population

    Answer: b) 11,35,000
  7. Which function can be used to move the pointer to the previous array position?

    a) last()

    b) before()

    c) prev()

    d) previous()

    Answer: c) prev()
  8. PHP is _____________ scripting Language?

    a) Server side

    b) Client side

    c) Middle side

    d) None of above

    Answer: a) Server side
  9. PHP script is executed on?

    a) ISP Computer

    b) Server computer

    c) Client computer

    d) None of above

    Answer: b) Server computer
  10. Which of the following variables is not a predefined variable?

    a) $get

    b) $ask

    c) $request

    d) $post

    Answer: b) $ask
  11. When you need to obtain the ASCII value of a character, which of the following functions do you apply in PHP?

    a) chr()

    b) asc()

    c) ord()

    d) val()

    Answer: c) ord()




 


.

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-2024 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy