.
  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. Which PHP function determines the last access time of a file?

    A. filetime()

    B. fileatime() Answer: Option B

    C. filectime()

    D. None of the above

  2. Solution: The fileatime() function in PHP is used to return the last access time of a file as a UNIX timestamp. On failure, the fileatime() returns false.
  3. Which PHP function is capable of reading a specific number of characters from a file?

    A. filegets()

    B. fget()

    C. fgets() Answer: Option C

    D. None of the above

  4. Solution: The PHP fgets() function is used to read a single line from a file.
  5. Which PHP function is used to find the position of the last occurrence of a substring inside another string?

    A. strops()

    B. strrpos() Answer: Option B

    C. strtr()

    D. None of the above

  6. Solution: The strrpos() is an in-built function of PHP that finds the position of the last occurrence of a substring inside another string. It is a case-sensitive function.
  7. What will be the output of the following program?
    <?php
    echo "Welcome" . "to" . "the" . "javaTpoint.com";
    ?>

    A. Welcome to the javaTpoint.com

    B. Welcome, to, the, javaTpoint.com

    C. WelcometothejavaTpoint.com Answer: Option C

    D. Error

  8. Solution: In the echo statement, the . (dot) operator is used to join strings, resulting in "WelcometothejavaTpoint.com".
  9. What will be the output of the following program?
    <?php
    echo "Welcome", "to", "the", "javaTpoint.com";
    ?>

    A. Welcome to the javaTpoint.com

    B. Welcome, to, the, javaTpoint.com

    C. WelcometothejavaTpoint.com Answer: Option C

    D. Error

  10. Solution: Multiple strings separated by a comma (,) in the echo statement are joined, resulting in "WelcometothejavaTpoint.com".
  11. What will be the output of the following program?
    <?php
    $var1 = "Hello";
    $var2 = "World";
    echo $var1, $var2;
    ?>

    A. HelloWorld Answer: Option A

    B. Hello, World

    C. Hello World

    D. None of the above

  12. Solution: Multiple strings separated by a comma (,) in the echo statement result in "HelloWorld".
  13. What will be the output of the following program?
    <?php
    $var1 = "Hello";
    $var2 = "World";
    echo "$var1$var2";
    ?>

    A. HelloWorld Answer: Option A

    B. "$var1$var2"

    C. Hello World

    D. None of the above

  14. Solution: When variables are inside double quotes, their values are substituted, resulting in "HelloWorld".
  15. What will be the output of the following program?
    <?php
    $a;
    if ($a)
    {
    echo "hi";
    }
    else
    {
    echo "How are you";
    }
    ?>

    A. Hi How are you

    B. How are you Answer: Option B

    C. Hi

    D. None of the above

  16. Solution: The variable $a is uninitialized, so the if condition fails, and the else block prints "How are you".
  17. What will be the output of the following program?
    <?php
    $a = 0;
    while ($a++)
    {
    echo "$a";
    }
    echo $a;
    ?>

    A. 0

    B. 1 Answer: Option B

    C. 01

    D. None of the above

  18. Solution: Due to the post-increment, the condition is checked before incrementing. As the initial value 0 fails the condition, the loop does not execute, and 1 is printed.




 


.

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