.
  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 of the following is used for concatenation in PHP?

    A. + (plus)

    B. * (Asterisk)

    C. . (dot) Answer: Option C

    D. append()

  2. Solution: In PHP, the . (dot) operator is used for concatenation. Suppose there are two variables $a and $b, so the statement $a . $b will concatenate both $a and $b.
  3. Which of the following starts with __ (double underscore) in PHP?

    A. Inbuilt constants

    B. User-defined constants

    C. Magic constants Answer: Option C

    D. Default constants

  4. Solution: Magic constants are the predefined constants in PHP which get changed on the basis of their use. They start with a double underscore (__) and end with a double underscore.
  5. Which of the following is the use of strpos() function in PHP?

    A. The strpos() function is used to search for the spaces in a string

    B. The strpos() function is used to search for a number in a string

    C. The strpos() function is used to search for a character/text in a string Answer: Option C

    D. The strpos() function is used to search for a capitalize character in a string

  6. Solution: The strpos() function is an in-built function of PHP. It is used to find the position of the first occurrence of a string inside another string or substring in a string.
  7. What does PEAR stand for?

    A. PHP extension and application repository Answer: Option A

    B. PHP enhancement and application reduce

    C. PHP event and application repository

    D. None of the above

  8. Solution: PEAR is a framework and repository for reusable PHP components. PEAR stands for PHP Extension and Application Repository. It contains all types of PHP code snippets and libraries.
  9. Which of the following is the correct way to create a function in PHP?

    A. Create myFunction()

    B. New_function myFunction()

    C. function myFunction() Answer: Option C

    D. None of the above

  10. Solution: The syntax to declare user-defined functions in PHP is:
    function functionname() {
    // code to be executed
    }
  11. Which of the following PHP functions is used to generate a unique ID?

    A. id()

    B. mdid()

    C. uniqueid() Answer: Option C

    D. None of the above

  12. Solution: The PHP function uniqueid() is used to generate a unique identifier. It is often used to create unique values for session IDs or other identifiers.
  13. Which of the following is the correct way of defining a variable in PHP?

    A. $variable name = value;

    B. $variable_name = value; Answer: Option B

    C. $variable_name = value

    D. $variable name as value;

  14. Solution: In PHP, a variable is declared using a $ sign followed by the variable name. A PHP variable name cannot contain spaces.
    Syntax: $variable_name = value;




 


.

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