.
  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 variable name is invalid?

    A. $newVar

    B. $new_Var

    C. $new-var Answer: Option C

    D. All of the above

  2. Solution: In PHP, a variable is declared using a $ sign followed by the variable name. A variable name must start with a letter or underscore (_) character. A PHP variable name cannot contain spaces.
  3. Which of the following is the correct way to create an array in PHP?

    A. $season = array["summer" , "winter" , "spring" , "autumn"];

    B. $season = array("summer" , "winter" , "spring" , "autumn"); Answer: Option B

    C. $season = "summer" , "winter" , "spring" , "autumn";

    D. All of the above

  4. Solution: None.
  5. Which of the following is a built-in function in PHP that adds a value to the end of an array?

    A. array_push() Answer: Option A

    B. inend_array()

    C. into_array()

    D. None of the above

  6. Solution: The array_push() is a built-in function in PHP. This function helps users add elements at the end of an array. It allows inserting any number of elements into an array, including strings and numeric values.
  7. Which of the following function in PHP returns a text in title case from a variable?

    A. toUpper($var)

    B. ucwords($var) Answer: Option B

    C. ucword($var)

    D. All of the above

  8. Solution: The ucwords() is an in-built function in PHP, which converts the first character of each word in a string to uppercase. The other characters of the string remain unchanged.
  9. Which of the following is the correct way to print "Hello World" in PHP?

    A. "Hello World";

    B. write("Hello World");

    C. echo "Hello World"; Answer: Option C

    D. None of the above

  10. Solution: PHP echo is a language construct, not a function. Therefore, you don't need to use parentheses with it. The correct way to print "Hello World" in PHP is:
    echo "Hello World";
  11. Which of the following function is used to compress a string in PHP?

    A. compress()

    B. zip_compress()

    C. gzcompress() Answer: Option C

    D. zip()

  12. Solution: The gzcompress() function in PHP compresses the given string using the ZLIB format.
  13. What does SPL stand for in PHP?

    A. Standard PHP Library Answer: Option A

    B. Simple PHP Library

    C. Simple PHP List

    D. None of the above

  14. Solution: In PHP, SPL stands for "Standard PHP Library."
  15. Which of the following function converts a string to all uppercase?

    A. upper()

    B. uppercase()

    C. struppercase()

    D. strtoupper() Answer: Option D

  16. Solution: The strtoupper() function in PHP converts all lowercase English characters in a string to uppercase.
  17. The function in PHP that can be used to concatenate array elements to form a single delimited string is -

    A. implode() Answer: Option A

    B. concat()

    C. explode()

    D. concatenate()

  18. Solution: PHP implode() is a string function that joins the elements of an array into a single string. It works similarly to the join() function.




 


.

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