Interview Questions

Q:

How can we find the number of rows in a result set using PHP?

Answer

$result = mysql_query($sql, $db_link);
$num_rows = mysql_num_rows($result);
echo "$num_rows rows found";

Report Error

View answer Workspace Report Error Discuss

Subject: PHP

0 2944
Q:

onclick="window.open()":This attribute of HTML control is used to open a page in new window

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

To open a page in a new window, you have to use client script using onclick="window.open()" attribute of HTML control.

Report Error

View Answer Workspace Report Error Discuss

Subject: .NET
Job Role: Software Architect

0 2944
Q:

Can a source file contain more than one class declaration?

Answer Yes a single source file can contain any number of Class declarations but only one of the class can be declared as public.
Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2944
Q:

Will comparison of string "10" and integer 11 work in PHP?

Answer Yes, internally PHP will cast everything to the integer type, so numbers 10 and 11 will be compared.
Report Error

View answer Workspace Report Error Discuss

Subject: PHP

1 2932
Q:

In-transit to destination or out for delivery means

Answer

When you give your item to the USPS for delivery, it accepts your item and starts the process of delivery. Transit is a part of the shipment delivery process. When we say that the package is in the transit or in transit to the destination, it means that the package is on the way to the delivery.

Report Error

View answer Workspace Report Error Discuss

0 2929
Q:

What is Retained Earnings?

Answer

When a company or corporation earns a profit or surplus, that money can be put to two uses it can either be re-invested in the business called retained earnings or it can be paid to the shareholders as a dividends.

Report Error

View answer Workspace Report Error Discuss

Subject: Finance

0 2929
Q:

What is the difference between processes and threads ?

Answer

- A process is an execution of a program, while a Thread is a single execution sequence within a process.


- A process can contain multiple threads. A Thread is sometimes called a lightweight process.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

0 2928
Q:

What is SQL Server Agent?

Answer

SQL Server agent plays an important role in the day-to-day tasks of a database administrator (DBA). Its purpose is to ease the implementation of tasks for the DBA, with its full- function scheduling engine, which allows you to schedule your own jobs and scripts.

Report Error

View answer Workspace Report Error Discuss

Subject: SQL

0 2926