Answer:
Prototype is a framework that provides a simple API for performing web tasks.
Explanation:
Prototype is a JavaScript framework that aims to ease up the development of dynamic web applications. It basically take out the complexity out of the client-side programming.
Following are some salient features of Prototype:
1) Applies useful methods to extend DOM elements and built-in types.
2) Provides advance support for Event Management.
3) Provides powerful Ajax feature.
4) Built-in support for class-style OOP.
5) Not a complete application development framework
Answer:
A and B have different output:
A output will be 1
B output will be 123
Explanation:
A
X = 0
do x < 3
x = x+1
print x
while
B
X = 0
do x = x+ 1
print x
while x < 3
For statement A the condition statement which suppose to be after "while" is not set therefore the value of x will be printed.
For statement B the condition statement is set "x < 3" in front of "while" thereby result in iteration until the condition is false.
Statement A output will be 1
Statement B output will be 123
Answer:
B. n-1
Explanation:
If there are n vertices then that vertex can be origin of at most n-1 edges.Suppose that you have a graph with 8 vertices you can select a vertex from these 8 vertices now you have 7 other vertices.So the vertex you selected can have at most 7 edges or it can be origin of at most 7 edges.So we conclude that the answer is n-1.