346). The libraries that build a new higher-level API for client-side programming is ____________
[A]Library
[B]Framework
[C]APIs
[D]Script
Show Answer
Correct Answer: Framework
Notes:
Answer: b
Explanation: Many web developers find it useful to build their web applications on top of a client side framework library. These libraries are “frameworks” in the sense that they build a new higher-level API for client-side programming on top of the standard and proprietary APIs offered by web browsers: once you adopt a framework, your code needs to be written to use the APIs defined by that framework.
347). Which of the following is not a framework?
[A]jQuery
[B].NET
[C]JavaScript
[D]Cocoa
Show Answer
Correct Answer: JavaScript
Notes:
Answer: c
Explanation: One of the most popular frameworks is jQuery which is used in web development. Here, JavaScript is a scripting language and not a framework.
348). Which of the following frameworks focuses on DOM and Ajax utilities?
[A]jQuery
[B]Prototype
[C]Dojo
[D]Both jQuery and Prototype
Show Answer
Correct Answer: Both jQuery and Prototype
Notes:
Answer: d
Explanation: DOM stands for data object modulation. The Prototype library focuses on DOM and Ajax utilities like jQuery does, and adds quite a few core-language utilities as well.
349). What is the purpose of the Dojo framework?
[A] Focuses on DOM and Ajax utilities
[B] Advertises incredible depth
[C]Ajax utilities
[D]Modular
Show Answer
Correct Answer: Advertises incredible depth
Notes:
Answer: b
Explanation: The Dojo toolkit is an open-source modular toolkit containing a JavaScript library that is designed for rapidly creating JavaScript/Ajax-based websites and cross-platform applications. Dojo is a large framework that advertises its “incredible depth.” It includes an extensive set of UI widgets, a package system, a data abstraction layer, and more.
350). Which is the in-house library of Yahoo!?
[A]Dojo
[B]YUI
[C]Prototype
[D]Closure
Show Answer
Correct Answer: YUI
Notes:
Answer: b
Explanation: YUI is the in-house library of Yahoo!, and it is used on their home page. The Yahoo User Interface Library is a discontinued open-source JavaScript library for building richly interactive web applications using techniques such as Ajax, DHTML, and DOM scripting.
351). What does Dojo and YUI have in common?
[A]Facilitates DOM utilities and UI Widgets
[B]Does not facilitates DOM utilities and UI Widgets
[C]Client-side library
[D]Server-side library
Show Answer
Correct Answer: Facilitates DOM utilities and UI Widgets
Notes:
Answer: a
Explanation: Like Dojo, it is a large, all-encompassing library with language utilities, DOM utilities, UI widgets, and so on. There are actually two incompatible versions of YUI, known as YUI 2 and YUI 3.
352). What are the two incompatible versions of YUI?
[A]YUI1 and YUI2
[B] YUI2 and YUI4
[C]YUI1 and YUI3
[D]YUI2 and YUI3
Show Answer
Correct Answer: YUI1 and YUI2
Notes:
Answer: a
Explanation: YUI stands for yahoo user interface. Like Dojo, it is a large, all-encompassing library with language utilities, DOM utilities, UI widgets, and so on. There are actually two incompatible versions of YUI, known as YUI 2 and YUI 3.
353). Which of the following framework was used by Google for Gmail?
[A]Dojo
[B]GWT
[C]Closure
[D]YUI
Show Answer
Correct Answer: Closure
Notes:
Answer: c
Explanation: The Closure library is the client-side library that Google uses for Gmail, Google Docs, and other web applications. This library is intended to be used with the Closure compiler, which strips out unused library functions.
354). Which of the following is a web application API framework?
[A]Dojo
[B]YUI
[C]GWT
[D]jQuery
Show Answer
Correct Answer: GWT
Notes:
Answer: c
Explanation: GWT, the Google Web Toolkit defines a web application API in Java and provides a compiler to translate your Java programs into compatible client-side JavaScript whereas Google Closure Tools is a set of tools to help developers build rich web applications with JavaScript.
355). Which is more widely used than GWT in Google?
[A]Closure
[B]Dojo
[C]Procedure
[D]jQuery
Show Answer
Correct Answer: Closure
Notes:
Answer: a
Explanation: Google Closure Tools is a set of tools to help developers build rich web applications with JavaScript. GWT is used in some of Google’s products, but it is not as widely used as their Closure library.