637). Firebug is an extension of which browser?
[A]Mozilla
[B]Chrome
[C]IE
[D]Opera
Show Answer
Correct Answer: Mozilla
Notes:
Answer: a
Explanation: Firebug is a discontinued free and open-source web browser extension for Mozilla Firefox that facilitated the live debugging, editing, and monitoring of any website’s CSS, HTML, DOM, XHR, and JavaScript.
638). Firebug can be used to inspect ___________
[A]HTML
[B]CSS
[C]DOM
[D]All of the mentioned
Show Answer
Correct Answer: All of the mentioned
Notes:
Answer: d
Explanation: Firebug is an extension for the Mozilla Firefox browser that allows you to debug and inspect HTML, CSS, the Document Object Model (DOM) and JavaScript. In addition to debugging web pages, Firebug was used for web security testing and web page performance analysis.
639). Why do Web Developers use Firebug?
[A]Track cookies
[B]Track sessions
[C]Both Track cookies and sessions
[D]Track data
Show Answer
Correct Answer: Both Track cookies and sessions
Notes:
Answer: c
Explanation: Web developers use Firebug for the following reasons:
Inspect the behavior of HTML/CSS, and modify style & layout with true WYSIWYG
Debug JavaScript
Detect performance of website
Track Cookies & Sessions
Web security analysis
640). What are the goals for using Firebug?
[A]Performance
[B]Adaptability
[C]Complexity
[D]Reliability
Show Answer
Correct Answer: Performance
Notes:
Answer: a
Explanation: The goals for using Firebug is:
Performance
Modularity
Shared code
Compatibility
Web security analysis
641). Which of the following is not a feature of the User Interface?
[A]Skinnable Interface
[B]Resizable Side Panel
[C]Fixed Side Panel
[D] Menu options
Show Answer
Correct Answer: Fixed Side Panel
Notes:
Answer: c
Explanation: The features present in the User Interface are:
Port of Firebug’s Visual Object Representation (aka Reps)
Recreation of Firebug 1.3 User Interface with pixel precision
Menu options
Resizable Side Panel
Skinnable Interface
642). What is the default value of the property overrideConsole?
[A]1
[B]true
[C]0
[D]False
Show Answer
Correct Answer: true
Notes:
Answer: b
Explanation: The default value of the property overrideConsole is true.
643). Which of the following property(s) has a default value as false?
[A]disableWhenFirebugActive
[B]showIconWhenHidden
[C]disableXHRListener
[D]both disableWhenFirebugActive & showIconWhenHidden
Show Answer
Correct Answer: disableXHRListener
Notes:
Answer: c
Explanation: Only disableXHRListener property has a default value false. The properties disableWhenFirebugActive and showIconWhenHidden has a default value of true.
644). Which of the following action is possible in Firebug when used as a JavaScript Debugger and Profiler?
[A]Pause execution in any line
[B]Find Scripts easily
[C] Find Scripts easily & also Pause execution in any line
[D]Find text easily
Show Answer
Correct Answer: Find Scripts easily & also Pause execution in any line
Notes:
Answer: c
Explanation: When Firebug is used as a JavaScript Debugger and Profiler, it can be used to find scripts easily and also pause the execution in any desired line. Thus it helps in debugging javascript much easier.
645). What will be the output or type of error if p is not defined in the following JavaScript code?
console.log(p)
[A]Zero
[B]Null
[C]ReferenceError
[D]ValueNotFoundError
Show Answer
Correct Answer: ReferenceError
Notes:
Answer: c
Explanation: The above code snippet, p is not defined. Hence, it gives a ReferenceError.
646). The let keyword can be used ___________
console.log(p)
[A]in a for or for/in loop, as a substitute for var
[B]as a block statement, to define new variables
[C]to define variables that are scoped to a single expression
[D] all of the mentioned
Show Answer
Correct Answer: all of the mentioned
Notes:
Answer: d
Explanation: The let keyword can be used in four ways:
as a variable declaration like var;
in a for or for/in loop, as a substitute for var;
as a block statement, to define new variables and explicitly delimit their scope; and
to define variables that are scoped to a single expression.