CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.




Get it now !!
Send your Resume to 6000 Companies
WMLScript Interview Questions & Answers - Learning Mode
COOLINTERVIEW.COM WEB INTERVIEW QUESTIONS WMLSCRIPT INTERVIEW QUESTIONS QUESTIONS & ANSWERS - LEARNING MODE

WMLScript Interview Questions & Answers - Learning Mode

WMLScript is a procedural programming language and dialect of JavaScript used for WML pages and is part of the Wireless Application Protocol (WAP). WMLScript is a client-side scripting language and is similar to JavaScript. Just like JavaScript WMLScript is used for tasks such as user input validation, generation of error message and other Dialog boxes etc.

Try WMLScript Interview Questions & Answers - Exam Mode

1 2 Next

Sort By : Latest First | Oldest First | By Rating

WMLScript Interview Questions & Answers - Learning Mode
Try WMLScript Interview Questions & Answers - Exam Mode
Question: How we call WMLScript from WML page?



Answer: We clear you WML are not embedded with WML pages.We use WMLScript into the WML pages with their references(WMLScript URLs).
Example:
<?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="no1" title="Go to URL">
<do type="options" label="Go">
<go href="check.wmls#go_url('R4R')"/>//It contains the reference of WMLScript.
</do>
</card>< Source: CoolInterview.com
Question: What data types we used in WMLScript?


Answer: WMLScript is an weakly typed language means that there is no type-checking at compile-time or run-time and we can't declare variable types explicitly.
Below are some data types that are being supported by WML are,

1.Boolean
2.Integer
3.Floating-point
4.String
5.Invalid
Because WMLScript are not an object oriented(Like: java,C++) scripting language.So, WMLScript doesn't give facility to create own data types.
In WMLScript doesn't need to specify the types Source: CoolInterview.com
Question: How to use WMLScript WMLBrowser library?

Answer: WMLBrowser library has functions that are use to access browser variable.WMLBrowser library functions are,
1.getCurrentCard()
Using this we can return URL of current card.
2.getVar()
Use to return the values of variable.
3.go()
Use for goes to new card.
4.newContext()
Use to clear all variables.
5.prev()
Use for goes to the previous card.
6.refresh()
Use to refresh the current card.
7.setvar()
Use to set the values of Source: CoolInterview.com
Question: What is WMLScript standard libraries?

Answer: We can't create new objects in WMLScript because WMLScript doesn't support object oriented programming.So,WMLScript provide us six pre-defined libraries to handle many comman tasks these are,
1.Lang:
This library functions are usefor data type manipulation,absolute value calculations and random number generation.
2.Float:
This provide us some typical functions are sqrt(),find(),replace() and trim() function.
3.String:
This provide us library functi Source: CoolInterview.com
Question: What data types we used in WMLScript?


Answer: WMLScript is an weakly typed language means that there is no type-checking at compile-time or run-time and we can't declare variable types explicitly .
I have given you some data types that are being supported by WML are,

1.Boolean
2.Integer
3.Floating-point
4.String
5.Invalid
Because WMLScript are not an object oriented(Like: java,C++) scripting language.So, WMLScript doesn't give facility to create own data types.
In WMLScript doesn't need to specify Source: CoolInterview.com
Question: What is WML function?

Answer: We can executed WMLScript Statements together as a unit are called as functions.Below I have declare a function using WMLScript.

extern function identifier(FormatParameterList)
Block ;

extern keyword is optional and used to specify the function which can be called from outside a current compilation unit in which that function is been defined.
We can declare a function in WMLScript like that,
function RunTime(d, s)
{
var t = d / s;
return t;
};
Where, t,d a Source: CoolInterview.com
Question: What is WMLScript?

Answer: WMLScript is a subset of the JavaScript scripting language designed as part of the WAP standard to provide a convenient mechanism to access mobile phone's peripheral functions. Source: CoolInterview.com
Question: What is WMLScript dialogs library?


Answer: Dialogs library has functios that we use to display alert messages.WMLScript dialogs library functions are,
1.alert()
Use to display a message and wait for conformation.
2.conferm()
Use to display a message and wait for answer.
3.promt()
Use to display a question and wait for input. Source: CoolInterview.com
Question: Explain explain WMLScript Syntax?

Answer: WMlScript are based on ECMAscript programming language.Some important points about WMLScript: 1.Statement is the smallest unit of the execution in WMLScript and each statement should end with the semicolon (;).
2.WMLScript is an case-sensitive scripting language.
3.Comments use in WmlScript are either be single-line (beginning with "//") or can be multi-line (bracketed by" /*
"and "*/").4.We can defined literal character string by any sequence of zero's or using more characters enc Source: CoolInterview.com
Question: How to explain WMLScript Syntax?


Answer: WMlScript are based on ECMAscript programming language.You keep some point when you work with WMLScript.1.Statement is the smallest unit of the execution in WMLScript and each statement should end with the semicolon (;).2.WMLScript is an case-sensitive scripting language.3.Comments use in WmlScript are either be single-line (beginning with "//") or can be multi-line (bracketed by" /*
"and "*/").4.We can defined literal character string by any sequence of zero's or using more characters e Source: CoolInterview.com
Question: What is WMLScript dialogs library?


Answer: Dialogs library has functios that we use to display alert messages.WMLScript dialogs library functions are,
1.alert()
Use to display a message and wait for conformation.
2.conferm()
Use to display a message and wait for answer.
3.promt()
Use to display a question and wait for input. Source: CoolInterview.com
Question: What is WML?


Answer: WML is stands for Wireless Markup Language.This is inserted from HTML,but WML is strickly based on XML than HTML.Using WML we can create pages to display on WAP browser.We called pages in WML as decks and decks are used to construct set of cards. Source: CoolInterview.com
Question: How WMLScript is differ from JavaScript?

Answer: Syntactically we can say that WMLScript and JavaScript are same.But also have differences in use.
Some main differences b/w WMLScript and JavaScript are given below:
1.We can embedded JavaScript in the HTML markup, whereas WMLScript is always placed in a file. Which separated from the WML markup.
2.WMLScript are light weighter than JavaScript.

Source: CoolInterview.com
Question: What is the WML Operators?


Answer: WMLScript are supported many operators.But is not supported some operator like: value assignment operations,airthmetic operations,logical operations,
string operations,comparison operation and array operations. Source: CoolInterview.com
Question: Define purpose of using WMLScript?


Answer: Some main purpose of using WMLScript are given below:
1.Using WMLScript we can validate user input.
2.Using WMLScript we can access the facilities of user agent.
3.WMLScript is used to create message boxes and dialog boxes locally,to show error messages and confirmations faster. Source: CoolInterview.com
Question: How to validate a user input using WMLScript?

Answer: I will explain you to validate a user input by using WMLScript.
Example I have given below, used to create an simple WML card. For that ask user to input your SSN(social security number).SSN is an identification number used by U.S.Social Security Administration.
We use WMLScript to verify whether the user?s input is formatted correctly. Following this verification, we will alert the user by the WMLScript to let them know whether their number was been accepted or not.
In this exampl Source: CoolInterview.com
Question: How to use WMLScript WMLBrowser library?

Answer: WMLBrowser library has functions that are use to access browser variable. WMLBrowser library functions are,
1.getCurrentCard()
Using this we can return URL of current card.
2.getVar()
Use to return the values of variable.
3.go()
Use for goes to new card.
4.newContext()
Use to clear all variables.
5.prev()
Use for goes to the previous card.
6.refresh()
Use to refresh the current card.
7.setvar()
Use to set the values of Source: CoolInterview.com
Question: What is WMLScript standard libraries?

Answer: We can't create new objects in WMLScript because WMLScript doesn't support object oriented programming.So,WMLScript provide us six pre-defined libraries to handle many comman tasks these are,
1.Lang:
This library functions are usefor data type manipulation,absolute value calculations and random number generation.
2.Float:
This provide us some typical functions are sqrt(),find(),replace() and trim() function.
3.String:
This provide us library functi Source: CoolInterview.com
Question: Which flow control statements we used in WMLScript?


Answer: Those Flow Control statements and Operators used in JavaScript are also Supported by WMLScript.
Example:
1.if Statement
if (i == j)
{
i = i * 5.12;
}
else
{
i = 0;
}

2.for Statement
for (var i = 1; i < 200; i ++)
{
var v = i * 2.56;
somefunction(v);
};

3.while Statement
var i=30;
var j=0;
while (i > j)
{
i--;
};

4.continue Statement
for (var i = -100; i < 100; i ++)
{
if (i == 0) continue;
Source: CoolInterview.com
Question: How is WMLScript is differ from JavaScript?

Answer: Syntactically we can say that WMLScript and JavaScript are same.But also have differences in use.
Some main differences b/w WMLScript and JavaScript are given below:
1.We can embedded JavaScript in the HTML markup, whereas WMLScript is always placed in a file. Which separated from the WML markup.
2.WMLScript are light weighter than JavaScript.
Source: CoolInterview.com

1 2 Next



India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.015625 Seconds