You have given the following XML data in the tasks.XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<tasklist>
<note>
<tasks>Validate data
<details>String Validation
</note>
<note>
<tasks>Secure data
<details>Encryption</details>
</note>
</tasklist>
Now, you run the following PHP script:
$objDOM = new DOMDocument();
$objDOM->load("tasks.xml");
$note = $objDOM->getElementsByTagName("note");
foreach( $note as $value )
{
$tasks = $value->getElementsByTagName("tasks");
$task = $tasks->item(0)->nodeValue;
$details = $value->getElementsByTagName("details");
$detail = $details->item(0)->nodeValue;
echo "$task :: $detail
";
}
?>
What should be displayed when this script is executed?
You are using a database named HumanResource. You have to delete some tables from the database using SQL statements. Which of the following statements will you use to accomplish the task?
Consider the following script:
<html>
<head>
<title>
This is a test script.
</title>
</head>
<body>
echo 'This is some sample text';
?>
</body>
</html>
Which of the following tags is used in the php script?
Which of the following will NOT display the value of $debug_variable? Each correct answer represents a complete solution. Choose all that apply.
Which of the following joins retrieves all rows from one table and only the matching rows from the joined table?
Fill in the blank with the appropriate method name. The________ method is used to check whether a date is valid or not.
Celina works as a Database Administrator for Tech Mart Inc. The company uses an Oracle database. The database contains a table named Employees. Following is the structure of the table:
EmpID NUMBER (5) PRIMARY KEY EmpName VARCHAR2 (35) NOT NULLSalary NUMBER (9, 2) NOT NULL Commission NUMBER (4, 2) ManagerNameVARCHAR2 (25) ManagerID NUMBER (5) Celina wants to display the names of employees and their managers, using a self join.
Which of the following SQL statements will she use to accomplish this? Each correct answer represents a complete solution. Choose two.
Which property is used to operate the memory object data?
You have a table created as follows:
create table foo (c1int, c2 char(30), c3 int, c4 char(10))
If column c1 is unique, which of the following indexes would optimize the statement given
below? Select distinct (c1), c3 from foo where c1=10
Maria writes a query that uses outer join between two tables. Which of the following operators are not allowed in the query? Each correct answer represents a complete solution. Choose two.
PDF + Testing Engine
|
---|
$66 |
Testing Engine
|
---|
$50 |
PDF (Q&A)
|
---|
$42 |
Zend Free Exams |
---|
![]() |