PHP Multiple Choice Questions
- If property of class is declare using var then PHP5 will treat the property as?
- Protected
- Private
- Public
- Final
Added By : Rahul
- Class member variables are also called?
- Properties
- Fields
- Attributes
- All of the above
Added By : Rahul
- Which of the following is a correct way to declare constant variable?
- const $CONSTANT = 'constant value';
- const CONSTANT = 'constant value';
- const CONSTANT = $a * $b;
- All of the above
Added By : Rahul
- Find wrong statement
- A class may contain its own constants, properties, and methods.
- Basic class definitions begin with the keyword class, followed by a class name, followed by a pair of curly braces which keeps the definitions of the properties and methods.
- A "class" is not a PHP reserved word.
- The class name can be any valid label, provided it is not a PHP reserved word.
Added By : Rahul
- How to typecast a variable to Boolean?
- $var = $var == $var;
- $var = (true)$var;
- $var = (bool)$var;
- Variable cannot be typecast in Boolean
Added By : Raju
- include_once is a ________.
- Function
- Statement
- Language Constructor
- All of the above
Added By : Sanjay
- microtime() returns _______.
- current Unix timestamp with seconds
- current Unix timestamp with nanoseconds
- current Unix timestamp with microseconds
- None of the above
Added By : Sanjay
- What will range('a', 'z') return?
- Find difference between 'a' to 'z'
- An alphabetically ordered array of letters from 'a' to 'z'
- Will only apply on integer value
- None of the above
Added By : Sonali
Also Exercise
Post Your Question
Social Sharing
Search
Articles
Recently Added Jobs
Rajasthan High Court - Jodhpur Recruitment 2017 for Civil Judges
Last Date: 21 December, 2017
Last Date: 21 December, 2017
WBSEDCL Recruitment - 2017 for Office Executive
Last Date: 16 May, 2017
Last Date: 16 May, 2017
RECRUITMENT OF PROBATIONARY OFFICERS IN STATE BANK OF INDIA
Last Date: 06 March, 2017
Last Date: 06 March, 2017
UPSC Combined Medical Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015
UPSC Engineering Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015