শনিবার, ২৬ নভেম্বর, ২০১৬

Javascript Test 2016 – Upwork Test Answers

Upwork Javascript Test 2016

88 Answered Test Questions:
1. Which of the following is true about setTimeOut()?
Answers:
a. The statement(s) it executes run(s) only once.
a. It pauses the script in which it is called.
a. clearTimeOut() won’t stop its execution.
a. The delay is measured in hundredths of a second.
a. It is required in every JavaScript function.
2. How can the operating system of the client machine be detected?
Answers:
a. It is not possible using JavaScript.
a. Using the navigator object
a. Using the window object
a. Using the document object
a. None of these.
3. Which of the following prints “AbBc”?
Answers:
a. var b = ‘a’; var result = b.toUpperCase() + ‘b’ + ‘b’.toUpperCase() +’C'[‘toLowerCase’](); alert(result);
a. var b = ‘a’; var result = b.toUpperCase() + ‘b’ + ‘b’.toUpperCase() +’c'[‘toUpperCase’](); alert(result);
a. var b = ‘a’; var result = b.toUpperCase() + b + ‘b’.toUpperCase() +’C'[‘toLowerCase’](); alert(result);
a. var b = ‘a’; var result = b.toUpperCase() + ‘b’ + ‘b’.toUpperCase() +C; alert(result);
4. Which of the following descriptions is true for the code below?
var object0 = {};
Object.defineProperty(object0, “prop0”, { value : 1, enumerable:false, configurable : true });
Object.defineProperty(object0, “prop1”, { value : 2, enumerable:true, configurable : false });
Object.defineProperty(object0, “prop2”, { value : 3 });
object0.prop3 = 4;
Answers:
a. Object ‘object0’ contains 4 properties. Property ‘prop2’ and property ‘prop3’ are available in the for…in loop. Property ‘prop0’ and property ‘prop1’ are available to delete.
a. Object ‘object0’ contains 4 properties. Property ‘prop1’ and property ‘prop2’ are available in the for…in loop. Property ‘prop2’ and property ‘prop3’ are available to delete.
a. Object ‘object0’ contains 4 properties. Property ‘prop0’ and property ‘prop2’ are available in the for…in loop. Property ‘prop0’ and property ‘prop2’ are available to delete.
a. Object ‘object0’ contains 4 properties. Property ‘prop1’ and property ‘prop3’ are available in the for…in loop. Property ‘prop0’ and property ‘prop3’ are available to delete.
5. Performance-wise, which is the fastest way of repeating a string in JavaScript?
Answers:
a. String.prototype.repeat = function( num ) { return new Array( num + 1 ).join( this ); }
a. function repeat(pattern, count) { if (count < 1) return ”; var result = ”; while (count > 0) { if (count & 1) result += pattern; count >>= 1, pattern += pattern; } return result; }
a. String.prototype.repeat = function(count) { if (count < 1) return ”; var result = ”, pattern = this.valueOf(); while (count > 0) { if (count & 1) result += pattern; count >>= 1, pattern += pattern; } return result; };
a. String.prototype.repeat = function (n, d) { return –n ? this + (d || ”) + this.repeat(n, d) : ” + this };
6. Consider the following variable declarations:
var a=”adam”
var b=”eve”
Which of the following would return the sentence “adam and eve”?
Answers:
a. a.concatinate(“and”, b)
a. a.concat(“and”, b)
a. a.concatinate(” and “, b)
a. a.concat(” and “, b)
7. Which of the following code snippets will correctly split “str”?
Answers:
a.
a.
a.
a.
8. Which object can be used to ascertain the protocol of the current URL?
Answers:
a. document
a. window
a. history
a. browser
a. form
a. location
9. Which of the following best describes a “for” loop?
Answers:
a. “for” loop consists of six optional expressions, enclosed in parentheses and separated by semicolons, followed by a statement executed in the loop.
a. “for” loop consists of five optional expressions, enclosed in parentheses and separated by semicolons, followed by a statement executed in the loop.
a. “for” loop consists of four optional expressions, enclosed in parentheses and separated by semicolons, followed by a statement executed in the loop.
a. “for” loop consists of three optional expressions, enclosed in parentheses and separated by semicolons, followed by a statement executed in the loop.
10. Which of the following descriptions best describes the code below?

Answers:
a. Object is frozen, a property named “price” is added in the variable1 object, a property named “length” is deleted from this object. At the end of the code, the object “variable1” contains 2 properties.
a. Object is frozen, a property named “price” is not added in the variable1 object, a property named “length” is deleted from this object. At the end of the code, object “variable1” contains 1 properties.
a. Object is frozen, a property named “price” is added in the variable1 object, a property named “length” is not deleted from this object. At the end of the code, object “variable1” contains 1 properties.
a. Object is frozen, a property named “price” is not added in the variable1 object, a property named “length” is not deleted from this object. At the end of the code, object “variable1” contains 2 properties.
11. Which of the following is not a valid HTML event?
Answers:
a. ondblclick
a. onmousemove
a. onclick
a. onblink
12. Analyze the following code snippet which uses a Javascript Regular Expression character set. What will be the output of this code?

s
Answers:
a. I
a. Is
a. s
a. I,s,
13. Consider the following image definition:

Which of the following will change the image to companylogo2.gif when the page loads?
Answers:
a. logo.source=”companylogo2.gif”
a. logo.source=”companylogo1.gif”
a. document.getElementById(‘logo’).src=”companylogo1.gif”
a. document.getElementById(‘logo’).src=”companylogo2.gif”
14. What is the final value of the variable bar in the following code?
var foo = 9;
bar = 5;
(function() {
var foo = 2;
bar= 1;
}())
bar = bar + foo;
Answers:
a. 10
a. 14
a. 3
a. 7
15. Which of the following are JavaScript unit testing tools?
Answers:
a. Buster.js, jQuery, YUI Yeti
a. QUnit, Modernizr, JsTestDriver
a. Node.js, Modernizr, Jasmine
a. Buster.js, YUI Yeti, Jasmine
16. Which of the following can be used for disabling the right click event in Internet Explorer?
Answers:
a. event.button == 2
a. event.button == 4
a. event.click == 2
a. event.click == 4
17. An image tag is defined as follows:

The purpose of the ImageChange() function is to change the image source to Image2.jpg. Which of the following should the ImageChange() function look like?
Answers:
a. document.getElementById(‘ERImage’).src=”Image1.jpg”
a. document.getElementById(‘ERImage’).src=”Image2.jpg”
a. document.getElementById(‘ERImage’).style.src=”Image1.jpg”
a. document.getElementById(‘ERImage’).style.src=”Image2.jpg”
18. Consider the following JavaScript alert:

Which of the following will run the function when a user opens the page?
Answers:
a. body onload=”message()”
a. body onunload=”message()”
a. body onsubmit=”message()”
a. body onreset=”message()”
19. Which of the following code snippets will correctly get the length of an object?
Answers:
a.
a.
a.
a.
20. Which of the following Array methods in JavaScript runs a function on every item in the Array and collects the result from previous calls, but in reverse?
Answers:
a. reduce()
a. reduceRight()
a. reverse()
a. pop()
21. In an HTML page, the form tag is defined as follows:
The validate() function is intended to prevent the form from being submitted if the name field in the form is empty. What should the validate() function look like?
Answers:
a.
a.a. script type=”text/javascript”> function Validate() { if(document.forms[0].name== “”) return false; else return true; }
a.
22. Which of the following code snippets changes an image on the page?
Answers:
a. var img = document.getElementById(“imageId”); img.src = “newImage.gif”;
a. var img = document.getElementById(“imageId”); img.style.src = “newImage.gif”;
a. var img = document.getElementById(“imageId”); img.src.value = “newImage.gif”;
a. var img = document.getElementById(“imageId”); img = “newImage.gif”;
23. Which of the following results is returned by the JavaScript operator “typeof” for the keyword “null”?
Answers:
a. function
a. object
a. string
a. number
24. What will be the final value of the variable “apt”?
var apt=2;
apt=apt<<2;
Answers:
a. 2
a. 4
a. 6
a. 8
a. 16
25. How can a JavaScript object be printed?
Answers:
a. console.log(obj)
a. console.print(obj)
a. console.echo(obj);
a. None of these
26. Which of the following is the correct syntax for using the JavaScript exec() object method?
Answers:
a. RegExpObject.exec()
a. RegExpObject.exec(string)
a. RegExpObject.exec(parameter1,parameter2)
a. None of these
27. Having an array object var arr = new Array(), what is the best way to add a new item to the end of an array?
Answers:
a. arr.push(“New Item”)
a. arr[arr.length] = “New Item”
a. arr.unshift(“New Item”)
a. arr.append(“New Item”)
28. Consider the following JavaScript validation function:
function ValidateField()
{
if(document.forms[0].txtId.value ==””)
{return false;}
return true;
}
Which of the following options will call the function as soon as the user leaves the field?
Answers:
a. input name=txtId type=”text” onreset=”return ValidateField()”
a. input name=txtId type=”text” onfocus=”return ValidateField()”
a. input name=txtId type=”text” onsubmit=”return ValidateField()”
a. input name=txtId type=”text” onblur=”return ValidateField()”
29. Which of following uses the “with” statement in JavaScript correctly?
Answers:
a. with (document.getElementById(“blah”).style) { background = “black”; color = “blue”; border = “1px solid green”; }
a. with document.getElementById(“blah”).style background = “black”; color = “blue”; border = “1px solid green”; End With
a. With document.getElementByName(“blah”).style background = “black”; color = “blue”; border = “1px solid green”; End With
a. with (document.getElementById(“blah”).style) { .background = “black”; .color = “blue”; .border = “1px solid green”; }
30. Consider the following JavaScript validation function:

Which of the following options will call the function as soon as the user leaves the field?
Answers:
a. input name=txtId type=”text” onreset=”return ValidateField()”
a. input name=txtId type=”text” onfocus=”return ValidateField()”
a. input name=txtId type=”text” onsubmit=”return ValidateField()”
a. input name=txtId type=”text” onblur=”return ValidateField()”
31. Which of the following modifiers must be set if the JavaScript lastIndex object property was used during pattern matching?
Answers:
a. i
a. m
a. g
a. s
32. Consider the following image definition:

Which of the following will change the image to “companylogo2.gif” when the page loads?
Answers:
a. logo.source=”companylogo2.gif”
a. logo.source=”companylogo1.gif”
a. document.getElementById(‘logo’).src=”companylogo1.gif”
a. document.getElementById(‘logo’).src=”companylogo2.gif”
33. Which of the following will check whether the variable vRast exists or not?
Answers:
a. if (typeof vRast=”undefined”) {}
a. if (typeof vRast ==”undefined”) {}
a. if (vRast.defined =true) {}
a. if (vRast.defined ==true) {}
34. What would be the use of the following code?
function validate(field) {
var valid=”ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz”;
var ok=”yes”;
var temp;
for(var i=0;i<field.value.length;i++) {
temp=”” + field.value.substring(i,i+1)
if(valid.indexOf(temp)==”-1”) {
ok=”no”;
}
}
if(ok==”no”) {
alert(”error”);
field.focus();
}
}
Answers:
a. It will force a user to enter only numeric values.
a. It will force a user to enter only alphanumeric values.
a. It will force a user to enter only English alphabet character values.
a. None of these.
35. An image tag is defined as follows:

The purpose of the ImageChange() function is to change the image source to “Image2.jpg”. Which of the following should the ImageChange() function look like?
Answers:
a. document.getElementById(‘ERImage’).src=”Image1.jpg”
a. document.getElementById(‘ERImage’).src=”Image2.jpg”
a. document.getElementById(‘ERImage’).style.src=”Image1.jpg”
a. document.getElementById(‘ERImage’).style.src=”Image2.jpg”
36. Which of the following choices will detect if “variableName” declares a function?

Answers:
a. return variableName;
a. nameof variableName;
a. isFunction variableName;
a. typeof variableName;
37. Which of the following choices will change the source of the image to “image2.gif” when a user clicks on the image?
Answers:
a. img id=”imageID” src=”image1.gif” width=”50″ height=”60″ onmousedown=”changeimg(image1.gif)” onmouseup=”changeimg(image2.gif)”
a. img id=”imageID” src=”image1.gif” width=”50″ height=”60″ onmouseclick=”changeimg(image2.gif)” onmouseup=”changeimg(image1.gif)”
a. img id=”imageID” src=”image2.gif” width=”50″ height=”60″ onmousedown=”changeimg(image1.gif)” onmouseup=”changeimg(image2.gif)”
a. img id=”imageID” src=”image2.gif” width=”50″ height=”60″ onmousedown=”changeimg(image2.gif)” onmouseup=”changeimg(image1.gif)”
a. img id=”imageID” src=”image1.gif” width=”50″ height=”60″ onmousedown=”changeimg(‘image2.gif’)” onmouseup=”changeimg(‘image1.gif’)”
38. How can created cookies be deleted using JavaScript?
Answers:
a. They can’t be deleted. They are valid until they expire.
a. Overwrite with an expiry date in the past
a. Use escape() on the value of the path attribute
a. Use unescape() on the value of the path attribute
a. The cookie file will have to be removed from the client machine.
a. Wait till the expiry date is reached
39. What would be the value of ‘ind’ after execution of the following code?
var msg=”Welcome to ExpertRating”
var ind= msg.substr(3, 3)
Answers:
a. lco
a. com
a. ome
a. Welcome
40. Are the two statements below interchangeable?
object.property
object[”property”]
Answers:
a. Yes
a. No
41. Which of the following is not a valid method in generator-iterator objects in JavaScript?
Answers:
a. send()
a. throw()
a. next()
a. stop()
42. Which of the following code snippets will return all HTTP headers?
Answers:
a. var req = new XMLHttpRequest(); req.open(‘GET’, document.location, false); req.send(null); var headers = req.getAllResponseHeaders().toLowerCase(); alert(headers);
a. var req = new XMLHttpAccess(); req.open(‘GET’, document.location, false); req.send(null); var headers = req.getAllResponseHeaders().toLowerCase(); alert(headers);
a. var req = new XMLHttpRequest(); req.open(‘GET’, document.location, false); req.send(null); var headers = req.getResponseHeader().toLowerCase(); alert(headers);
a. var req = new XMLHttpRequestHeader(); req.open(‘GET’, document.location, false); req.send(null); var headers = req.retrieveAllResponseHeaders().toLowerCase(); alert(headers);
43. Consider the following JavaScript alert:

Which of the following will run the function when a user opens the page?
Answers:
a. body onload=”message()”
a. body onunload=”message()”
a. body onsubmit=”message()”
a. body onreset=”message()”
44. Which of the following is the most secure and efficient way of declaring an array?
Answers:
a. var a = []
a. var a = new Array()
a. var a = new Array(n)
a. var a
45. Which of the following Regular Expression pattern flags is not valid?
Answers:
a. gi
a. p
a. i
a. g
46. Which of the following built-in functions is used to access form elements using their IDs?
Answers:
a. getItem(id)
a. getFormElement(id)
a. getElementById(id)
a. All of these
47. Which of the following statements is correct?
Answers:
a. There is no undefined property in JavaScript.
a. Undefined object properties can be checked using the following code: if (typeof something == null) alert(“something is undefined”);
a. It is not possible to check for undefined object properties in JavaScript.
a. Undefined object properties can be checked using the following code: if (typeof something === “undefined”) alert(“something is undefined”);
48. Which of the following correctly uses a timer with a function named rearrange()?
Answers:
a. tmr=setTimeout(“rearrange ()”,1)
a. tmr=Timer(1,”rearrange ()”)
a. tmr=Timer(“rearrange ()”,1)
a. tmr=setTimeout(1,”rearrange ()”)
49. Which of the following can be used to escape the ‘ character?
Answers:
a. *
a. \
a. –
a. @
a. #
a. %
a. |
a. ~
50. Which event can be used to validate the value in a field as soon as the user moves out of the field by pressing the tab key?
Answers:
a. onblur
a. onfocus
a. lostfocus
a. gotfocus
a. None of these
51. When setting cookies with JavaScript, what will happen to the cookies.txt data if the file exceeds the maximum size?
Answers:
a. The script automatically generates a run-time error.
a. The script automatically generates a load-time error.
a. All processes using document.cookie are ignored.
a. The file is truncated to the maximum length.
52. Which of the following are not global methods and properties in E4X?
Answers:
a. ignoreComments
a. ignoreWhiteSpace
a. setName()
a. setNamespace()
a. ignoreComments and ignoreWhiteSpace
a. setName() and setNamespace()
53. Which of the following will change the color of a paragraph’s text to blue when a user hovers over it, and reset it back to black when the user hovers out?
Answers:
a.
The text of the paragraph..
a.

The text of the paragraph..
a.
The text of the paragraph..
a.
The text of the paragraph..
a.
The text of the paragraph..
54. What is the purpose of while(1) in the following JSON response?
while(1);[[‘u’,[[‘smsSentFlag’,’false’],[‘hideInvitations’,’false’],[‘remindOnRespondedEventsOnly’,’true’],[‘hideInvitations_remindOnRespondedEventsOnly’,’false_true’],[‘Calendar ID stripped for privacy’,’false’],[‘smsVerifiedFlag’,’true’]]]]
Answers:
a. It’s invalid JSON code.
a. It makes it difficult for a third-party to insert the JSON response into an HTML document with a
Answers:
a. bar['baz']();
a. object['foo']['bar']['baz']();
a. document['foo']['bar']['baz']();
a. window['foo']['bar']['baz']();

57. Which of the following determines whether cookies are enabled in a browser or not?
Answers:
a. (navigator.Cookie)? true : false
a. (application.cookieEnabled)? true : false
a. (navigator.cookieEnabled)? true : false
a. (application.cookie)? true : false
58. Which of the following options can be used for adding direct support for XML to JavaScript?
Answers:
a. E4X
a. egex
a. Generators and Iterators
a. let
59. Which of the following will detect which DOM element has the focus?
Answers:
a. document.activeElement
a. document.ready
a. document.referrer
a. document.getelementbyid
60. Which of the following will randomly choose an element from an array named myStuff, given that the number of elements changes dynamically?
Answers:
a. randomElement = myStuff[Math.floor(Math.random() * myStuff.length)];
a. randomElement = myStuff[Math.ceil(Math.random() * myStuff.length)];
a. randomElement = myStuff[Math.random(myStuff.length)];
a. randomElement = Math.random(myStuff.length);
61. How can global variables be declared in JavaScript?
Answers:
a. All variables are local in JavaScript.
a. Declare the variable between the 'script' tags, and outside a function to make the variable global
a. Precede the variable name with the constant global
a. Declare the variable in an external file
62. Which of the following objects in JavaScript contains the collection called "plugins"?
Answers:
a. Location
a. Window
a. Screen
a. Navigator
63. What will be output of the following code?
function testGenerator() {
yield "first";
document.write("step1");
yield "second";
document.write("step2");
yield "third";
document.write("step3");
}
var g = testGenerator();
document.write(g.next());
document.write(g.next());
Answers:
a. firststep1second
a. step1step2
a. step1
a. step1step2step3
64. Which of the following methods will copy data to the Clipboard?
Answers:
a. execClipboard('Copy')
a. copyCommand('Clipboard')
a. execCommand('Copy')
a. execClipboard('Copy')
65. Which of the following code snippets trims whitespace from the beginning and end of the given string str?
Answers:
a. str.replace(/^\s+|\s+$/g, '');
a. str.replace(/^\s+/,'');
a. str.replace(/\s+$/,'');
a. str.replace(/\s+/g,' ');
66. What is the difference between call() and apply()?
Answers:
a. The call() function accepts an argument list of a function, while the apply() function accepts a single array of arguments.
a. The apply() function accepts an argument list of a function, while the call() function accepts a single array of arguments.
a. The call() function accepts an object list of a function, while the apply() function accepts a single array of an object.
a. The call() function accepts an object list of a function, while the apply() function accepts a single array of an object.
67. Which of the following code snippets is more efficient, and why?


Answers:
a. Both are equally efficient.
a. The first code is more efficient as it contains less code.
a. The first code is more efficient as it employs object caching.
a. The second code is more efficient as it employs object caching.
68. What is the meaning of obfuscation in JavaScript?
Answers:
a. Obfuscation is a keyword in JavaScript.
a. Making code unreadable using advanced algorithms.
a. Decrypting encrypted source code using advanced algorithms.
a. None of these.
69. Which of the following JavaScript Regular Expression modifiers finds one or more occurrences of a specific character in a string?
Answers:
a. ?
a. *
a. +
a. #
70. Which of the following is not a valid JavaScript operator?
Answers:
a. |
a. ===
a. %=
a. ^
71. Which of the following code snippets returns "[object object]"?
Answers:
a.
a.
a.
a.
72. Which of the following can be used to invoke an iframe from a parent page?
Answers:
a. window.frames
a. document.getElementById
a. document.getelementsbyname
a. document.getelementsbyclassname
73. Select the following function that shuffles an array?
Answers:
a. function shuffle(array) { var tmp, current, top = array.length; if(top) while(--top) { current = Math.floor(Math.random() * (top + 1)); tmp = array[current]; array[current] = array[top]; array[top] = tmp; } return array; }
a. function shuffle(array) { return array.sort(function(a,b) { return (a-b); }); }
a. function shuffle(array) { var results = new Array(); var sorted_arr = array.sort(); for (var i = 0; i < array.length - 1; i++) { if (sorted_arr[i + 1] == sorted_arr[i]) { results.push(sorted_arr[i]); } } return results; }
a. function shuffle(array) { for (var tmp, cur, top=array.length; top--;){ cur = (Math.random() * (top + 1)) << 0; tmp = array[cur]; array[cur] = array[top]; array[top] = tmp; } return array.sort(); }
74. Which of the following code snippets removes objects from an associative array?
Answers:
a. delete array["propertyName"];
a. array.propertyName.remove();
a. array.splice(index, 1);
a. array["propertyName"].remove();
75. What is the error in the statement: var charConvert = toCharCode('x');?
Answers:
a. toCharCode() is a non-existent method.
a. Nothing. The code will work fine.
a. toCharCode only accepts numbers.
a. toCharCode takes no arguments.
76. What value would JavaScript assign to an uninitialized variable?
Answers:
a. NaN
a. null
a. undefined
a. false
77. What does the following JavaScript code do?
contains(a, obj) {
for (var i = 0; i < a.length; i++) {
if (a[i] === obj) {
return true;
}
}
return false;
}
Answers:
a. It calculates an array's length.
a. It compares 'a' and 'obj' in an array.
a. The code will cause an error.
a. It checks if an array contains 'obj'.
78. If an image is placed styled with z-index=-1 and a text paragraph is overlapped with it, which one will be displayed on top?
Answers:
a. The paragraph.
a. The image.
a. It depends on other rules.
79. Which of the following code snippets gets an image's dimensions (height & width) correctly?
Answers:
a. var img = document.getElementById('imageid'); var width = img.clientWidth; var height = img.clientHeight;
a. var img = document.getElementById('imageid'); var width = img.width; var height = img.height;
a. var img = document.getElementById('imageid'); var width = img.getAttribute('width'); var height = img.getAttribute('height');
a. var img=document.getElementById("imageid"); var width=img.offsetWidth; var height=img.offsetHeight;
80. Which of the following are correct values of variableC, and why?

Answers:
a. 6, 7, 8 and 9. The + operator is defined for arrays, and it concatenates strings, so it converts the arrays to strings.
a. 6, 15 and 9. The + operator is defined for arrays, and it concatenates numbers, so it converts the arrays to numbers.
a. 6, 8, 7 and 9. The + operator is defined for arrays, and it concatenates strings, so it converts the arrays to strings.
a. 6, 87 and 9. The + operator is not defined for arrays, and it concatenates strings, so it converts the arrays to strings.
81. The following are the samples for getting a selected value in the from a dropdown list:
Which code block is correct?
Answers:
a. var e = document.getElementById("ddlViewBy"); var strUser = e.options[e.selectedIndex].text;
a. var e = document.getElementById("ddlViewBy"); var strUser = e.options[e.selectedIndex].value;
a. var e = document.getElementByName("ddlViewBy"); var strUser = e.options[e.selectedIndex].text;
a. var e = document.getElementByName("ddlViewBy"); var strUser = e.options[e.selectedIndex].value;
82. var profits=2489.8237
Which of the following code(s) produces the following output?
output : 2489.824
Answers:
a. profits.toFixed(4)
a. profits.toFixed(3)
a. profits.formatDollar(3)
a. profits.nuberFormat(3)
83. A form contains two fields named id1 and id2. How can you copy the value of the id2 field to id1?
Answers:
a. document.forms[0].id1.value=document.forms[0].id2.value
a. document.forms[0].id2.value=document.forms[0].id1.value
a. document.id1.value=document.id2.value
a. document.id2.value=document.id1.value
84. Which of the following code snippets will toggle a div element's background color?

Change Background Color.
Answers:
a.
a.
a.
a.
85. How can the user's previously navigated page be determined using JavaScript?
Answers:
a. It is not possible in JavaScript. This can be done only through server-side scripting.
a. Using the document.referrer property
a. Using the window object
a. None of these
86. Which of the following is not a valid method for looping an array?
Answers:
a. var a= [1,2]; for (var i = 0; i < a.length; i++) { alert(a[i]); }
a. var a= [1,2]; a.forEach( function(item) { alert(item); })
a. var a= [1,2]; a.map( function(item) { alert(item); })
a. var a= [1,2]; a.loop( function(item) { alert(item); })
87. Which of the following correctly sets a class for an element?
Answers:
a. document.getElementById(elementId).className = "Someclass";
a. document.getElementById(elementId).setAttribute("className", "Someclass");
a. document.getElementById(elementId).class = "Someclass";
a. document.getElementById(elementId).style = "Someclass";
88. An HTML form contains 10 checkboxes all named "chkItems". Which JavaScript function can be used for checking all the checkboxes together?
Answers:
a. function CheckAll() { for (z = 0; z < document.forms.chkItems.length; z++) { document.forms.chkItems[z].checked=true } }
a. function CheckAll() { for (z = 0; z < document.forms[0].chkItems.length; z++) { document.forms[0].chkItems[z].checked=true } }

a. function CheckAll() { for (z = 0; z < document.forms[0].chkItems.length; z++) { document.forms[0].chkItems.list[z].checked=true } }
a. function CheckAll() { for (z = 0; z < document.forms[0].chkItems.length; z++) { document.forms[0].chkItems.list[z].checked=false } }

HTML5 Test 2016 – Upwork Test Answers 2017

1. Which of the following statements regarding WebSockets is true?
Answers:
a. It communicates with the server with only the data required by the application.
b. It lowers the latency of connections for interactive web applications.
c. It scales better and consumes less server resources than HTTP AJAX/long-poll.
d. All of the above.
2. Assuming that some text needs to be written on an HTML5 canvas, select a replacement for the commented line below:
<canvas id=”e” width=”200″ height=”200″></canvas>
<script>
var canvas = document.getElementById(“e”);
//insert code here
context.fillStyle = “blue”;
context.font = “bold 16px Arial”;
context.fillText(“Zibri”, 100, 100);
</script>
Answers:
a. var context = canvas.getContext();
b. var context = canvas.getElementById(“context”);
c. var context = canvas.getContext(“2d”);
d. var context = canvas.getElementById(“2d”);
3. What is the role of the <dfn> element in HTML5?
Answers:
a. It is used to define important text.
b. It is used to define computer code text.
c. It is used to define sample computer code.
d. It is used to define a definition term.
4. Which of the following is a possible way to get fullscreen video played from the browser using HTML5?
Answers:
a. <object> <param name=”allowFullScreen” value=”true” />
b. <video allowFullScreen=”true”>
c. <video height=”100%” width=”100%”>
d. None of these.
5. Consider the following items of a <select> list:
<option value=”89″>Item 1</option>
<option value=”90″>Item 2</option>
Which of the following values would be passed on by clicking the submit button on selecting Item 2 from the list?
Answers:
a. 89
b. 90
c. Item 1
d. Item 2
6. The following are valid use cases of client file/directory access in HTML5, except:
Answers:
a. Drag and drop files from the desktop
b. Full file system access
c. Use of the HTML5 File API
d. Use of files as HTML5 input types
7. Which of the following are the valid values of the <a> element’s target attribute in HTML5?
Answers:
a. _blank
b. _self
c. _top
d. _bottom
8. How does a button created by the <button> tag differ from the one created by an <input> tag?
Answers:
a. An input tag button can be a reset button too.
b. A button tag button can be a reset button too.
c. An input tag button can include images as well.
d. A button tag can include images as well.

9. Which method of HTMLCanvasElement is used to represent image of Canvas Element?
Answers:
a. toDataURL()
b. saveAsImage()
c. saveFile()
d. exportImage()
10. Can we store JavaScript Objects directly into localStorage?
Answers:
a. Yes
b. No
11. When does the ondragleave mouse event get fired in HTML5?
Answers:
a. It gets fired when an element has been dragged to a valid drop target.
b. It gets fired when an element leaves a valid drop target.
c. It gets fired at the end of a drag operation.
d. It gets fired while an element is being dragged.
12. Once an application is offline, it remains cached until the following happens (select all that apply):
Answers:
a. The application cache is programmatically updated.
b. The application cache gets automatically cleared by the browser.
c. The manifest file is modified.
d. The user clears their browser’s data storage for the site.
13. What is the internal/wire format of input type=”date” in HTML5?
Answers:
a. DD-MM-YYYY
b. YYYY-MM-DD
c. MM-DD-YYYY
d. YYYY-DD-MM
14. Which of the following is not a valid syntax for the <link> element in HTML5?
Answers:
a. <link rel=”icon” href=”abc.jpg” sizes=”16×16″>
b. <link rev=”stylesheet” href=”abc.css” type=”text/css” target=”_parent”>
c. <link rel=”alternate” type=”application/pdf” hreflang=”fr” href=”manual-fr”>
15. What does P2P streaming mean when web applications establish a P2P HTTP connection using HTML?
Answers:
a. It means that streaming of a voice/video frame is direct, without using any server between them.
b. It means that streaming of a voice/video frame is first between one peer to the server then the server to another peer.
c. Communication does not rely on a shared relay server in the network.
16. Which of the following will detect when an HTML5 video has finished playing?
Answers:
a. var video = document.getElementsByTagName(‘video’)[0]; video.onended = function(e) { }
b. var video = document.getElementsByTagName(‘video’)[0]; video.onPlayend = function(e) { }
c. var video = document.getElementsByTagName(‘video’)[0]; video.onPlayFinish = function(e) { }
d. var video = document.getElementsByTagName(‘video’)[0]; video.onPlayBackended = function(e) { }
17. What is the difference between Server-Sent Events (SSEs) and WebSockets in HTML5?
Answers:
a. WebSockets can perform bi-directional (client-server and vice versa) data transfers, while SSEs can only push data to the client/browser.
b. SSEs can perform bi-directional (client-server and vice versa) data transfers, while WebSockets can only push data to the client/browser.
c. WebSockets and SSEs are functionally equivalent.
d. None of these.
18. Which of the following methods can be used to estimate page load times?
Answers:
a. Using _gaq.push([‘_trackPageLoadTime’]) with Google Analytics.
b. Using the Navigation Timing JavaScript API.
c. Page load times cannot be estimated.
d. Using built-in JavaScript methods.
19. Which of the following are valid ways to associate custom data with an HTML5 element?
Answers:
a. <tr class=”foo” data-id-type=”4″>
b. <tr class=”foo” id-type=”4″>
c. <tr class=”foo” data-id_type=”4″>
d. All of the above.
20. How can an HTML5 canvas size be changed so that it fits the entire window?
Answers:
a. #myCanvas {height: 100%; width: 100%;}
b. <script type=”text/javascript”> function resize_canvas(){ canvas = document.getElementById(“canvas”); if (canvas.width < window.innerWidth) { canvas.width = window.innerWidth; } if (canvas.height < window.innerHeight) { canvas.height = window.innerHeight; } } </script>
c. It depends upon the complexity of the canvas, and the frequency of redraws.
d. Calling the JavaScript getWidth() function.
21. Which method of the HTMLCanvasElement is used to represent an image of a canvas element?
Answers:
a. toDataURL
b. toImageURL
c. saveAsPNG
d. saveAsJPEG
22. Which of the following is the correct way to store an object in localStorage?

var obj = { ‘one’: 1, ‘two’: 2, ‘three’: 3 };
Answers:
a. localStorage.setItem(‘obj’, obj);
b. localStorage.setItem(‘obj’, JSON.stringify(obj));
c. localStorage.setItem(‘testObject’, JSON.parse(testObject));
d. localStorage.setItem(obj);
23. Assuming that some text needs to be written on an HTML5 canvas, select a replacement for the commented line below:

<canvas id=”e” width=”200″ height=”200″></canvas>
<script>
var canvas = document.getElementById(“e”);
//insert code here
context.fillStyle = “blue”;
context.font = “bold 16px Arial”;
context.fillText(“Zibri”, 100, 100);
</script>
Answers:
a. var context = canvas.getContext();
b. var context = canvas.getElementById(“context”);
c. var context = canvas.getContext(“2d”);
d. var context = canvas.getElementById(“2d”);
24. Which of the following code is used to prevent Webkit spin buttons from appearing on web pages?
Answers:
a. input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
b. input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
c. noindex:-o-prefocus, input[type=number] { padding-right: 1.2em; }
d. input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; padding-right: 1.2em; }
25. Which of the following will restrict an input element to accept only numerical values in a text field?
Answers:
a. <input type=”text” pattern=”[0-9]*” />
b. <input type=”number” />
c. <input type=”text” pattern=”\d*”/>
d. <input type=”text” pattern=”number”/>
26. Which of the following is the correct way to display a PDF file in the browser?
Answers:
a. <object type=”application/pdf” data=”filename.pdf” width=”100%” height=”100%”/>
b. <object type=”application/pdf” id=”filename.pdf” width=”100%” height=”100%”/>
c. <input type=”application/pdf” data=”filename.pdf” width=”100%” height=”100%”/>
d. <input type=”application/pdf” src=”filename.pdf” width=”100%” height=”100%”/>
27. Which of the following is the best method to detect HTML5 Canvas support in web browsers?
Answers:
a. isCanvasSupported()
b. !!document.createElement(“canvas”)
c. !isCanvasSupported()
d. !!window.HTMLCanvasElement
28. Which media event is triggered when there is an error in fetching media data in HTML5?
Answers:
a. onstalled
b. onwaiting
c. onsuspend
d. oninvalid
29. Which of the following is the correct way to check browser support for WebSocket?
Answers:
a. console.log(WebSocket ? ‘supported’ : ‘not supported’);
b. console.log(window.WebSocket ? ‘supported’ : ‘not supported’);
c. console.log(window[WebSocket] ? ‘supported’ : ‘not supported’);
d. console.log(window[‘WebSocket’] ? ‘supported’ : ‘not supported’);
30. Which of the following video file formats are currently supported by the <video> element of HTML5?
Answers:
a. CCTV
b. MPEG 4
c. Ogg
d. 3GPP
31. Which of the following shows correct use of client-side data validation in HTML5, on username and password fields in particular?
Answers:
a. <input name=”username” required /> <input name=”pass” type=”password” required/>
b. <input name=”username” validate=”true”/> <input name=”pass” type=”password” validate=”true”/>
c. <input name=”username” validate/> <input name=”pass” type=”password” validate/>
d. There is no way to implement client-side validation for the username and password fields in HTML5.
32. Which of the following is not a valid attribute for the <video> element in HTML5?
Answers:
a. controls
b. autoplay
c. disabled
d. preload
33. Consider the following JavaScript code:

var c=document.getElementById(“myCanvas”);
var ctx=c.getContext(“2d”);
var img=document.getElementById(“img”);
Which method will correctly draw an image in the x=10, y=10 position?
Answers:
a. ctx.drawImage(img,10,10);
b. context.drawImage(img,20,10,10,10);
c. context.drawImage(img,10,20,10,10,20,20,10,10);
d. All of these
34. Which of the following is the correct way to store an object in a localStorage?
Answers:
a. localStorage.setItem(‘testObject’, JSON.stringify(testObject))
b. localStorage.setItem(‘testObject’, testObject)
c. localStorage.add(‘testObject’, testObject)
d. localStorage.addItem(‘testObject’, testObject)
35. How can audio files be played in HTML5?
var sound = new Audio(“file.wav”);
Answers:
a. sound.begin();
b. sound.resume();
c. sound.start();
d. sound.play();
36. Which of the following is the correct way to play an audio file in HTML5?
Answers:
a. var snd = new Audio(“file.wav”); snd.play();
b. <audio controls> <source src=”file.ogg” type=”audio/ogg”> <source src=”file.mp3″ type=”audio/mpeg”> </audio>
c. <source src=”file.mp3″ type=”audio/mpeg”>
d. All of these.
37. Which HTML5 doctype declarations are correct?
Answers:
a. <!doctype html>
b. <!DOCTYPE html>
c. <!DOCTYPE HTML5>
d. <!DOCTYPE HTML>
38. You want to create a link for your website allowing users to email the webmaster. How will you implement this if the webmaster’s email address is webmaster@xcompany.com?
Answers:
a. <a href=”mailto:webmaster@xcompany.com”>webmaster</a>
b. <a href=”webmaster@xcompany.com”>webmaster</a>
c. <a http=”mail:webmaster@xcompany.com”>webmaster</a>
d. <mail http=”send:webmaster@xcompany.com”>webmaster</mail>
39. Which of the following are sample use cases for HTML5 web workers?
Answers:
• Polling URLs in background
• Syntax highlighting without blocking code editing capabilities in online IDEs
• Motion tracking input in realtime with a video element
• All of these.
40. Which media event will be fired when a media resource element suddenly becomes empty?
Answers:
• onerror
• onended
• onloadeddata
• onemptied
41. You are writing the code for an HTML form and you want the browser to retain the form’s input values. That is, if a user submits the form and presses the browser’s back button, the fully populated form is displayed instead of a blank form. Which of the following HTML 5 attributes will you use?
Answers:
• accept
• autofocus
• autocomplete
• formtarget
42. Which of the following HTML5 features is capable of taking a screenshot of a web page?
Answers:
• Server-Sent Events
• SVG
• Canvas
• Web Workers
43. Which of the following are true about the ARIA role attribute in HTML5?
Answers:
• Every HTML element can have an ARIA role attribute specified.
• Every HTML element is required have an ARIA role attribute specified.
• The attribute must have a value that is a set of space-separated tokens representing the various WAI-ARIA roles that the element belongs to.
• There is no ARIA attribute called “role”.
44. Which of the following video tag attributes are invalid in HTML5?
Answers:
• play
• loop
• mute
• pause
45. True or False:
HTML5 Canvas can be used to create images.
Answers:
• True
• False
46. Which of the following statements are correct with regard to the <hr> and <br> elements of HTML5?
Answers:
• The <hr> element acts in the same way as the tab key and the <br> element acts in the same way as the shift key.
• The <hr> element is used to insert the horizontal line within the document and the <br> element is used to insert a single line break.
• The <hr> element is used to put a line across the page and the <br> element acts in the same way as a return/enter key press.
47. The following link is placed on an HTML webpage:
<a href=”http://msdn.com/” target=”_blank”> MSDN </a>
What can be inferred from it?
Answers:
• It will open the site msdn.com in the same window.
• It will open the site msdn.com in a new window.
• It will open the site msdn.com in a frame below.
• It will not be clickable as it is not formed correctly.
48.Which following are valid default values for the <input type=”date”> HTML5 element?
Answers:
• now
• 2013-05-30
• 2013-30-05
• today
49. True or false:
JavaScript objects can be stored directly into localStorage.
Answers:
• True
• False
50. What is the limit to the length of HTML attributes?
Answers:
• 65536
• 64
• There is no limit.
• None of these.
51. Which of the following examples contain invalid implementations of the ampersand character in HTML5?
Answers:
• foo & bar
• foo &0 bar
• foo &0; bar
• foo&&& bar
52. Which is the standard method for clearing a canvas?
Answers:
• context.clearRect ( x , y , w , h );
• canvas.width = canvas.width;
• context.clear();
• All of these.
53. Which of the following attributes are not supported in HTML5?
Answers:
• sizes
• rev
• rel
• charset
54. In HTML5, which of the following is not a valid value for the type attribute
when used with the <command> tag shown below?
<command type=”?”>Click Me!</command>
Answers:
• button
• command
• checkbox
• radio
55. Which of the following attributes gets hidden when the user clicks on the element that it modifies? (Eg. hint text inside the fields of web forms)
Answers:
• autocomplete
• autofocus
• placeholder
• formnovalidate
56. Which event is fired when an element loses its focus in an HTML5 document?
Answers:
• onfocus
• onload
• onblur
• onselect
57. What is the purpose of the <q> element in HTML5?
Answers:
• It is used to define the start of a term in a definition list.
• It is used to define attribute values for one or more columns in a table.
• It is used to define the start of a short quotation.
• It is used to define what to show browsers that do not support the ruby element.
58. Consider the following items of a <select> list:
<option value=”89″>Item 1</option>
<option value=”90″>Item 2</option>
Which of the following values would be passed on by clicking the submit button on selecting Item 2 from the list?
Answers:
•89
•90
•Item 1
•Item 2
59. Which of the following is the best method to store an array in localStorage?
Answers:
• var localStorage[names]=new Array(); localStorage.names[0]=prompt(“New member name?”);
• var names = []; names[0] = prompt(“New member name?”); localStorage[“names”] = JSON.stringify(names); var storedNames = JSON.parse(localStorage[“names”]);
• Storage.prototype.setObj = function(key, obj) { return this.setItem(key, JSON.stringify(obj)) } Storage.prototype.getObj = function(key) { return JSON.parse(this.getItem(key)) }
• localStorage.setItem(‘names_length’, names.length); localStorage.setItem(‘names_0’, names[0]); localStorage.setItem(‘names_1’, names[1]); localStorage.setItem(‘names_’ + n, names[n]);
60. What does the icon attribute of the HTML5 command tag define?

Click Me!
Answers:
• It is used to define the URL of an image to display as the command.
• It is used to define the name of the radiogroup this command belongs to.
• It is used to define if the command is checked or not.
• It is used to define if the command is available or not.

CSS Test 2016 – Upwork Test Answers

1. Consider the following code snippet:
With these style rules:
Which of the following code snippets when inserted into CSS will change the A and B div’s color from red to blue?
Answers:
a. In style rule add this code “#sectors > div:not(.C):not(.D):not(.E) {background-color: blue;}”
b. In style rule add this code “#sectors > div:not(.C, .D, .E) {background-color: blue;}”
c. Both A and B
d. None of the above
2. Which of the following will create a triangle effect using pure CSS3 on a white background, without making use of background images?
Answers:
a. It is not possible to do so.
b. border-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 20px; width: 0px; height: 0px;
c. background-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 20px; width: 0px; height: 0px;
d. background-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 1px; width: 10px; height: 10px;
3. Can a percentage value be given in a ruby-align property?
Answers:
a. Yes
b. No
4. Consider the following font definition:
font-weight:normal
What is the other way of getting the same result?
Answers:
a. font-weight:100
b. font-weight:900
c. font-weight:400
d. font-weight:700
5. Consider the following code:
div[class^=”stronger”] { }
{em

}
Which of the following statements is true?
Answers:
a. It applies the rule only on divs who belong to a class that begins with “stronger”.
b. It applies the rule only on divs of class “stronger”.
c. It applies the rule only on divs who belong to a class which end with “stronger”.
d. It applies the rule only on divs who belong to a class which does not contain “stronger” in its name.
6. For the clear property, which of the following values is not valid?
Answers:
a. none
b. left
c. right
d. top
7. What will be the output of the following code?
Lorem
Answers:
a. The text “Lorem” will be colored black-red.
b. The div element will be colored black-red.
c. The border of div element will be colored black-red.
d. None of these.
8. Which of the following is not a valid value for the font-smooth property?
Answers:
a. auto
b. never
c. always
d. normal
e. length
9. Which of the following option does not exist in media groups available in CSS3?
Answers:
a. continuous or paged
b. visual or tactile
c. grid or bitmap
d. braille or screen
10. Which of the following is not a valid page break?
Answers:
a. page-break-inside
b. page-break-outside
c. page-break-before
d. page-break-after
e. None of these
11. Which statement is correct given the following?
box-shadow:30px 20px 10px 5px black;
Answers:
a. The shadow will be spread out to 30px top, 20px right, 10px bottom, 5px left.
b. The position of the horizontal black shadow is 30px and the position of the vertical black shadow is 20px and blur distance is 10px and size of shadow is 5px.
c. The position of the vertical black shadow is 30px and the position of the horizontal black shadow is 20px and size of shadow is 10px and blur distance is 5px.
d. The shadow will be spread out to 30px top and bottom, 20px left and right with 10px blur distance, 5px shadow size.
12. The min-width property cannot be applied to the following element:
Answers:
a. button
b. span
c. table row
13. Given the following problem:
A drop shadow needs to appear only at the bottom, and no images should be used.
Consider the following code:
-moz-box-shadow: 0px 4px 4px #000;
-webkit-box-shadow: 0px 4px 4px #000;
box-shadow-bottom: 5px #000;
However, this produces shadows on the rest of the element.
Which of the following code snippets will correct the issue?
Answers:
a. border-bottom:5px solid #ffffff; -webkit-box-shadow: 0px 5px #000000; -moz-box-shadow: 0px 5px #000000; box-shadow: 0px 5px #000000;
b. -webkit-box-shadow: 0 4px 4px -2px #000000; -moz-box-shadow: 0 4px 4px -2px #000000; box-shadow: 0 4px 4px -2px #000000;
c. -webkit-box-shadow: 0 4px 4px -2px inside #000000; -moz-box-shadow: 0 4px 4px -2px inside #000000; box-shadow: 0 4px 4px -2px inside #000000;
d. None of these.
14. Consider the following code:
body { text-replace: “a” “b” “b” “c” }
What will be the output of the following string if the text-replace style is implemented?
andy lives behind cafe
Answers:
a. ndy lives behind cbfe
b. cndy lives cehind ccfe
c. andy lives behind cafe
d. andy lives cehind bafe
15. What is the default value of the transform-style property?
Answers:
a. preserve-3d
b. flat
c. none
d. preserve
16. What will be the output of the following code?


Lorem
Answers:
a. The text “Lorem” will be colored black-red.
b. The div element will be colored black-red.
c. The border of div element will be colored black-red.
d. None of these.
17. Which of the following styles is not valid for an image?
Answers:
a. img { float= left }
b. img { float: left here }
c. img { background: “black” }
d. img { border-width: 10 }
e. All of the above
18. Suppose that a
tag has 10tags. In this case which statement is correct given the following?
td:nth-child(3n+0){
background-color: orange;
}
Answers:
a. It returns a syntax error.
b. The background color of the fourth td will be orange.
a. The background color of the third td will be orange.
c. The background color of every third td will be orange.
19. What is the best method to select all elements except for the last one in an unordered list?
Answers:
a. Adding a class to each
b.element but last
c. Using li:not(:last-child) css selector
d. Using li:last-child selector
e. None of the above
20. Which of the following will apply a black inner glow with 25% opacity to a page element?
Answers:
a. box-shadow: 0 0 8px rgba(255,255,255, 0.25);
b. box-shadow: inset 0 0 8px rgba(0,0,0, 0.25);
c. box-shadow: 0 0 8px rgba(255,255,255, 25%);
d. box-shadow: inset 0 0 8px rgba(0,0,0, 25%);
21. Which of the following is the initial value for the column-fill property?
Answers:
a. auto
b. balance
c. none
22. Which of the following can be used to add a shadow around the div element below?

Lorem ipsum
Answers:
a. box-shadow: 0 0 8px 2px #888;
b. border-shadow: 0 0 8px 2px #888;
c. div-shadow: 8px 2px 0 0 #888;
d. None of these
23. Which of the following will decrease 50px from a DIV element whose width is 100%?
Answers:
a. width: calc(100% – 50px);
b. width: reduce(100% – 50px);
c. width: decrease(100% – 50px);
d. width: 100% – 50px;
24. Which of the following properties specifies the minimum number of lines of a paragraph that must be left at the bottom of a page?
Answers:
a. orphans
b. widows
c. bottom
d. overflow
e. None of these
25. What is the maximum value that can be given to the voice-volume property?
Answers:
a. 10
b. 100
c. 500
d. None of the above
26. What is the initial value of the font-size property?
Answers:
a. small
b. medium
c. large
d. default
27. Is there a way to create a pure CSS3 text color gradient?
Answers:
a. Yes, using the text-gradient property.
b. Yes, but only for headings.
c. There is no way to do a text color gradient with CSS3.
d. None of the above.
28. Consider the following code:
border-opacity:0.7;
Given a div element that needs to have a transparent red border, which of the following code samples will work in conjunction with the code above to accomplish the requirement?
Answers:
a. border: 1px solid rgba(255, 0, 0, 0.7);
b. border: 1px solid rgb(255, 0, 0, 0.7);
c. border: 1px solid rgba(255, 255, 0, 0.7);
d. border: 1px solid red; opacity: 0.7;
29. What is the initial value of the animation-iteration-count property?
Answers:
a. 1
b. 5
c. None
30. What is the default value of the animation-direction property?
Answers:
a. none
b. normal
c. alternate
d. inherited
31. Is it possible to combine a background image and CSS3 gradients?
Answers:
a. It is possible only when two separate styles are used, “background-image” and “gradient”, on an HTML tag.
b. It is possible only when “background-image” is used.
c. It is possible only when layered HTML tags are used, “background-image” and “gradient”.
d. It is not possible to combine a background image and CSS3 gradients.
32. What will happen if the cursor property value is set to none?
Answers:
a. The default cursor will be displayed.
b. No cursor will be displayed.
c. A pointer cursor will be displayed.
d. A text cursor will be displayed.
33. What will be the outcome of given code?
div[class^=”stronger”] { }
{

}
Answers:
a. It applies the rule only on divs who belong to a class that begins with “stronger”.
b. It applies the rule only on divs of class “stronger”.
c. It applies the rule only on divs who belong to a class which end with “stronger”.
d. It applies the rule only on divs who belong to a class which does not contain “stronger” in its name.
34. To apply style on every input element except text, which of the following selectors should be used?
Answers:
a. input:([!type=’text’])
b. input:not([type=”text”])
c. input:not([type!=”text”])
d. input:([type!=’text’])
35. For the clear property, which of the following value is not valid?
Answers:
a. none
b. left
c. right
d. top
36. Read the following:
@page rotated {size: landscape}
TABLE {page: rotated; page-break-before: right}
What will this code do?
Answers:
a. It will put all tables on a right-hand side landscape page.
b. It will rotate the page if the table is positioned at the right side.
c. It will keep the table in the landscape position and rotate the page.
d. None of the above
37. What is the initial value of the opacity property?
Answers:
a. 1
b. normal
c. none
38. State whether the following statement is true or false.
If a parent element display property is set to none, its children too will not be rendered.
Answers:
a. True
b. False
39. Which of the following filters does SVG support?
Answers:
a. SVG supports only CSS filters.
b. SVG supports CSS filters as well as ‘filter’ property of SVG
c. SVG supports only ‘filter’ property of SVG
d. SVG does not supports any filters
40. What will happen if the pause property is used as follows?
h2 { pause: 40s 60s }
Answers:
a. pause-before will be set to 40 seconds and pause-after will be set to 60 seconds.
b. pause-after will be set to 40 seconds and pause-before will be set to 60 seconds.
c. pause-after and pause-before will be set to 40 seconds.
d. pause-after and pause-before will be set to 60 seconds.
41. Which of the following properties allow percentages in their value fields?
Answers:
a. font-size
b. font-variant
c. font-weight
d. line-height
42. Which of the following is not a valid value for the font-stretch property?
Answers:
a. condensed
b. normal
a. semi-narrower
c. expanded
d. semi-expanded
43. Which of the following styles is valid?
Answers:
a. order: “none”;
b. order= “none”;
c. order: none;
d. order= none;
e. None of these.
44. Which one of the following is appropriate to mirror/flip text by using CSS3?
Answers:
a. .mirror_text{ -moz-transform: scaleX(-1); -o-transform: scaleX(-1); -webkit-transform: scaleX(-1); transform: scaleX(-1); filter: FlipH; -ms-filter: “FlipH”; }
b. .mirror_text{ Box-reflect; 20px right; }
c. .mirror_text{ Box-reflect; 20px left; }
d. .mirror_text{ -moz-transform: rotate(-180deg); -webkit-transform: rotate(-180deg); transform: rotate(-180deg); }
45. What is the initial value of the marquee-speed property?
Answers:
a. slow
b. normal
c. fast
d. none
46. Which of the following will apply a gradient transition to #DemoGradient using CSS3?
Answers:
a. @-webkit-keyframes pulse #DemoGradient { 0% { background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(196,222,242)), color-stop(0.5, rgb(242,242,242)), color-stop(1, rgb(240,240,240))); } 50% { background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(222,252,255)), color-stop(0.5, rgb(242,242,242)), color-stop(1, rgb(240,240,240))); } 100% { background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgb(196,222,242)), color-stop(0.5, rgb(242,242,242)), color-stop(1, rgb(240,240,240))); } }
b. #DemoGradient{ background: -webkit-linear-gradient(#C7D3DC,#5B798E); background: -moz-linear-gradient(#C7D3DC,#5B798E); background: -o-linear-gradient(#C7D3DC,#5B798E); background: linear-gradient(#C7D3DC,#5B798E); -webkit-transition: background 1s ease-out; -moz-transition: background 1s ease-out; -o-transition: background 1s ease-out; transition: background 1s ease-out; background-size:1px 200px; border-radius: 10px; border: 1px solid #839DB0; cursor:pointer; width: 150px; height: 100px; } #DemoGradient:Hover{ background-position:100px; }
c. It is not possible to apply a gradient transition using only CSS3.
47. Using height on transitions is not possible with:
Answers:
a. height:auto
b. height:100%
c. height:0
d. max-height:100%
48. Consider the following problem:
When trying to apply a CSS3 style to a label of a checked radio button like this:
….
….


This does not produce the desired effect.
Which of the following snippets will correct issue?
Answers:
a. It is not possible to style.
b. <label “rad”>A Label
c. input[type=”radio”]:checked+label{ font-weight: bold; }
d. input[type=”radio”]:checked@label{ font-weight: bold; }
49. There are various types of input fields in a HTML page. Choose the appropriate CSS3 code which will have an effect on all inputs, except checkbox and radio.
Answers:
a. form input:not([type=”radio”], [type=”checkbox”]) { }
b. input:not([type=”radio”]):not([type=”checkbox”]) { }
c. input:not([type=”radio & checkbox”]) { }
d. input:!([type=”radio”]) , input:!([type=”checkbox”]) { }
50. Is it possible to use transition animations with a gradient background?
Answers:
a. Yes
b. No
51. What is the difference between float:left; vs display:inline-block; ?
Answers:
a. There is no difference, both of them have the same results.
b. display:inline-block; adds whitespace between the elements.
c. float:left; collapses the parent element on itself.
d. None of these.
52. What is the range of values (in decimal notation) that can be specified in the RGB color model?
Answers:
a. 0 to 256
b. 0 to 255
c. -250 to 250
d. -255 to 255
53. Which of the following are not valid values for the target-new property?
Answers:
a. window
b. tab
c. none
d. parent
e. current
54. What will be the output of the following rule?
em { color: rgba(0,0,255,1) }
Answers:
a. Opacity 1 with solid red color
b. Opacity 0 with solid blue color
c. Opacity 0 with solid red color
d. Opacity 1 with solid blue color
e. None of these
55. While rendering the following code, what is the role of “src” propery?
@font-face {
font-family: “calibriforh1”;
src: local(“calibri”), url(calibri.woff);
}
h1 { font-family: “calibriforh1”, arial, sans-serif; }
Answers:
a. It’s for searching the user’s system for a “calibri” font, and if it does not exist, it will load the font from the server instead.
b. It’s for searching the user’s system for a “calibri” font, and if it does not exist, it will load user’s system’s default font instead.
c. It’s for loading the user’s system’s default font.
d. None of these.
56. Which of the following statements is true with regard to CSS3 transitions?
Answers:
a. Using CSS transitions will slow down page upload and produce lag.
b. The completion of a CSS transition generates a corresponding DOM event. An event is fired for each property that undergoes a transition. This allows a content developer to perform actions that synchronize with the completion of a transition.
c. CSS transitions allow DOM events in CSS values to occur smoothly over a specified duration.
d. None of these.
57. Given that one div element needs to be hidden and on active state needs to be displayed, what will be the output of the following code?
div {
display: none;
-webkit-transition: opacity 1s ease-out;
opacity: 0;
}
div.active {
opacity: 1;
display: block;
}
Answers:
a. On active state the element is displayed.
b. On active state the element’s opacity is changed to 1.
c. On active state the element’s opacity is changed to 0.
d. Nothing will be shown.
58. Which of the given options is/are equivalent to the following rule?
DIV { line-height: 1.2; font-size: 10pt }
Answers:
a. DIV { line-height: 1.2em; font-size: 10pt }
b. DIV { line-height: 12em; font-size: 10pt }
c. DIV { line-height: 120%; font-size: 10pt }
d. DIV { line-height: 20%; font-size: 10pt }
e. DIV { line-height: 80%; font-size: 10pt }
59. What will happen if the following style declaration is applied to an element?
p { margin: 3em 2em }
Answers:
a. The top and the bottom margins will be 3em and the left and the right margins will be 2em.
b. The top and the bottom margins will be 2em and the left and the right margins will be 3em.
c. The top and the left margins will be 3em and the bottom and the right margins will be 2em.
d. The top and the right margins will be 2em and the bottom and the left margins will be 3em.
60. Problem to solve:
Need to use attribute selector in css to change link on different color and image.
The following code is not working correctly:

…..
A PDF File
Which of the following code snippets will correct issue?
Answers:
a. a[href$=’.pdf’] { /*css*/ }
b. a[href#=’.pdf’] { /*css*/ }
c. a[href@=’.pdf’] { /*css*/ }
d. a{href$=’.pdf’} [/*css*/ ]
61.
Suppose there are 16
elements and a style needs to applied only on every 4th element. Which of the following is correct?
Answers:
a. div:nth-child(4), div:nth-child(8), div:nth-child(12), div:nth-child(16) { }
b. div:nth-child(4n) { }
c. div:nth-child(4n+4) { }
d. div:nth-child(3n+4)
62. To make childdiv vertically center of given code, what should the “display” property of parentdiv and childdiv be?
#parentdiv
{
width: 200px;
height: 400px;
vertical-align: middle;
}
#childdiv
{
width: 100px;
height: 50px;
}
Vertical Center
Answers:
a. display:table-cell; for parentdiv and display:inline-block; for childdiv
b. display:block; for parentdiv and display:inline-block; for childdiv
c. display:inline-block; for parentdiv and display:table-cell; for childdiv
d. display:inline-block; for parentdiv and display:inline-block; for childdiv
63.
Which of the following can be used to add a shadow around the div element below?
Lorem ipsum
Answers:
a. box-shadow: 0 0 8px 2px #888;
b. border-shadow: 0 0 8px 2px #888;
c. div-shadow: 8px 2px 0 0 #888;
d. None of these
64. Is it possible to format numbers with CSS?
Answers:
a. No, CSS cannot be used for that purpose.
b. Yes, it can be done using the number-format property.
c. Yes, it can be done using the decimal property.
d. None of these.
65. What is true about the background-clip property?
Answers:
a. The background-clip property specifies the painting area of the background.
b. The background-clip property is not supported in Internet Explorer 8 and earlier versions.
c. The background-clip property is supported in Internet Explorer 9+, Firefox, Opera, Chrome, and S
afari.
d. All are correct.

Upwork MS Word 2007 Test Answers 2016 (Top 10%)

1. Which of the following is incorrect regarding “Hyphenation Zone?”
Answers:
a. The hyphenation zone is the maximum amount of space that Word 2007 allows between a word and the right margin without hyphenating the word.
b. The hyphenation zone cannot be changed to make it narrower.
c. The number of hyphens can be reduced by making the hyphenation zone wider.
d. None of the above
2. State whether true or false:
The “Add Assistant” shape option in a SmartArt graphic is available only if an organization chart layout is chosen.
Answers:
a. True
b. False
3. Which among the following is an invalid character to include in a file name?
Answers:
a. <
b. ?
c. :
d. All of the above
4. Which among the following is NOT true about content controls?
Answers:
a. They are individual controls that can be used in templates, forms, and documents.
b. They can be reused.
c. Customized content controls cannot be distributed.
5. Unlike the other types of styles (paragraph, character, linked, and table), predefined list styles are available when you first create a document in Word 2007.
Answers:
a. True
b. False
6. Which keyboard shortcut is used to make the text size smaller?
Answers:
a. ALT+SHIFT+X
b. CTRL+SHIFT+>
c. CTRL+SHIFT+<
d. ALT+SHIFT+I
7. Which among the following charts do not have axes?
Answers:
a. Bar charts
b. XY (Scatter) charts
c. Doughnut charts
d. Area charts
8. What is the significance of “Building Blocks?”
Answers:
a. They determine the appearance and orientation of the edges of a paragraph.
b. They help users to enter a date.
c. Both a and b
d. Building blocks are items within a document that can be saved to be reused in other documents.
9. Which among the following options should be used to number the cells in a table?
Answers:
a. Select the table cells that need to be numbered. Go to Layout and choose Numbering from Table Properties.
b. Select the table cells that need to be numbered. Right click on the mouse and choose Numbering from Table Properties.
c. Select the table cells that need to be numbered. On the Home tab, in the Paragraph group, click on Numbering.
d. None of the above
10. Why is the “Different First Page” option used in the Page Setup dialog box as shown in the given picture?
Answers:
a. This option allows you to remove the Page Breaks from the first page.
b. This option allows you to remove the Page Number from the first page.
c. This option allows you to remove the Section Breaks from the first page.
d. All of the above
11. Edit tracking changes are typically formatted in the following manner: (1) deletions—red strikethroughs, (2) additions—green and underlined, and (3) formatting changes are made bold in almost any other desired color. Where in Word 2007 could you set your own custom formatting options for tracking changes?

Answers:
a. Select the Office button and then select Word Options. In the Word Options dialog box, select Proofing and then set your formatting options.
b. Select the Review ribbon and then select the triangle by Track Changes. In the drop-down menu, select “Change Tracking Options” and then set your formatting options in the Track Changes Options dialog box.
c. Select the Office button and then select Track Changes. Set your formatting options in the Track Changes Options dialog box.
d. Select the Office button and then select Word Options. In the Word Options dialog box, select Customize and then set your own customized formatting options.
12. Which view(s) could be used to view the Equation placeholders in the Document Views group?

Answers:
a. Print Layout view
b. Web Layout view
c. Draft view
d. All of the above
13. Which among the following is a keyboard shortcut to cut a table?

Answers:
a. CTRL+A
b. CTRL+V
c. CTRL+C
d. CTRL+X
14. State whether true or false:

When you save a document as a Web page, the textures and gradients are saved as JPEG files and the patterns are saved as GIF files.

Answers:
a. True
b. False
15. State whether true or false:

Changing the Author property in the Document Information Panel of an existing document has no effect on the User name setting in the Word Options dialog box.

Answers:
a. True
b. False
16. Which keyboard shortcut inserts a hyperlink?

Answers:
a. CTRL+H
b. CTRL+M
c. CTRL+P
d. CTRL+K
17. State whether true or false:

Microsoft Office programs store some additional information within the digital signature automatically that might not be visible in the current view document.

Answers:
a. True
b. False
18. What does the icon marked with ‘A’ on the status bar on the bottom of the page indicate in the given picture?

Answers:
a. It indicates that the document contains a virus.
b. It indicates a watermark.
c. It indicates that Mail Merge is over.
d. It indicates that the document contains a signature.
19. Refer to the given image. How could the Quick Access Toolbar be moved?

Answers:
a. Select the bar and drag it from the handle.
b. Right click on the bar and select “Move the Bar” from the list.
c. Click on “Customize Quick Access Toolbar.” In the list, click on “Show Below the Ribbon.”
d. None of the above
20. State whether true or false:

Gridlines do not print when a document is printed.

Answers:
a. True
b. False
21. How would you divide your Word 2007 document into three columns?

Answers:
a. Position your cursor where you would like to insert the columns. Open the Insert ribbon. In the Pages group, click Columns. Select Three.
b. Position your cursor where you would like to insert the columns. Open the Insert ribbon. In the Pages group, click Page Break. Select Three.
c. Position your cursor where you would like to insert the columns. Open the Page Layout ribbon. In the Arrange section, select Three.
d. Position your cursor where you would like to insert the columns. Open the Page Layout ribbon. In the Page Setup section, click Columns. Select Three.
22. What is meant by Enhanced ScreenTips?

Answers:
a. Enhanced ScreenTips are small windows that display descriptive text when the pointer is rested on a command or control.
b. Enhanced ScreenTips are larger windows that display more descriptive text than a ScreenTip and can have a link to a Help topic.
c. Enhanced ScreenTips are a type of Font Style that can be customized according to the requirements.
d. None of the above
23. Which among the following options is not true regarding a macro?

Answers:
a. A macro is used to automate a complex series of tasks.
b. The macro recorder is used to record a sequence of actions, or to create a macro from scratch by entering a code in the Visual Basic Editor.
c. To work with macros in Word 2007, the Review tab needs to be opened.
24. State whether true or false:

A building block can be added to as many galleries as you want.

Answers:
a. True
b. False
25. What steps should be followed to replace a shape with another shape?

Answers:
a. Select the shape to be changed. Select the Format tab; use the “Change Shape” button in the Shape Styles group.
b. Select the shape to be changed. Right click on the mouse button and choose the “Change Shape” option.
c. Select the shape to be changed. Select the Insert tab and select “Another Shape” in the Illustrations group.
d. None of the above
26. State whether true or false:

In Microsoft Word 2007, a diagram can be converted to individual shapes.

Answers:
a. True
b. False
27. How does the “Gutter margin” help while using Page Setup, as shown in the picture?

Answers:
a. It ensures that the text is not obscured by binding.
b. It prevents the “Full Screen Reading” view from opening automatically.
c. It displays the field results instead of field codes.
d. All of the above
28. The Draft view was called the Normal view in versions of Word prior to Word 2007. The Draft view can help with setting the page and section breaks for the document. Which of the following could be used to select the Draft view for a document?

Answers:
a. Open the View ribbon. Click Draft in the Document Views group.
b. Select the Office button and then select Word Options. In the Word Options dialog box, select Display and check the Draft check box under Page display options.
c. Click the Draft icon on the Status Bar.
29. In Picture1, the check box has a gray background. Which among the following Legacy Tools (select the Developer tab and then the Controls group) will be used to remove the gray shading in Picture2?

Answers:
a. A
b. B
c. C
d. D
30. Refer to the picture given above. Which of the following options should be selected to scroll both documents together?

Answers:
a. A
b. B
c. C
d. None of the above
31. Which of the following line-spacing options sets fixed line spacing that Word does not adjust?

Answers:
a. Doubled
b. Exactly
c. At least
d. Multiple
32. With the help of which view will the Watermark not be seen?

Answers:
a. Print Layout view
b. Full Screen Reading view
c. Print Preview
d. Web Layout view
33. State whether true or false:

An existing table cannot be copied and pasted into another table.

Answers:
a. True
b. False
34. State whether true or false:

New text animation effects can be applied in Microsoft Word 2007.

Answers:
a. True
b. False
35. Which option(s) should you select to remove a chart or axis title from a chart?

Answers:
a. To remove a chart title, select the Layout tab. In the Labels group, click on Chart Title and then click None.
b. To remove a chart or axis title, click on the title and press Delete.
c. To remove an axis title, select the Layout tab. In the Labels group, click on Axis Titles, click the type of axis title, and then click None.
d. All of the above
36. What is the purpose of the “Demote” button as shown in the diagram?
Answers:
a. It is used to indent a line.
b. It increases the level of a selected bullet or a shape.
c. It discards all formatting changes made to the SmartArt graphic.
d. None of the above
37. Which of the following is not true about “Format Painter?”

Answers:
a. Format Painter is used to apply text formatting and some basic graphics formatting, such as borders and fills.
b. Format Painter works best with drawing objects, such as AutoShapes.
c. Format Painter can copy the font and font size on WordArt text.
38. State whether true or false:

Placeholder citations appear in the bibliography.

Answers:
a. True
b. False
39. Which among the following is not true regarding the use of a pie chart?

Answers:
a. A pie chart could be used when there is only one data series to be plotted.
b. A pie chart could be used when the data points in a pie chart are displayed as a percentage of the whole pie.
c. A pie chart could be used when none of the values that need to be plotted on the chart is negative.
d. A pie chart should be used when there are more than seven categories.
40. In the given picture, the “Washout” option has been selected. What purpose does it serve?

Answers:
a. It removes the sharp edges around the picture.
b. It lightens the picture so that it does not interfere with the text.
c. It improves the quality of the picture.
d. All of the above
41. What is the maximum number of columns that can be created in the Columns dialog box as shown in the picture?
Answers:
a. 3
b. 9
c. 13
d. 19
42. Which feature has been used from the Picture Pane on Picture1 to achieve the same result as Picture2?
Answers:
a. Compress Picture
b. Set contrast to −40%
c. Set brightness to +40%
d. Recolor
43. Which command-line switch and parameter starts Word 2007 without displaying the Word splash screen?
Answers:
a. /q
b. /a
c. /m
d. /safe
44. What does the command “Winword.exe /f MyDocument.docx” mean?
Answers:
a. This command instructs Word to run a macro which is stored in a file named Mydocument.docx.
b. This command instructs Word to close a file named Mydocument.docx.
c. This command instructs Word to start and immediately open a file named MyDocument.docx.
d. This command instructs Word to start and shows the contents of a file named MyDocument.docx on the Web.
45. How will you set the default font so that every time you open Microsoft Word it will use the settings that you had selected?
Answers:
a. Click on the Microsoft Button and select Word options. Click on Display and then select “Default font settings.”
b. Select the Home tab, and then click the Font Dialog Box Launcher. Select the font style and size. Click on Default… and then click Yes.
c. Both a and b
d. None of the above
46. In some cases, when lists are combined into one “List,” the formatting is not updated. Refer to the picture given above. Which among the following options should be used to update this formatting?
Answers:
a. A
b. B
c. C
d. D
47. Refer to the given image. In Picture1, axes appear on the left side. Which setting should you use to make them appear on the right side, as shown in Picture2?
Answers:
a. Change the axis value in the Format tab.
b. Select the Axis Options tab in the Format Axis dialog box. Set the Axis labels: field to High.
c. Right click the mouse and select Format Chart Area and change the axis value.
d. None of the above
48. In the given picture, the “Keep Text Flat” option has been selected. What is the use of this feature?
Answers:
a. When this option is selected, the text inside the shape follows the shape’s front surface as it rotates.
b. It moves the shape backward or forward in 3-D space.
c. It prevents text inside the shape from rotating when the shape is rotated.
d. All of the above
49. State whether true or false:
Changes that are made on the Worksheet are automatically updated in the chart.
Answers:
a. True
b. False
50. Refer to the given picture. Which of the following Line Numbers should be used when each page has to begin with the number 1?
Answers:
a. A
b. B
c. C
d. D
51. Suppose you want to insert a cross reference at the current cursor position in the document to a heading (located elsewhere in the document). Which of the following methods would do this in Word 2007?
Answers:
a. Select the Add-Ins tab. In the Hyperlinks section, click Cross-reference. Select the desired heading among all those displayed in the dialog box. After you have made your selection, click Insert. Close the dialog box.
b. Select the Insert tab. In the Links section, click Cross-reference. Select Headings under Reference type. Select the appropriate heading from those displayed in the bottom pane. After you have made your selection, click Insert. Close the dialog box.
c. Select the Add-Ins tab. In the Reference section, click Hypertext. Select the desired heading among all those displayed in the dialog box. After you have made your selection, click Insert. Close the dialog box.
d. None of the above. Word 2007 cannot do cross references.
52. For what purpose is the SmartArt graphic control used, as shown in the picture?
Answers:
a. It is used to rotate the SmartArt graphic.
b. It is used to add a watermark on shapes.
c. It shows the Text Pane on clicking the control.
d. None of the above
53. Which among the following is not a Bookmark option to sort the list of bookmarks in the document?
Answers:
a. Name
b. Location
c. Author
d. None of the above
54. The default installation of Word 2007 includes several built-in character styles. Which of the following is NOT one of the default, built-in character styles:
Answers:
a. Emphasis
b. Special Emphasis
c. Subtle Emphasis
d. Intense Emphasis
55. How will the Message Bar alerts be enabled as shown in the given picture?
Answers:
a. Select the View tab and then select the Message Bar feature from the Window List.
b. Select Word Options from the Microsoft Office Button. Click on Trust Center, then click Trust Center Settings, and then click Message Bar.
c. Select Word Options from the Microsoft Office Button. Click Display and then select Message Bar.
d. None of the above
56. Which of the following is not a type of “Section Breaks?”
Answers:
a. First Page
b. Next Page
c. Continuous Page
d. Even Page
57. Which chart type does the given picture represent?
Answers:
a. Surface charts
b. Stock charts
c. XY (Scatter) charts
d. Area charts
58. Which of the following charts display “Error bars” for x values, y values, or both?
Answers:
a. XY (Scatter) charts
b. Bubble charts
c. Both a and b
d. None of the above
59. Microsoft named two styles that work in Word 2007 as both character and paragraph types as being ______ styles:
Answers:
a. combination
b. list
c. linked
d. table
60. To enter a symbol or special character into your document (to where the cursor is located), which of the following methods could you employ in Word 2007?
Answers:
a. Open the Home ribbon. Click Special Characters in the Symbols group (opens a menu displaying special characters). Choose the special character (or symbol) that you want and then click Insert and click Close.
b. Open the Insert ribbon. Click Special Characters in the Text group (opens a menu displaying special characters). Choose the special character (or symbol) that you want and then click OK.
c. Open the Insert ribbon. Click Symbol in the Symbols group. A menu will appear with a small selection of symbols. If you don’t see the symbol or character you’d like to insert, click More Symbols. Choose the special character (or symbol) that you want and then click Insert and click Close.
d. Open the Home ribbon. Click Symbol in the Text group. A menu will appear with a small selection of symbols. If you don’t see the symbol or character you’d like to insert, click More Symbols. Choose the special character (or symbol) that you want and then click OK.
61. The given picture shows the list items being at different levels rather than at one level. What is this list known as?
Answers:
a. Bullets
b. Numbering
c. Line spacing
d. Multilevel
62. Which among the following file types of templates allows macros to be enabled in the file?
Answers:
a. .dot
b. .dotx
c. .dotm
d. .doc
63. Refer to the given picture. Which of the following buttons is used to show paragraph marks and other hidden formatting symbols?
Answers:
a. A
b. B
c. C
d. D
64. Which of the following is/are true about phishing?
Answers:
a. Office 2007 has a feature to display a security alert about a suspicious Web address.
b. It is an online fraud technique used by criminals to lure users into disclosing their personal information.
c. It is an online help to check text errors.
d. All of the above
65. Which of the following options repeats a table heading on subsequent pages?
Answers:
a. Repeat Header Columns
b. Repeat Header Rows
c. Repeat Header
d. None of the above
66. Which among the following options represents Legend entries in the given picture?
Answers:
a. A
b. B
c. C
d. None of the above
67. Which among the following features could be used to create a connection to a Shared Network folder?
Answers:
a. Web options
b. Save options
c. Accept
d. Map Network Drive
68. Which among the following is a correct way to make your file “Read-only?”
Answers:
a. Click on Open from the Microsoft Office Button. Click on Tools, select the Read-only recommended check box. Click OK.
b. Select the text you have typed, right click on the mouse and select the “As Recommended” option and save it.
c. Click “Save As” from the Microsoft Office Button. Click on Tools and then click General Options. Select the Read-only recommended check box. Click OK. Click on Save.
d. None of the above
69. You are editing a figure using the Drawing Tools > Format options. Which among the following Shape Fill options in the Shape Styles group adds a solid color and transparency to a shape?
Answers:
a. No Fill
b. More Fill Colors…
c. Background Color…
d. Texture
70. State whether true or false:
Any changes that are saved to “Normal.dotm” will be applied to the documents that you create in the future.
Answers:
a. True
b. False
71. Refer to the given image. Which option should be selected to convert a professionally formatted equation into an equation on one line?
Answers:
a. A
b. B
c. C
d. D
72. In the given picture, the “Match case” check box has been selected. Which among the following is true for this selection made for the “Match case” check box?
Answers:
a. If the 3-character string–DON–is searched for, the result includes DON, but not don.
b. It searches for only entire words that match the case of the word or phrase that is typed in the “Find what” box.
c. None of the above
d. Both a and b
73. State whether true or false:
ASCII-formatted text contains no formatting information such as bold, italic, or fonts.
Answers:
a. True
b. False
74. Which method determines the position of the “Envelope” while printing, in the Envelope options dialog box?
Answers:
a. Rotation method
b. Feed method
c. Position method
d. None of the above
75. Which among the following is an “Orientation” type of Page Layout?
Answers:
a. Image
b. Picture
c. Portrait
d. All of the above
76. Which among the following is a keyboard shortcut to underline blank spaces for a form?
Answers:
a. Ctrl + Hyphen(-)
b. Shift + Hyphen(-)
c. Alt + Hyphen(-)
d. All of the above
77. Which among the following options is the reason for text getting deleted at the insertion point when you type a document?
Answers:
a. The “Mark Formatting inconsistencies” is unchecked in Word Options.
b. The “Use the insert key for paste” is turned off in Word Options.
c. The “Show add-in user interface errors” is turned on in Word Options.
d. The “overtype mode” is turned on in Word options.
78. State whether true or false:
Cover pages are always inserted at the beginning of a document, no matter where the cursor appears in the document.
Answers:
a. True
b. False
79. State whether true or false:
Switches and parameters are not case-sensitive.
Answers:
a. True
b. False
80. Just as in Word 2003 or prior Word versions, the default standard view for Word 2007 is the Draft view (and is still also called the Normal view in Word 2007):
Answers:
a. True
b. False
81. How will you insert text boxes for a printed form?
Answers:
a. Select the Insert tab, in the Header & Footer group, select Text box.
b. Select the Insert tab, in the Text group, click on Text Box and then select Draw Text Box.
c. Select the Page Layout tab. In the Page Setup group, select Text box.
d. None of the above
82. Which of the following two paragraphs is/are true for Word 2007?
(1)To show or hide formatting marks in your editing markup — on the Home ribbon, in the Paragraph group, click the Show/Hide button.
(2) The Show/Hide button will not hide all the formatting marks in the document if you selected those marks that are to be displayed at all times (such as paragraph marks, tab characters, hidden text, optional hyphens, object anchors, or spaces). To turn off any or all of these selected formatting marks, follow this procedure: Click the Microsoft Office Button and then click Word Options. Then Click Display. Under “Always show these formatting marks on the screen,” clear the check boxes for any formatting marks that you do not want to show at all times in your documents.
Answers:
a. Only (1)
b. only (2)
c. Both (1) and (2)
d. Neither (1) nor (2)
83. How will you change the author name in an existing document?
Answers:
a. Click on the Microsoft Office Button, select Prepare, and then click Properties. Type the author name in the Author box.
b. Click on the Microsoft Office Button, click on Word Options, and click Popular. Under “Personalize your copy of Office,” type the author name in the “User name box.”
c. Right click on the customize status bar and select Author Name from the list and then type a new one.
d. All of the above
84. Which among the following is the correct order to convert a table to text?
Answers:
a. Select the table, right-click on it, and select “Convert to Text.”
b. Under Table Tools, on the Insert tab, in the Tables group, click on “Convert to Text.”
c. Select the table. Under Table Tools, on the Layout tab, in the Data group, click on “Convert to Text.”
d. None of the above
85. Which of the following is true about the term “Mark as Final,” as shown in the picture?
Answers:
a. It prevents reviewers or readers from making inadvertent changes to the document.
b. It helps to communicate that a completed version of a document is being shared.
c. Anyone who receives an electronic copy of a document that has been “Marked as Final” can edit that document by removing the “Mark as Final” status from the document.
d. All of the above
86. Which keyboard shortcut could be used to switch to Draft View?
Answers:
a. ALT+CTRL+P
b. ALT+CTRL+O
c. ALT+CTRL+N
d. None of the above
87. Which of the following is shown in the picture, denoted by A?
Answers:
a. Opacity Handle
b. 3-D Handle
c. Rotation Handle
d. None of the above
88. Refer to the given picture. Which of the following options turns off Enhanced ScreenTips but keeps the ScreenTips still visible?
Answers:
a. A
b. B
c. C
d. None of the above
89. With which chart type(s) is/are the “Depth Gridlines” option available?
Answers:
a. Bubble chart
b. Line chart
c. True 3-D chart
d. All of the above
90. Which of the following can be the reason for the appearance of the red X, as shown in the picture?
Answers:
a. The publisher is not trustworthy.
b. The digital signature is invalid for some reasons.
c. The digital signature has expired.
d. All of the above
91. State whether true or false:
Once a bullet is removed from the “Bullet Library” and it is no longer available in the “Document Bullets” area, the bullet cannot be added back to the Bullet Library.
Answers:
a. True
b. False
92. Which keyboard shortcut could be used to check the spelling of a text file?
Answers:
a. F7
b. F6
c. F5
d. None of the above
93. Which among the following options should be used to start a bulleted list automatically?
Answers:
a. Type * (asterisk) and then press spacebar or the Tab key.
b. Type # and then press the spacebar key.
c. Type # and then press Enter.
d. None of the above
94. Which among the following options would you choose to automatically enter the current date?
Answers:
a. Select the Insert tab and then select Date & Time in the Text group. Choose one of the available formats in the Date and Time dialog box.
b. Type the first four characters of the current day of the week.
c. Select the Home tab and then select Date in the Text group. Choose one of the available formats in the Date dialog box.
d. None of the above
95. Which among the following options will be used to select a paragraph at once with the help of a mouse?
Answers:
a. Double-click anywhere on the word.
b. Triple-click anywhere in the paragraph.
c. Click at the start of the selection.
d. None of the above
96. Which feature(s) should be selected in order to find and remove hidden data and personal information in Office documents?
Answers:
a. Blog
b. Balloons
c. Document Inspector
d. All of the above
97. Which among the following wildcards should be used to select any single alphabetic character?
Answers:
a. < a. >
b. ?
c. *
98. Which among the following options will you use to add a command to the Quick Access Toolbar?
Answers:
a. Click on Customize Quick Access Toolbar and then click “More Commands” and choose the command from the list to be customized.
b. Click on the Microsoft Button and then select Word Options. Click on Customize.
c. On the Ribbon, click the appropriate tab or group to display the command that you want to add to the Quick Access Toolbar. Right-click on the command, and then click on “Add to Quick Access Toolbar” on the shortcut menu.
d. All of the above
99. Which among the following macro settings is meant for developers only?

Answers:
a. Disable all macros without notification.
b. Disable all macros with notification.
c. Enable all macros.
d. Trust access to the VBA project object model.