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

 

Novell Placement Paper -: PHP Questions With Answers


Advertisements
Advertisements




Novell Previous Years Solved Sample Placement Papers

  1. What will be the output of the following program?
            <?php  
            while()  
            {  
            echo "Hello World";  
            }  
            ?>  
            

    A. Hello World

    B. Infinite loop

    C. No output

    D. Error Answer: Option D

  2. Solution: The while loop is also called an Entry control loop because the condition is checked before entering the loop body. This means that first, the condition is checked. If the condition is true, the block of code will be executed. So, a while loop cannot be defined without a condition.
  3. What will be the output of the following program?
            <?php    
            $var1="Hello World";    
            echo strrev("$var1");     
            ?>     
            

    A. dlroW olleH Answer: Option A

    B. olleH dlroW

    C. Hello dlroW

    D. None of the above

  4. Solution: The strrev() function is a predefined function of PHP. As its name implies, it is used to reverse a string. It is one of the most basic string operations used by programmers and developers.
  5. Which of the following function is used to compute the difference between two arrays in PHP?

    A. diff_array

    B. array_diff Answer: Option B

    C. arrays_diff

    D. diff_arrays

  6. Solution: The array_diff() function compares two or more arrays and returns an array with the keys and values from the first array, only if the value is not present in any of the other arrays.
  7. What will be the output of the following program?
            <?php    
            $a = array(16, 5, 2);  
            echo array_product($a);  
            ?>       
            

    A. 160 Answer: Option A

    B. 1652

    C. 80

    D. 32

  8. Solution: The array_product() function calculates the product of an array. It is an inbuilt function of PHP.
  9. Which PHP function converts an English text datetime into a Unix timestamp?

    A. str_to_time()

    B. strtodate()

    C. strtotime() Answer: Option C

    D. None of the above

  10. Solution: The PHP strtotime() function is used to convert an English text datetime into a Unix timestamp.
  11. Which of the following function in PHP returns the time of sunrise of a particular day and location?

    A. date_sunrise() Answer: Option A

    B. date-sunrise()

    C. sunrise()

    D. None of the above

  12. Solution: The date_sunrise() function is used to get the timing of sunrise of a particular day and location. This function returns the sunrise time of different locations.




 


.

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