.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> JavaScript/VBScript >> Post New Question Subscribe to Interview Questions

What can java script programs do?

Posted By : LEANORD     Posted Date :October 26, 2011    Points :40   Category :JavaScript/VBScript 
Generation of HTML pages on-the-fly without accessing the Web server. The user can be given control over the browser like User input validation Simple computations can be performed on the client's machine The user's browser, OS, screen size, etc. can be detected Date and Time Handling.

You can also find related Interview Question to What can java script programs do?  below: 

How to add a combo box dynamically at run time in Java script?

  
document.forms[0]..options[index] new Option("Add text Value") (More...)

What is the result of below given line of code in Java Script? 5+4+'7'

  
The answer is 97.

As 5 and 4 are integer so total becomes 9 and it's add '7' to it as string so it becomes 97.
(More...)

Is a java script script faster than an ASP script?

  
Since javas cript is a client-side script it does require the web server's help for its computation,so it is always faster than any server-side script like ASP,PHP,JSP etc. (More...)

Java Script
x=5;
y="5";
x==y
1)True
2)False

  
This Condition is True. Even x is INT and y is String.
Because == only Check only the value are equal. not Data type.

use Identical Operator (===) for check int === string.
like x=5; y="5";

x===y;

False (More...)

Is jQuery replacement of Java Script?

  
No. jQuery is not a replacement of JavaScript. jQuery is a different library which is written on top of JavaScript. jQuery is a lightweight JavaScript library that emphasizes interaction between JavaScript and HTML.
(More...)

Can a .NET web application consume Java web service?

  
Yes Offcourse.Actually Webservices are independent to language. it depends on WSDL and SOAP. so any one can develope the Webservices anddisclose the wsdl and users can consume the webservices.wsdl and soap both are xml based.. and all languages having xml parsing
capability and access to http protocol will be able to work with Webservices. (More...)

Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?

  
AsyncPostBackTimeout Property needs to set which gets or sets a value that indicates the time, in seconds, before asynchronous postback time out if no response is received from the server.




The default value of this property is 90 second. We can also set the user defined error message using asyncpostbackerrormessage property (as shown in above code) for time out. (More...)

Java is "distributed" what does this means ?

  
Java is designed for the distributed environment of the internet, because it handles TCP/IP protocols. In fact accessing a resource using a URL is not much different from accessing a file.The original version of Java (Oak) included features for intraddress-spaces messaging.This allowed objects on two different computers to execute procedure remotely.Java has recently revived these interfaces in a package called ~Remote Method Invocation (RMI)~. This feature brings an unparalleled level of abstraction to client/server programming.

Thanks !!! (More...)

Different between java and cpp?

  
Java is purely object oriented language , cpp is not purely object oriented language. (More...)

What the different between "Script declared in head section" and "Script declared in body Section"

  
Script declared in Head Section, Page Loading time the script was executed. you call the script explicitly then only use of this script.
Script declared in Body section, it execute the time of body section load. (More...)

In a Java multithreading program, under what circumstances will you call the yield() method of a thread?

  
1, To give other runnable threads a chance to execute.
2, To start a new thread.
3, To terminate the current thread.
4, To stop the current thread for a specific time.

Answer : 1 (More...)

What is dynamic variable in java and where do we use them?

  
The variables that are initialized at run time is called as dynamic variable (More...)

Can you run the java program without main method?

  
A java applet application, a web application can run without main method. A Java program can run without using ' public static void main(String args[]) ' method by using a static block.

The static block gets executed soon after the class is loaded, even prior to the 'public static void main(String args[]) '. JVM searches for main method only after exiting from the static block. JVM throws an exception if main method is not found. To avoid throwing this exception we can use System.exit(0);

The following code depicts a class without main method; with only static block and System.exit(0).

class WithoutMainMethod {
static
{
System.out.println("This class has no public static void main(String args[]) ");
System.out.exit(0);
}
}. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend