Business Analytics > A Level Question Paper > BSBA 1-4 Final Exam Questions & Answers (All)
1. Which version of PHP introduced class type hints? C a) PHP 4 b) PHP 4.3 c) PHP 5 2. Inheritance is the means by which one or more classes can be derived from a/an class. A a) Base b) Abstra... ct c) Null 3. What will be the output of the following PHP code? C a) Bool(true)bool(true) b) Bool(false)bool(false) c) Bool(true)bool(false) output 4. What will be the of the following PHP code? B 4. ?php 5. class MyClass 6. { 7. } 8. 9. class NotMyClass 10.{ 11.} 12.$a = new MyClass; 13. 14. var_dump($a instanceof MyClass); 15. var_dump($a instanceof NotMyClass); 16.?> 6. <?php 7. class MyClass 8. { 9. } 10. 11.$a = new MyClass; 12.var_dump(!($a instanceof stdClass)); 13.?> 1. 6<?php 2. interface MyInterface 3. { 4. } 5. 6. class MyClass implements MyInterface 7. { 8. } 9. 10.$a = new MyClass; 11. 12. var_dump($a instanceof MyClass); 13. var_dump($a instanceof MyInterface); 14.?> a) Bool(false)boo(false) b) Bool(true)bool(true) c) Bool(true)bool(false) 5. What will be the output of the following PHP code? A a) Bool(true) b) Bool(false) c) Error 6. . What will be the output of the following PHP code? B a) Bool(false)bool(false) b) Bool(true)boo(true) c) Bool(true)bool(false) 7. What should be used to refer to a method in the context of a class rather than an object you use? B a) -> b) :: c) $ [Show More]
Last updated: 1 month ago
Preview 1 out of 5 pages
Connected school, study & course
About the document
Uploaded On
Apr 01, 2024
Number of pages
5
Written in
This document has been written for:
Uploaded
Apr 01, 2024
Downloads
0
Views
16
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·