Searching for "with________"

Q:

Which of the following can't be done with client-side JavaScript?

A) Sending a form's contents by email B) Storing the form's contents to a database file on the server
C) Validating a form D) None of the above
 
Answer & Explanation Answer: B) Storing the form's contents to a database file on the server

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Web Technology

Q:

If an array with name as "names" contain three elements, then how will you print the third element of this array?

Answer

Print third array element document.write(names[2]);

Note:- Array index starts with 0.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

Q:

Swap two variables without using third variable.

Answer

#include<stdio.h>
int main(){
    int a=5,b=10;
    a=b+a;
    b=a-b;
    a=a-b;
    printf("a= %d  b=  %d",a,b);
}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

Q:

How to identify a given positive decimal number as even/odd without using % or / operator ?

Answer

You may be very good at coding,but if you questioning how on earth you could solve this problem.Then here is a solution. If you remember the good old days of our primary school then the solution is easy,"division is a matter of iterative subtraction".


public class TestEvenOdd {
public static void main(String arg[ ]){
int num=6;
int result=num;
while(result>=2){
result=result-2;
}
if(result==1){
System.out.println("The number is odd");
}else{
System.out.print("The number is even");
}
}
}

Report Error

View answer Workspace Report Error Discuss

Subject: Java

Q:

Can we compile a java program without main?

Answer

Yes, we can. In order to compile a java program, we don't require any main method. But to execute a java program we must have a main in it (unless it is an applet or servlet). Because main is the starting point of a java program.

Report Error

View answer Workspace Report Error Discuss

Subject: Java

Q:

 When assessing the table structure of an acquired set of tables with data, accessing the validity of possible referential integrity constraints on foreign keys is (part of) the:

A) first step. B) second step.
C) third step. D) fourth step.
 
Answer & Explanation Answer: C) third step.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

Q:

With this type of SQL Server cursor concurrency no lock is obtained until the user updates the data.

A) READ_ONLY B) SCROLL_LOCK
C) OPTIMISTIC D) PESSIMISTIC
 
Answer & Explanation Answer: C) OPTIMISTIC

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

Q:

John is a system administrator for a renowned travel agency.The agency is planning to upgrade its computer systems to Windows XP Professional.Most of the computers are networked but some computers do not have CD-ROM drives.How can John upgrade the computer systems without CD-ROM drives to Windows XP Professional?

A) can attach a portable tape backup unit to each computer and install the operating system from it. B) can use the windows installer program to push out the operating system.
C) can perfom the installation over a network share. D) can not install windows XP Professional unless he installs a CD-ROM drive in the computer systems that do not have them.
 
Answer & Explanation Answer: C) can perfom the installation over a network share.

Explanation:
Report Error

View Answer Report Error Discuss