.
  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 function is used to set cookie in PHP?

    A. createcookie()

    B. makecookie()

    C. setcookie() Answer: Option C

    D. None of the above

  2. Solution: PHP cookie is a small piece of information that is stored at the client browser. It is used to recognize the user. PHP setcookie() function is used to set a cookie with HTTP response. Once the cookie is set, you can access it by the $_COOKIE superglobal variable.
  3. Which of the following function is used to get the ASCII value of a character in PHP?

    A. val()

    B. asc()

    C. ascii()

    D. chr() Answer: Option D

  4. Solution: The PHP chr() function is used to generate a single byte string from a number. In other words, it returns a character from a specified ASCII value.
  5. Which of the following function is used to unset a variable in PHP?

    A. delete()

    B. unset() Answer: Option B

    C. unlink()

    D. None of the above

  6. Solution: The unset() function is a predefined variable handling function of PHP, which is used to unset a specified variable. In other words, "the unset() function destroys the variables".
  7. Which of the following function is used to sort an array in descending order?

    A. sort()

    B. asrot()

    C. dsort()

    D. rsort() Answer: Option D

  8. Solution: The PHP rsort() function is used to sort an array in descending order. This function was introduced in PHP 4.0.
  9. Which of the following is/are the code editors in PHP?

    A. Notepad++

    B. Notepad

    C. Adobe Dreamweaver

    D. All of the above Answer: Option D

  10. Solution: PHP programs can be written on any editor, such as Notepad, Notepad++, Dreamweaver, etc. These programs are saved with a .php extension, i.e., filename.php inside the htdocs folder.
  11. Which of the following is used to end a statement in PHP?

    A. . (dot)

    B. ; (semicolon) Answer: Option B

    C. ! (exclamation)

    D. / (slash)

  12. Solution: PHP statements end with a semicolon (;).
  13. Which of the following function in PHP can be used to test the type of any variable?

    A. showtype()

    B. gettype() Answer: Option B

    C. settype()

    D. None of the above

  14. Solution: The gettype() function is an inbuilt function in PHP, and as its name implies, it returns the type of a variable. The gettype() function in PHP is used to check the type of an existing variable.
  15. String values in PHP must be enclosed within -

    A. Double Quotes

    B. Single Quotes

    C. Both (a) and (b) Answer: Option C

    D. None of the above

  16. Solution: There are 4 ways to specify a string literal in PHP:
    • single quoted
    • double quoted
    • heredoc syntax
    • newdoc syntax (since PHP 5.3)
    We can create a string in PHP by enclosing the text in a single-quote. It is the easiest way to specify a string in PHP. In PHP, we can specify a string through enclosing text within double quotes also. But escape sequences and variables will be interpreted using double-quote PHP strings.




 


.

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