PHP Multiple Choice Questions
- The break statement ends execution of which of the following?
- while
- for
- switch
- All of the above
Added By : Sakshi
- Which is a valid character for starting a PHP function name?
- Dollar Sign ($)
- Underscore (_)
- Percent (%)
- All of the above
Added By : Sakshi
- Which PHP function or variable will return the value of current session id?
- session_id()
- get_session_id;
- $_SESSION['CURRENT_ID'];
- $_SESSION['ID']
Added By : Sakshi
- What is the simplest method of computing the sum of all the elements of an array?
- array_intersect()
- array_count()
- array_sum()
- array_value_count()
Added By : Amit
- What is the name of function used to convert an array into a string?
- explode()
- glue()
- implode()
- None of the above
Added By : Amit
- _______ function is used to sort an array in ascending order by value while preserving key associations.
- ksort()
- asort()
- krsort()
- usort()
Added By : Amit
- Array values are keyed by ______ values (called indexed arrays) or using ______ values (called associative arrays).
- Float, string
- Even number, string
- String, Boolean
- Integer, string
Added By : Amit
- Which object-oriented pattern would you use to implement a class that must be instantiated only once for the entire lifespan of a script?
- Model-view-controller
- Abstract factory
- Singleton
- Proxy
Added By : Amit
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