300+ TOP WMLSCRIPT Interview Questions and Answers

WMLScript Interview Questions for freshers experienced :-

1.What is the function of WMLScript?

  • WMLScript is the alternative language of the JavaScript and used to develop the WML pages.
  • It is a function and comes under the Wireless Application Protocol (WAP) that provides it to be written for wireless applications.
  • It is used for the client side and has many tasks that provide user input validation, generation of error messages, etc.
  • WMLScript provides the scripts to be written in the specific manner that it can provide the additional functionality by the user.
  • WMLScript is based on the ECMAScript and it is similar to the standardized version of the java.

2.What is the use of WML in WMLScript?

  • WML is also known as Wireless Markup Language based on the XML and implement the WAP.
  • WAP is also known as Wireless application Protocol is used for devices that uses mark-up languages.
  • WML provides many features to, represent the content that needs to, be displayed like, navigational support, data input, hyperlinks, etc
  • It has the provision to put the image and present it in variety of forms with the help of HTML.
  • It uses other markup languages with the WAP to provide flexibility in the use of WML in WMLScript.

3.Write a program that provides the declaration of the document using WML markup? – WMLScript

  • WML is used in the documents to validate the document that uses WML DTD (Document Type Definition).
  • It provides validation services that can be used to correct the errors made in WML documents.

WML page can be written as:

<?xml version=”1.0″?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.1//EN”
“http://www.wapforum.org/DTD/wml_1.1.xml” >
<wml>
<card id=”main” title=”CARD”>
<p mode=”wrap”>Hello World</p>
</card>
</wml>

4.What is the use of WML decks? – WMLScript

  1. WML document that is used to create an application is called as deck and it provides way to add more pages.
  2. Deck provides the insertion of the data into one or more cards which is also called as pages.
  3. Deck interacts with the user and the framework on which the application is being built.
  4. Decks are stored on a configured web server that serves the purpose of including the MIME type of data.
  5. This also includes the plain HTML files as well with their variants intact in the file vnd.wap.wml.

5.What is the process where WML cards request the device to access WAP? – WMLScript

  • WML cards are just like pages on the Decks that are used to request the services on the device to access WAP.
  • WAP gateway acts as a bridge between the mobile device and World Wide Web for the communication purpose.
  • It provides the pages or cards from one system to another system using the proxy on the WWW.
  • The gateways are used to send the WML cards in the form of a form applicable to use in a mobile device.
  • The process can’t be seen by the device but the pages can be accessed using the browser and the URL.

6.Write a program to show the process of receiving the list of shops in user’s location? – WMLScript

  • WMLScript is used to provide the interaction between the user application and the server.
  • It provides the use of procedural elements that can be used to control the navigation to other pages or cards.

The program allows user to enter the country code and a list will be generated of the shop that are situated in its place:

<card id=”cM” title=”MY_DOMAIN.com”>
<p>
<b>Call me:</b><br />
<a href=”wtai://wp/mc;%2B19035551212″>903-555-1212</a>
</p>
</card>

7.What is the support of mobile devices for WMLScript?

  • Mobile devices are used to run and showcase the result of the input that is given and written by the use of WMLScript.
  • Mobile devices are supporting XHTML and standards of HTML due to increase in the processing power.
  • The standards of HTML provide a way of formatting and presenting it to the users with suitable options.
  • WMLScript is written such that it provides hardware interfacing with the mobile using the WML.
  • Mobile devices are used for WAP that provides large coverage areas to use the applications and run it on many devices.


8.What is the process of adding the client side logic to WAP using WMLScript?

  • WMLScript is similar to the JavaScript and it provides the same feature as JavaScript.
  • The standardization is being provided using the ECMAScript standard based on WMLScript.
  • WMLScript provides the client only scripting platform on the Internet that is used with the WML
  • It also provides the client side with some procedural logics so that it becomes easier to program and create applications.
  • WMLScript is used with the WAP gateway to provide the logics and implementation of it in the mobile devices.

9.What is the purpose of using WMLScript?

  • WMLScript is given in the binary form that allows the mobile devices to run the applications using the WAP functionality.
  • WMLScript provides the validator that can be used to validate the user input given in the form.
  • WMLScript provides the advanced functioinality to write and read the code with the tools provided by it.
  • It provides the facilities that can be accessed by the user agent and more application can run on the devices.
  • WMLScript is used to create the dialog boxes and messages that can be used locally to check for the error messages.

10.What are the data types used in WMLScript?

WMLScript is a weakly typed language that provides no type checking during the compile time or the run time.

WMLScript uses the data types as follows:

  • Boolean: this is the data type used for the values like true or false and it usually deals in decision making.
  • Integer: this is a data type containing the numerical values
  • Floating-point: this is the data type used to provide the value in decimal points like 1.00, 1 e-10.
  • String: this is the data type that stores the values in the form of characters in a contiguous memory location.
  • Invalid: is the data type that describes the value of a function valid or invalid.

11.What are the different components of WMLScript?

  • WMLScript is also known as Wireless Markup Language Script that is used for the client side.
  • It is a light weight script that runs on wireless devices for some processing and computation.

The components used in WMLScript are as follows:

  • WML Script Operators: they are used to provide the operators to make it work on operands.
  • It includes operators like Arithmetic, comparison, logical, etc. operators to make the writing of the script easier.
  • WMLScript also provide the use of control statements that used to control the sequence and iterations made in the program.

12.What is the function of WMLScript Control Statements?

  • Control statements of WMLScript provide a way to control the sequence of the program.
  • It also manages the iterations information used in the program to write the code more efficiently.

The control statements used in the program are as follows:

  1. Statement: it is the description about the program that helps in executing according to the code written.
  2. if-else: is used for the conditional branching where the decision of one branch over another takes place.
  3. for; this allows self incrementation of the loop over some lines of codes to make it execute.
  4. while: this is used to create a variable that provides iteration loop over the codes of lines.

13.How does WMLScript function written?

  • WMLScript provides functions that are either user defined or inbuilt so that it can be used with the Script.
  • The user defined functions are usually made and declared in different file having the extension as .wmls.

The format of the function is as follows:

function name (parameters)
{
control statements;
return var;
}

This function contains some values in the form of parameters and it is being called by using the filename followed by hash.

14.What are the standard libraries used by WMLScripts?
The standard libraries are used for inbuilt functions and there usage that provides a way to use all that in the programming.

The standard libraries that exist are as follows:

Lang: this is the library that provides the support for different language functions that are related to the WMLScript core language.
> The functions that are used as follows: abs(),abort(), characterSet(),float(), isFloat(), isInt(), etc.

Float: this is the library that allows the built-in functions to perform the floating point operations.
> The functions that are uses as follows: sqrt(), round(), pow(), ceil(), floor(), int(), maxFloat(), minFloat()

String: it is the library that provides the functions for creation and manipulation of strings.
> The functions that are uses as follows: length(), charAt(), find(), replace(), trim(), compare(), format(), etc.

URL: this is the library that is used to provide the URL’s for manipulation and consists of the functions like: getPath(), getReferer(), getHost(), getBase(), escapeString(), isValid(), etc.

WMLBrowser: this consists of the libraries that used to provide the group of functions controlling the data on the browser by using the functions like: go(), prev(), next(), etc.

Dialogs: this is the library consisting of the user interface and related functions like: prompt(), confirm(), alert()

15.What are the types of WMLScript comments?

  • WML Scripts Comments are used to display the information so that it becomes easy to read and know.
  • WMLScript comments allow the users to read in an easy way the information that is written for each line of codes.

There are two types in which the comments can be decided:

– Single-line comment: this provide the single line comment that allow the user to add only one comment per line using backslash at the beginning of the comment and it is written as:

// Hello world is a nice program

– Multi-line comment: this provides a way to add more than one line of information to be written using the /* and */ and it can be extended to as many lines as a user wants. It is written as:

/* Hello world
is a nice program. */
/* Hello world is a nice program. */

16.How does Case sensitivity achieved and white spaces used in WMLScript?

17.What are the designing parameters used in WMLScripts?

18.What is the program structure of WMLScript?

19.What are the different WML Commands used in WMLScript?

20.What is the use of functions in WMLScript?

21.Explain the Flash vs. Animated Images and Java Applets.

WMLScript Questions and Answers Pdf Download

Leave a Reply

Your email address will not be published. Required fields are marked *