Exam 10: Developing Object-Oriented Php
Exam 1: Getting Started With Php83 Questions
Exam 2: Functions and Control Structures83 Questions
Exam 3: Manipulating Strings83 Questions
Exam 4: Handling User Input83 Questions
Exam 5: Working With Files and Directories84 Questions
Exam 6: Manipulating Arrays83 Questions
Exam 7: Working With Databases and Mysql83 Questions
Exam 8: Manipulating Mysql Databases With Php84 Questions
Exam 9: Managing State Information83 Questions
Exam 10: Developing Object-Oriented Php79 Questions
Select questions type
A constructor function is a special function that is called automatically when an object from a class is instantiated.
(True/False)
4.9/5
(39)
To create a class in PHP, use the ____ keyword to write a class definition.
(Multiple Choice)
4.7/5
(28)
A hyphen and a greater-than symbol used to access the methods and properties contained in an object are referred to as ____.
(Multiple Choice)
5.0/5
(38)
There are three levels of access specifiers in PHP: public, private, and protected.
(True/False)
4.7/5
(35)
When you serialize an object with the serialize() function, PHP looks in the object's class for a special function named __sleep() function, which you can use to perform many of same tasks as a destructor function.
(True/False)
4.8/5
(31)
The public access specifier allows anyone to call a class's member function or to modify or retrieve the value of a data member.
(True/False)
4.9/5
(37)
The best way to initialize a data member is with a(n) ____________________.
(Short Answer)
4.9/5
(40)
The ____ portion of the class definition is the name of the new class.
(Multiple Choice)
4.9/5
(45)
To determine if the database connection failed when working with a mysqli object, you need to use the ____________________ data member of the mysqli object to retrieve the error code from the last connection attempt.
(Short Answer)
4.7/5
(28)
The syntax for using the instanceof operator is object_name instanceof ____________________.
(Short Answer)
4.9/5
(38)
Data structures are a system for organizing ____________________.
(Short Answer)
4.8/5
(35)
Reusable software objects that can be incorporated into multiple programs is called ____.
(Multiple Choice)
4.7/5
(25)
An object created from an existing class is called a(n) ___
(Multiple Choice)
4.8/5
(33)
When you delete an object from an existing class, you are said to be instantiating the object.
(True/False)
4.9/5
(37)
A class constructor is a special attribute with the same name as its class that is called automatically when an object from the class is instantiated.
(True/False)
4.8/5
(39)
Data refers to information contained within ____________________.
(Short Answer)
5.0/5
(35)
In order for a source program to communicate with an object, it must use a(n) ____________________ of methods and properties.
(Short Answer)
4.7/5
(38)
____________________ access does not restrict a class's internal access to its own members.
(Short Answer)
4.9/5
(34)
Showing 41 - 60 of 79
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)