
php-class – programming-php – কুইজ মডেল টেস্ট অনুশীলন – 3
8319. How can a script come to a clean termination
- PHP crashes
- Apache terminates
- Exit() is called
- Execution reaches the end of the current file
8320. Consider the following class: Class Insurance { function clsName() { echo get_class($this); } } $cl = new Insurance(); $cl -> clsName(); Insurance::clsName(); Which of the following Lines should be commented to print the class name without errors
- All the three lines 8
- 9
- and 10 should be left as it is.Line 8 and 9
- Line 10
8321. Which of the following statements is incorrect with regard to interfaces
- An abstract class cannot implement multiple interfacesMethods with same name
- arguments and sequences can exist in the different interfaces implemented by a classAn interface can extend multiple interfaces
- A class can implement multiple interfaces
8322. Which of the following variable declarations within a class is invalid in PHP5
- protected $name = ‘Quantas Private Limited’;
- internal $term= 3;
- public $amnt = ‘500’;
- private $type = ‘moderate’;
আমাদের কাছে থাকা লক্ষ লক্ষ মডেল টেস্ট থেকে প্রাকটিজের জন্য কিছু এখানে তুলে ধরা হল। প্রতিটি অধ্যায়ের উপরে ইশিখন.কম কুইজ চ্যালেঞ্জ এ আছে শত শত মডেল টেস্ট বার বার মডেল টেস্ট দিয়ে নিজেকে যাচাই কর এবং পুরো বাংলাদেশের সকল শিক্ষার্থীর সাথে আপনার মেধা তালিকা দেখুন। প্রশ্নে কোন প্রকার ভুল থাকলে সঠিক উত্তরসহ নিচে কমেন্ট করে জানাবেন, আমরা ঠিক করে দেবো।