996). Which program code doesn’t need preprocessing before being run?
[A]Text
[B]Script
[C]Both Text and Script
[D]Comment
Show Answer
Correct Answer: Script
Notes:
Answer: b
Explanation: A scripting or script language is a programming language for a special run-time environment that automates the execution of tasks. A script is program code that doesn’t need pre-processing (e.g. compiling) before being run.
997). What is the significance of scripting?
[A]Convenient
[B]Dynamic
[C]Reachable
[D]Modular
Show Answer
Correct Answer: Dynamic
Notes:
Answer: b
Explanation: Scripting languages are often interpreted (rather than compiled). Scripting makes Web pages more dynamic) For example, without reloading a new version of a page it may allow modifications to the content of that page, or allow content to be added to or sent from that page. The former has been called DHTML (Dynamic HTML), and the latter AJAX (Asynchronous JavaScript and XML).
998). What is the purpose of XMLHttpRequest?
[A]Multiple loading
[B]Load content by loading new document
[C]Load content without loading new document
[D]Repetitive loading
Show Answer
Correct Answer: Load content without loading new document
Notes:
Answer: c
Explanation: The XMLHttpRequest object can be used to request data from a web server. XMLHttpRequest makes it possible to load additional content from the Web without loading a new document, a core component of AJAX.
999). Which API makes the user’s current location available to browser-based application?
[A] Java API
[B]SDL API
[C]Object API
[D]Geolocation API
Show Answer
Correct Answer: Geolocation API
Notes:
Answer: d
Explanation: The Geolocation API allows the user to provide their location to web applications if they so desire. For privacy reasons, the user is asked for permission to report location information.
1000). Which of the following ensures additional interactivity mechanism?
[A]WAI ARIA
[B] Geolocation API
[C] Object API
[D] SDL API
Show Answer
Correct Answer: WAI ARIA
Notes:
Answer: a
Explanation: Web Accessibility Initiative – Accessible Rich Internet Applications (WAI-ARIA) is a technical specification published by the World Wide Web Consortium (W3C) that specifies how to increase the accessibility of web pages, in particular, dynamic content, and user interface components developed with Ajax, HTML, JavaScript, and related technologies. WAI ARIA offers mechanisms to ensure that this additional interactivity remains usable independent of devices and disabilities.
1001). What is the necessity to have API?
[A]Guide to performing activities
[B]Describe particular task
[C]Both performing activities and Describe particular task
[D]Rearrangement of tasks
Show Answer
Correct Answer: Describe particular task
Notes:
Answer: b
Explanation: In computer programming, an application programming interface is a set of subroutine definitions, communication protocols, and tools for building software. An API may describe the ways in which a particular task is performed.
1002). What is the purpose of the event onAirEvent?
[A]Content is played
[B]Content is transferred
[C]Both Content is played and transferred
[D]Content is changed
Show Answer
Correct Answer: Content is played
Notes:
Answer: a
Explanation: The event onAirEvent is fired when the player starts playing content being broadcasted on the channel. The method is called at the time of the creation of adspace.
1003). What is the purpose of the event disconnectionEvent?
[A]Player demands for disconnection
[B]Player disconnects from the channel
[C]There is no user interaction
[D]Player demands for reconnection
Show Answer
Correct Answer: Player disconnects from the channel
Notes:
Answer: b
Explanation: navigator.onLine is a property that maintains a true/false value (true for online, false for offline). This property is updated whenever the user switches into “Offline Mode”. The event disconnectionEvent is fired when the player disconnects from the channel, whether a result of user interaction or not.
1004). When does one use the event ready?
[A]Before loading
[B]During loading
[C]After loading
[D]During reloading
Show Answer
Correct Answer: After loading
Notes:
Answer: c
Explanation: The ready event occurs when the DOM (document object model) has been loaded. It is safe to interact with it after this event fired.
1005). When does one use the method startOverlays()?
[A]Edit ad request
[B]Delete ad request
[C]Create ad request
[D]Modify ad request
Show Answer
Correct Answer: Create ad request
Notes:
Answer: c
Explanation: A new ad request is made every time when the method startOverlays() gets called. It is used at the time of creation of the ad.