MCQOPTIONS
Bookmark
Saved Bookmarks
→
Php
→
Online Quiz in Php
→
The functions strtolower() and strtoupper() work o..
1.
The functions strtolower() and strtoupper() work on individual characters and not on entire strings.%!
A.
True
B.
False
Answer» C.
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
The practice of creating objects based on predefined classes is often referred to as.
What will be the output of the following PHP code?class Checkout {final function totalize(){// calculate bill} }class IllegalCheckout extends Checkout{final function totalize(){// change bill calculation}}
Which of the following is/are the right way to declare a method?1. function functionName() { function body }2. scope function functionName() { function body }3. method methodName() { method body }4. scope method methodName() { method body }
Which of the following statements is/are true about Constructors in PHP?1. PHP 4 introduced class constructors.2. Constructors can accept parameters.3. Constructors can call class methods or other functions.4. Class constructors can call on other constructors.
In the PHP code given below, what is/are the properties?<?phpclass Example{public $name;function Sample(){echo "This is an example";}}?>
The class from which the child class inherits is called.1. Child class2. Parent class3. Super class4. Base class
Which of the following advanced OOP features is/are not supported by PHP?1. Method overloading2. Multiple Inheritance3. Namespaces4. Object Cloning
What will be the output of the following PHP code?<?phpclass ShopProductWriter{public function write($shopProduct){$str = "{$shopProduct->title}: " .$shopProduct->getProducer() ." ({$shopProduct->price})n";print $str;}}$product1 = new ShopProduct( "My Antonia", "Willa", "Cather", 5.99 );$writer = new ShopProductWriter();$writer->write( $product1 );?>
If you omit the visibility keyword in your method declaration, by default the method will be declared as.
What will be the output of the following PHP code?<?phpclass MyClass{}$a = new MyClass;var_dump(!($a instanceof stdClass));?>
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply