Searching for "example."

Q:

How to select more than one option from list in android xml file? Give an example.

Answer

Specify android id, layout height and width as depicted in the following example.


<ListView android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_parent"></ListView>

Report Error

View answer Workspace Report Error Discuss

Q:

What is severity and priority of bug? Give some example.

Answer

Priority: concern with application from the business point of view. It answers  How quickly we need to fix the bug? Or How soon the bug should get fixed?


Severity: concern with functionality of application. It deals with the impact of the bug on the application.


 

Report Error

View answer Workspace Report Error Discuss

Subject: QA Testing

Q:

What type of inheritance that PHP supports? Provide an example.

Answer

PHP supports single level inheritance.


Inheriting a class would mean creating a new class with all functionality of the existing class in addition to some more. The created class is called as a subclass of the parent class. Parent is a keyword which we use to access members of a parent class. Inheritance is usually defined by using the keyword “Extend”. $this is used a reference to the calling object. Inheritance avoids redundancy of code.


Example:


Class employee extends manager : Here Employee is a subclass of manager.


Echo $this->name can be used to echo variable name of the parent class.

Report Error

View answer Workspace Report Error Discuss

Subject: PHP