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

 

Novartis Placement Paper -: PHP Questions With Answers


Advertisements
Advertisements




Novartis Previous Years Solved Sample Placement Papers

  1. Which of the following is/are a PHP code editor?

    i) Notepad

    ii) Notepad++

    iii) Adobe Dreamweaver

    iv) PDT

    A. Only (iv)

    B. All of the mentioned. Ans: B

    C. (i), (ii) and (iii)

    D. Only (iii)

  2. Which of the following must be installed on your computer so as to run PHP script?

    i) Adobe Dreamweaver

    ii) PHP

    iii) Apache

    iv) IIS

    A. All of the mentioned

    B. Only (ii)

    C. (ii) and (iii)

    D. (ii), (iii) and (iv) Ans: D

  3. We can use ___ to comment a single line?

    i) /?

    ii) //

    iii) #

    iv) /* */

    A. Only (ii)

    B. (i), (iii) and (iv)

    C. (ii), (iii) and (iv) Ans: C

    D. Both (ii) and (iv)

  4. Which of the below symbols is a newline character?

    A. \r

    B. \n Ans: B

    C. /n

    D. /r

  5. Which of the following PHP statement/statements will store 111 in variable num?

    i) int $num = 111;

    ii) int mum = 111;

    iii) $num = 111;

    iv) 111 = $num;

    A. Both (i) and (ii)

    B. All of the mentioned.

    C. Only (iii) Ans: C

    D. Only (i)

  6. What will be the output of the following PHP code?

    
    
        

    A. 3

    B. 1+2 Ans: B

    C. 1.+.2

    D. Error

  7. What will be the output of the following PHP code?

    
    
        

    A. 3 Ans: A

    B. 1+2

    C. Error

    D. 12

  8. Which of the following variables can be assigned a value to it?

    (i) $3hello

    (ii) $_hello

    (iii) $this

    (iv) $This

    A. All of the mentioned

    B. Only (ii)

    C. (ii), (iii) and (iv)

    D. (ii) and (iv) Ans: D

  9. What will be the output of the following code?

    
    
        

    A. Error

    B. My name is BobBob

    C. My name is BobMy name is Bob

    D. My name is Bob Bob Ans: D

  10. PHP’s numerically indexed array begin with position __.

    A. 1

    B. 2

    C. 0 Ans: C

    D. -1

  11. Which of the functions is used to sort an array in descending order?

    A. sort()

    B. asort()

    C. rsort() Ans: C

    D. dsort()




 


.

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