2023 Part 1 of 1 Inline Text This exam covers Units 1 2 and 3 It | Assignment Collections
Computer Science 2023 EXAM: SPRING 2014
2023 Part 1 of 1 Inline Text This exam covers Units 1 2 and 3 It | Assignment Collections
Part 1 of 1 – Inline Text |
This exam covers Units 1, 2 and 3. It is a closed-book exam. You may not use any references. The exam is timed. You may only take it once.
All methods in an interface must be abstract methods.
Reset Selection |
|||||||||||
All methods in an abstract class must be declared as abstract methods.
Reset Selection |
|||||||||||
PHP does not allow multiple inheritance.
Reset Selection |
|||||||||||
PHP does not allow constructor overriding.
Reset Selection |
|||||||||||
Given a class named Person:
Reset Selection |
|||||||||||
Which of the following is NOT true regarding a PHP class constructor?
Reset Selection |
|||||||||||
Which of the following creates a default constructor for the class called Animal?
Reset Selection |
|||||||||||
In OOP, class data are usually private so access to class data is restricted. This design practice is called _______.
Reset Selection |
|||||||||||
The template or blueprint that defines abstract characteristics of all real world objects of the same kind is called a(n) ______ in OOP.
Reset Selection |
|||||||||||
In OOP, the practice of deriving new classes from existing classes is called __________.
Reset Selection |
|||||||||||
Which of the following statement is NOT true?
Reset Selection |
|||||||||||
The public methods of a class are also known as the class’s _____.
Reset Selection |
|||||||||||
Given a class method named myMethod:
class A { }
Reset Selection |
|||||||||||
Given classes named Parent and Child: class Parent { class Child extends Parent { Which of the following methods in class Child overrides the method aMethod defined in class Parent?
Reset Selection |
|||||||||||
Which of the following is NOT a valid PHP visibility modifier?
Reset Selection |
|||||||||||
In OOP, composition is sometimes referred to as a(n) ______ relationship.
Reset Selection |
|||||||||||
A _____ variable represents classwide information that is shared by all the objects of the class.
Reset Selection |
|||||||||||
Given an OOP interface:
class A ______ Shape { What should be inserted into the blank in class A?
Reset Selection |
|||||||||||
Given a class named Person:
public function __construct($theName) { What should be inserted into the blank?
Reset Selection |
|||||||||||
Given a class named Person:
public function __construct($name) { What should be inserted into the blank so that the variable $count increments by 1 everytime a Person object is created?
Reset Selection |
|||||||||||
A is-a relationship is implemented via __________.
Reset Selection |
|||||||||||
Polymorphism is one of the three major OOP principles. It means ______________.
Reset Selection |
|||||||||||
Composition means ______________.
Reset Selection |
|||||||||||
In a UML class diagram, the symbol “+” or “-” before a member name specifies accessibility of the member. “-” indicates that the member is [removed] . |
|||||||||||
In OOP, _________ can be used to provide functionality to be inherited by related or unrelated classes.
Reset Selection |
|||||||||||
Which of the following statements is true?
Reset Selection |
|||||||||||
What keyword can be used to reference a method defined in the superclass from a subclass?
Reset Selection |
|||||||||||
In an UML class diagram, inheritance relationship between a parent class and its child class is graphically shown with the arrow pointing to the [removed] class. |
|||||||||||
Given a class diagram below:
Note: the three circles and the numbers next to them are not part of the class diagram. Object oriented programming supports three types of class relationship:composition, inheritance, and interface. Identify the three types of class relationship in the above diagram. The symbol in Circle 1 indicates[removed] relationship; the symbol in Circle 2 indicates [removed] relationship; and the symbol in Circle 3 indicates [removed]relationship. |
|||||||||||
People often refer to an object in OOP programing as a black box. Explain your understanding of this analogy.
(Maximum number of characters: 60000)
|
|||||||||||
Given a JavaScript function named search:
function search() { //code omitted }
The following is the HTML code for a textbox:
<input id=”keyword” [removed] >
The event handler for handling key release is onkeyup. What code should be filled in the blank above so that when a key is released in the textbox, the search function will be invoked?
|
|||||||||||
Given an XML document segment:
The type of the node that contains the string value “2011” is ______.
Reset Selection |
|||||||||||
This question refers to an XML document named book.xml. Click here to display the document.
Reset Selection |
|||||||||||
One way a web server responds to an asynchronous AJAX request is sending an XML document back to the client. To extract the XML document, you may use the ________ property of the XMLHttpRequest object. .
Reset Selection |
|||||||||||
Given an XMLHttpRequest object named xmlHttp. Which of the following is the correct code for defining an asynchronous AJAX request?
Reset Selection |
|||||||||||
The readyState property of the XMLHttpRequest object indicates the current state of the object. The event handler that can be used to monitor status changes of the object is[removed] . |
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.