What kinds of testing should be considered?

What kinds of testing should be considered?

‘Black box testing – not based on any knowledge of internal design or code. Tests are based on requirements and functionality’.
‘White box testing – based on knowledge of the internal logic of an application’s code. Tests are based on coverage of code statements, branches, paths, conditions’.
‘ unit testing – [...]

What is ‘configuration management’?

What is ‘configuration management’?
Configuration management covers the processes used to control, coordinate, and track: code, requirements, documentation, problems, change requests, designs, tools/compilers/libraries/patches, changes made to them, and who makes the changes. (See the ‘Tools’ section for web resources with listings of configuration management tools. Also see the Bookstore section’s ‘Configuration Management’ category for useful books [...]

What file would you edit in your home directory to change which window manager you want to use?

What file would you edit in your home directory to change which window manager you want to use?
A) Xinit
B) .xinitrc
C) XF86Setup
D) xstart
E) xf86init

Answer: B – The ~/.xinitrc file allows you to set which window man-ager you want to use when logging in to X from that account.
Answers a, d, and e are all invalid files. [...]

How to getting values from cookies to set widgets? ,How to change style on an element?

How to getting values from cookies to set widgets?

function getCookieData(labelName) {
//from Danny Goodman
var labelLen = labelName.length;
// read cookie property only once for speed
var cookieData = document.cookie;
var cLen = cookieData.length;
var i = 0;
var cEnd;
while (i < cLen) {
var j = i + labelLen;
if (cookieData.substring(i,j) == labelName) {
cEnd = cookieData.indexOf(";",j);
if (cEnd == -1) {
cEnd = cookieData.length;
}
return unescape(cookieData.substring(j+1, [...]

How to reload the current page ? ,how to force a page to go to another page using JavaScript ?

How to reload the current page ?
window.location.reload(true);
how to force a page to go to another page using JavaScript ?

How to convert a string to a number using JavaScript?
You can use the parseInt() and parseFloat() methods. Notice that extra letters following a valid number are ignored, which is kinda wierd but convenient at times.
parseInt(”100″) ==> 100
parseFloat(”98.6″) [...]

eval()? , What does break and continue statements do?

eval()?
The eval() method is incredibly powerful allowing you to execute snippets of code during execution.

<script type="text/javascript">
var USA_Texas_Austin = "521,289";
document.write("Population is "+eval("USA_"+"Texas_"+"Austin"));
</script>

This produces
Population is 521,289
What does break and continue statements do?
Continue statement continues the current loop (if label not specified) in a new iteration whereas break statement exits the current loop.
How to create a function using [...]

How to Handle Event Handlers? , How to remove the event listener: ?

How to Handle Event Handlers?

You can add an event handler in the HTML definition of the element like this,

<script type="text/javascript"><!–
function hitme() {
alert("I’ve been hit!");
}
// –>
</script>

<input type="button" id="hitme" name="hitme" value="hit me" onclick="hitme()"

Or, interestingly enough you can just assign the event’s name on the object directly with a reference to the method you want to assign.

<input type="button" [...]

What does undefined value mean in javascript? ,What is the difference between undefined value and null value?

What does undefined value mean in javascript?
Undefined value means the variable used in the code doesn’t exist or is not assigned any value or the property doesn’t exist.
What is the difference between undefined value and null value?
(i)Undefined value cannot be explicitly stated that is there is no keyword called undefined whereas null value has keyword [...]

To put a “close window” link on a page ? ,How to hide javascript code from old browsers that dont run it?

To put a “close window” link on a page ?

<a href=’javascript:window.close()’ class=’mainnav’> Close </a>

How to hide javascript code from old browsers that dont run it?

Use the below specified style of comments

<script language=javascript> <!– javascript code goes here // –> or Use the <NOSCRIPT>some html code </NOSCRIPT>

tags and code the display html statements between these [...]

What Web sites do you feel use JavaScript most effectively (i.e., best-in-class examples)? The worst?

What Web sites do you feel use JavaScript most effectively (i.e., best-in-class examples)? The worst?

The best sites are the ones that use JavaScript so transparently, that I’m not aware that there is any scripting on the page. The worst sites are those that try to impress me with how much scripting is on the page.
How [...]