1.The _______ function generates a random number:
-
rand
min
abs
2. To create a constant, use the _____ function.is used
-
define()
min()
abs()
3. A ______is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.
-
cookie
session
abs
4. the _____function returns the square root of a number:
-
count
min
abs
5. which type of language used in sql
-
DDL
DML
DIL
6. A ______ is a way to store information (in variables) to be usedacross multiple pages.
-
cookie
session
abs
7. _______are the two main aspects of object-oriented programming.
-
classes and objects
constructor and destructor
object and array
8. If you create a __construct() function, PHP will automatically call thisfunction when you create an object from a class.
-
true
false
both a and b
9. A ______is called when the object is destructed or the script is stopped orexited.
-
destructor
constructor
object
10. If you create a __destruct() function, PHP will automatically call thisfunction at the end of the script.
11. Abstract classes and methods are when the parent class has a named method,but need its child class(es) to fill out the tasks.
12. An abstract class is a class that contains at least one abstract method. Anabstract method is a method that is declared, but not implemented in the code.
13. When inheriting from an abstract class, the child class method must be definedwith the same name, and the same or a less restricted access modifier.
14. Interfaces allow you to specify what methods a class should implement.
15. To implement an interface, a class must use the______ keyword.
16. In PHP, there are three types of arrays one is not type of array in phpwhich one:
17. An inherited class is defined by using the extends keyword.
18. A destructor is called when the object is destructed or the script is stopped orexited.
19. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.
20. If there is no error, then what will the error() method return?
21. Which one of the following statements should be used to include a file?
22. ______ is use to create the web page .
23. A class that is inherited from by another class. This is also called a ____
24. ________ a type of polymorphism in which some or all of operators have differentimplementations depending on the types of their arguments
25. ________Any representation of data in which the implementation details are hidden
26. __________ refers to a concept where we encapsulate all the data and member functionstogether to form an object.
27. Validation means check the input submitted by the user.
28. Which one of the following methods can be used to diagnose and displayinformation about a MySQL connection error?
29.The default file extension for PHP files is _________
30. __________ is used to show the out put …or give message..same as printf in clanguage…
Post a Comment
0 Comments