oDesk Answer Test (AJAX Test Questions)
Is JavaScript the same as Java?
a. yes
b. no
Question: 02
Which of the following is not a valid variable name in JavaScript?
a. _my_var
b. 2myVar
c. MY_VAR
d. __MyVar2__
e. All are valid
Question: 03
Which HTTP server does AJAX require?
a. Apache
b. Sun application server
c. lighttpd
d. Microsoft web server
e. Any HTTP server will work
Question: 04
The format of an HTTP request is given below:
<request-line>
<headers>
<blank line>
[<request-body>]
Which of the following is not passed in the request-line?
a. Type of request
b. Resource to access
c. Version of HTTP
d. Browser name
e. None of the above
Question: 05
How can you create an XMLHttpRequest under Internet Explorer 6?
a. var oReq = new XMLHttpRequest ();
b. var oReq = new ActiveXObject ("MSXML2.XMLHTTP.3.0");
c. var oReq = new IEHttpRequest ("XML");
d. None of the above
Question: 06
Which of the following are drawbacks of AJAX?
a. The browser back button cannot be used in most cases
b. It makes the server and client page representation synchronization more difficult
c. It loads the server too much
d. It's not supported by older browsers
e. It augments the used bandwidth significantly
Question: 07
Which of the following list is/are true regarding AJAX?
a. It can only be implemented with the XMLHttpRequest object
b. It can be used to update parts of a webpage without reloading it
c. It can be used to make requests to the server without blocking the user (async)
d. It requires a special AJAX enabled web server
e. It cannot be used under Internet Explorer
Question: 08
Is it possible to access the browser cookies from a javascript application?
a. yes
b. no
Question: 09
Which of the following is/are true regarding AJAX?
a. It's an engine developed by Microsoft to load web pages faster
b. It's merely a concept with many implementation methods (XMLHttpRequest, iFrames...)
c. It's a server side scripting language used to serve partial parts of a webpage
d. It's a good way to reduce network traffic, if used correctly
e. None of the above
Question: 10
Which of the following navigator properties is the same in both Netscape and IE?
a. navigator.appName
b. navigator.appCodeName
c. navigator.appVersion
d. navigator.userAgent
e. None of the above
Question: 11
You want to update the following element with the XMLHttpRequest status. Which of the following approaches is correct for the purpose?
<div id="statusCode"></div>
a. var myDiv = document.getElementById ("statusCode");
myDiv.innerHTML = req.statusCode;
b. var myDiv = document.getElementById ("statusCode");
myDiv.innerHTML = req.status;
c. var myDiv = document.getElementById ("statusCode");
myDiv.setStatus (req.statusCode);
d. var myDiv = document.getElementById ("statusCode");
myDiv.status = req.status;
e. None of the above
Question: 12
Which of the following describes the term 'Asynchronous' correctly?
a. Ability to handle processes independently from other processes
b. Processes are dependent upon other processes
c. Processes are not fully dependent on other processes
d. None of the above
Question: 13
What should be called before 'send ()' to prepare an XMLHttpRequest object?
a. prepare ()
b. open ()
c. init ()
d. build ()
e. None of the above
Question: 14
document.write ("Hello"); will pop a dialog box with "Hello" in it.
a. true
b. false
Question: 15
What is the correct syntax to include a script named myScript.js into a page?
a. <script href="myScript.js">
b. <script name="myScript.js">
c. <script src="myScript.js">
d. <script root="myScript.js">
Question: 16
Can an HTML form be sent with AJAX?
a. yes
b. no
Question: 17
Is it possible to make some system calls on the client with AJAX?
a. Yes
b. No
Question: 18
Can WebDav methods like PROPFIND be used with XMLHttpRequest.open()?
a. Yes
b. No
Question: 19
What is the correct way to have the function checkState called after 10 seconds?
a. window.setTimeout(checkState, 10);
b. window.setTimeout(checkState, 10000);
c. window.setTimeout(checkState(), 10);
d. None of the above
Question: 20
What is NOSCRIPT tag for?
a. To prevent the page scripts from executing
b. To shield a part of a page from being modified by JS (like aDiv.innerHTML = 'something' has no effect)
c. To enclose text to be displayed if the browser doesn't support JS
d. NOSCRIPT tag doesn't exist
e. None of the above
Question: 21
What is the standardized name of JavaScript?
a. Java
b. NetscapeScript
c. ECMAScript
d. XMLScript
e. WebScript
Question: 22
Which of the following browsers provide XMLHttpRequest property?
a. Internet Explorer 5
b. Internet Explorer 6
c. Internet Explorer 7
d. Firefox 2.0
e. Safari 3.0
Question: 23
What is the common way to make a request with XMLHttpRequest?
a. myReq.request();
b. myReq.get();
c. myReq.post(null);
d. myReq.send(null);
e. myReq.sendRequest(null);
Question: 24
Can you start multiple threads with JavaScript?
a. Yes
b. No
Question: 25
What is the correct way to execute the function "calc()" when an XMLHttpRequest is loaded?
a. myRequest.onreadystatechange = calc;
b. myRequest.onload = calc;
c. myRequest.execute = calc;
d. myRequest.addCallback (calc, "loaded");
e. None of the above
Question: 26
When a user views a page with JavaScript in it, which machine executes the script?
a. The client machine running the Web Browser
b. The server serving the JavaScript
c. A central JavaScript server like root DNS
d. None of the above
Question: 27
In the following list, which ones are used to fetch the result data of an XMLHttpRequest?
a. responseData
b. responseBody
c. responseString
d. responseText
e. responseXML
Question: 28
Which of the following is a block comment in JavaScript?
a. <!-- -->
b. /* */
c. //
d. #
e. --[[ ]]
Question: 29
Can an AJAX application communicate with other applications on the client computer?
a. Yes
b. No
Question: 30
Which of the following cannot be resolved by using AJAX?
a. Partial page processing
b. Unresponsiveness of web pages
c. Server side communication initiation
d. Server crashes (failover)
e. None of the above
Question: 31
Is it always possible to make requests to multiple websites with different domain names from an AJAX client script?
a. yes
b. no
Question: 32
Can AJAX be used with offline pages? (like a downloadable documentation)
a. yes
b. no
Question: 33
In the following list, which states are valid?
XMLHttpRequest.readyState
a. 0, The request is not initialized
b. 1, The request has been set up
c. 2, The request has been sent
d. 3, The request is in process
e. 4, The request is complete
f. All of the above.
Question: 34
Can AJAX be used with PHP?
a. yes
b. no
Question: 35
What is the correct syntax to create an array in JavaScript?
a. var array = Array.new;
b. var array = [];
c. var array = new Array;
d. var array = new Array ();
e. None of the above
Question: 36
Which of the following is/are not addressed by AJAX?
a. Partial page update
b. Offline browsing
c. Server side scripting
d. All of the above
Question: 37
It might be needed to set the request content-type to XML explicitly. How can you do so for an XMLHttpRequest Object?
a. myReq.setContentType ("text/xml");
b. myReq.contentType = "text/xml";
c. myReq.overrideContentType ("xml");
d. myReq.contentType = "xml";
e. myReq.setRequestHeader ("Content-Type", "text/xml");
Question: 38
Which of the following is not a JavaScript operator?
a. new
b. delete
c. this
d. typeof
e. All of the above are Javascript operators
Question: 39
Can a client AJAX application be used to fetch and execute some JavaScript code?
a. yes
b. no
Question: 40
Is it possible to make a page "reload-safe" when using AJAX?
a. no
b. yes, if each AJAX request modifies the server side context, which would render a page similar to the actual JS modified page, if reloaded.
a. yes
b. no
Question: 02
Which of the following is not a valid variable name in JavaScript?
a. _my_var
b. 2myVar
c. MY_VAR
d. __MyVar2__
e. All are valid
Question: 03
Which HTTP server does AJAX require?
a. Apache
b. Sun application server
c. lighttpd
d. Microsoft web server
e. Any HTTP server will work
Question: 04
The format of an HTTP request is given below:
<request-line>
<headers>
<blank line>
[<request-body>]
Which of the following is not passed in the request-line?
a. Type of request
b. Resource to access
c. Version of HTTP
d. Browser name
e. None of the above
Question: 05
How can you create an XMLHttpRequest under Internet Explorer 6?
a. var oReq = new XMLHttpRequest ();
b. var oReq = new ActiveXObject ("MSXML2.XMLHTTP.3.0");
c. var oReq = new IEHttpRequest ("XML");
d. None of the above
Question: 06
Which of the following are drawbacks of AJAX?
a. The browser back button cannot be used in most cases
b. It makes the server and client page representation synchronization more difficult
c. It loads the server too much
d. It's not supported by older browsers
e. It augments the used bandwidth significantly
Question: 07
Which of the following list is/are true regarding AJAX?
a. It can only be implemented with the XMLHttpRequest object
b. It can be used to update parts of a webpage without reloading it
c. It can be used to make requests to the server without blocking the user (async)
d. It requires a special AJAX enabled web server
e. It cannot be used under Internet Explorer
Question: 08
Is it possible to access the browser cookies from a javascript application?
a. yes
b. no
Question: 09
Which of the following is/are true regarding AJAX?
a. It's an engine developed by Microsoft to load web pages faster
b. It's merely a concept with many implementation methods (XMLHttpRequest, iFrames...)
c. It's a server side scripting language used to serve partial parts of a webpage
d. It's a good way to reduce network traffic, if used correctly
e. None of the above
Question: 10
Which of the following navigator properties is the same in both Netscape and IE?
a. navigator.appName
b. navigator.appCodeName
c. navigator.appVersion
d. navigator.userAgent
e. None of the above
Question: 11
You want to update the following element with the XMLHttpRequest status. Which of the following approaches is correct for the purpose?
<div id="statusCode"></div>
a. var myDiv = document.getElementById ("statusCode");
myDiv.innerHTML = req.statusCode;
b. var myDiv = document.getElementById ("statusCode");
myDiv.innerHTML = req.status;
c. var myDiv = document.getElementById ("statusCode");
myDiv.setStatus (req.statusCode);
d. var myDiv = document.getElementById ("statusCode");
myDiv.status = req.status;
e. None of the above
Question: 12
Which of the following describes the term 'Asynchronous' correctly?
a. Ability to handle processes independently from other processes
b. Processes are dependent upon other processes
c. Processes are not fully dependent on other processes
d. None of the above
Question: 13
What should be called before 'send ()' to prepare an XMLHttpRequest object?
a. prepare ()
b. open ()
c. init ()
d. build ()
e. None of the above
Question: 14
document.write ("Hello"); will pop a dialog box with "Hello" in it.
a. true
b. false
Question: 15
What is the correct syntax to include a script named myScript.js into a page?
a. <script href="myScript.js">
b. <script name="myScript.js">
c. <script src="myScript.js">
d. <script root="myScript.js">
Question: 16
Can an HTML form be sent with AJAX?
a. yes
b. no
Question: 17
Is it possible to make some system calls on the client with AJAX?
a. Yes
b. No
Question: 18
Can WebDav methods like PROPFIND be used with XMLHttpRequest.open()?
a. Yes
b. No
Question: 19
What is the correct way to have the function checkState called after 10 seconds?
a. window.setTimeout(checkState, 10);
b. window.setTimeout(checkState, 10000);
c. window.setTimeout(checkState(), 10);
d. None of the above
Question: 20
What is NOSCRIPT tag for?
a. To prevent the page scripts from executing
b. To shield a part of a page from being modified by JS (like aDiv.innerHTML = 'something' has no effect)
c. To enclose text to be displayed if the browser doesn't support JS
d. NOSCRIPT tag doesn't exist
e. None of the above
Question: 21
What is the standardized name of JavaScript?
a. Java
b. NetscapeScript
c. ECMAScript
d. XMLScript
e. WebScript
Question: 22
Which of the following browsers provide XMLHttpRequest property?
a. Internet Explorer 5
b. Internet Explorer 6
c. Internet Explorer 7
d. Firefox 2.0
e. Safari 3.0
Question: 23
What is the common way to make a request with XMLHttpRequest?
a. myReq.request();
b. myReq.get();
c. myReq.post(null);
d. myReq.send(null);
e. myReq.sendRequest(null);
Question: 24
Can you start multiple threads with JavaScript?
a. Yes
b. No
Question: 25
What is the correct way to execute the function "calc()" when an XMLHttpRequest is loaded?
a. myRequest.onreadystatechange = calc;
b. myRequest.onload = calc;
c. myRequest.execute = calc;
d. myRequest.addCallback (calc, "loaded");
e. None of the above
Question: 26
When a user views a page with JavaScript in it, which machine executes the script?
a. The client machine running the Web Browser
b. The server serving the JavaScript
c. A central JavaScript server like root DNS
d. None of the above
Question: 27
In the following list, which ones are used to fetch the result data of an XMLHttpRequest?
a. responseData
b. responseBody
c. responseString
d. responseText
e. responseXML
Question: 28
Which of the following is a block comment in JavaScript?
a. <!-- -->
b. /* */
c. //
d. #
e. --[[ ]]
Question: 29
Can an AJAX application communicate with other applications on the client computer?
a. Yes
b. No
Question: 30
Which of the following cannot be resolved by using AJAX?
a. Partial page processing
b. Unresponsiveness of web pages
c. Server side communication initiation
d. Server crashes (failover)
e. None of the above
Question: 31
Is it always possible to make requests to multiple websites with different domain names from an AJAX client script?
a. yes
b. no
Question: 32
Can AJAX be used with offline pages? (like a downloadable documentation)
a. yes
b. no
Question: 33
In the following list, which states are valid?
XMLHttpRequest.readyState
a. 0, The request is not initialized
b. 1, The request has been set up
c. 2, The request has been sent
d. 3, The request is in process
e. 4, The request is complete
f. All of the above.
Question: 34
Can AJAX be used with PHP?
a. yes
b. no
Question: 35
What is the correct syntax to create an array in JavaScript?
a. var array = Array.new;
b. var array = [];
c. var array = new Array;
d. var array = new Array ();
e. None of the above
Question: 36
Which of the following is/are not addressed by AJAX?
a. Partial page update
b. Offline browsing
c. Server side scripting
d. All of the above
Question: 37
It might be needed to set the request content-type to XML explicitly. How can you do so for an XMLHttpRequest Object?
a. myReq.setContentType ("text/xml");
b. myReq.contentType = "text/xml";
c. myReq.overrideContentType ("xml");
d. myReq.contentType = "xml";
e. myReq.setRequestHeader ("Content-Type", "text/xml");
Question: 38
Which of the following is not a JavaScript operator?
a. new
b. delete
c. this
d. typeof
e. All of the above are Javascript operators
Question: 39
Can a client AJAX application be used to fetch and execute some JavaScript code?
a. yes
b. no
Question: 40
Is it possible to make a page "reload-safe" when using AJAX?
a. no
b. yes, if each AJAX request modifies the server side context, which would render a page similar to the actual JS modified page, if reloaded.
##Can AJAX be used to
move files on the client-side?
·
a.
Yes
·
b.
No
Is it possible to
create and manipulate an image on the client with AJAX?
·
a.
yes
·
b.
no
#12 Question:
Is the loading of an
AJAX enabled web page any different from the loading of a normal page?
·
a.
No
·
b.
Yes
#14 Question:
Does JavaScript 1.5 have
exception handling?
·
a.
yes
·
b.
no
What language does
AJAX use on the client side?
·
a.
JavaScript
·
b.
AppleScript
·
c.
PHP
·
d.
Ruby
·
e.
Java
#23 Question:
Which attribute of the
SCRIPT tag can be used to hold the JavaScript version?
·
a. VERSION
·
b.
SCRIPT
·
c.
LANGUAGE
·
d.
MILESTONE
·
e.
None of the above
Can you call
responseBody or responseText to get a partial result when the readyState of an
XMLHttpRequest is 3(receiving)?
·
a.
Yes
·
b.
No
Which of the following
status codes denotes a server error?
·
a.
100
·
b.
200
·
c.
300
·
d.
404
·
e.
500
What is true regarding
XMLHttpRequest.abort()?
·
a.
It can only be used with async requests
·
b.
It will remove the onreadystatechange event handler
·
c.
It will send an abort message to the remote server
·
d.
It changes readyState to 4 (aborted)
·
e.
None of the above
Can AJAX be used with
HTTPS (SSL)?
·
a.
yes
·
b.
no
When doing an AJAX
request, will the page be scrolled back to top as with normal requests?
·
a.
Yes
·
b.
No
What is the third
(async) parameter of the XMLHttpRequest open method?
·
a.
If true, the request doesn't return anything.
·
b.
If true, the javascript engine is blocked while making the request
·
c.
If true, the send method returns immediately
·
d.
If true, the request object is destroyed when 'send' is executed
·
e.
If true, callbacks are executed
When may asynchronous
requests be used?
·
a.
To submit data to the server
·
b.
To retrieve data from the server
·
c.
To load additional code from the server
·
d.
To download an image
·
e.
All of the above
Consider the following
function:
function foo ()
{
return 5;
}
What will the following code do?
var myVar = foo;
function foo ()
{
return 5;
}
What will the following code do?
var myVar = foo;
·
a.
Assign the integer 5 to the variable myVar
·
b.
Assign the pointer to function foo to myVar
·
c.
Do nothing
·
d.
Throw an exception
·
e.
None of the above
Javascript uses static
bindings.
·
a.
true
·
b.
false
Which of the following
request types should be used with AJAX?
·
a. HTTP
GET request for retrieving data (which will not change for that URL)
·
b.
HTTP POST request for retrieving data (which will not change for that URL)
·
c.
HTTP GET should be used when the state is updated on the server
·
d.
HTTP POST should be used when the state is updated on the server
The server returns
data to the client during an AJAX postback. Which of the following is correct
about the returned data?
·
a.
It only contains the data of the page elements that need to be changed
·
b.
It contains both the data of the whole page and the data that needs to be
changed in separate blocks
·
c.
It contains the data of the whole page
·
d.
It may contain anything
·
e.
None of the above
The X in AJAX refers
to XML, but is it possible to make a request for plain text data by using AJAX?
·
a.
yes
·
b.
no
Sunday, February 17, 2013
Question:
You want to display a table listing out customer names and their contact information. The heading of the table is shown in the given figure. What is the code for creating the first line of the table heading?
a. <tr>
<th>Customer Name</th>
<th rowspan=3>Contact</th>
</tr>
b. <tr>
<th>Customer Name</th>
<th colspan=3>Contact</th>
</tr>
c. <tr>
<th>Customer Name</th>
<th cellpadding=3>Contact</th>
</tr>
d. <tr>
<th>Customer Name</th>
<th cellspacing=3>Contact</th>
You want to display a table listing out customer names and their contact information. The heading of the table is shown in the given figure. What is the code for creating the first line of the table heading?
a. <tr>
<th>Customer Name</th>
<th rowspan=3>Contact</th>
</tr>
b. <tr>
<th>Customer Name</th>
<th colspan=3>Contact</th>
</tr>
c. <tr>
<th>Customer Name</th>
<th cellpadding=3>Contact</th>
</tr>
d. <tr>
<th>Customer Name</th>
<th cellspacing=3>Contact</th>
</tr>
Question:
What is the default background color for the canvas element in HTML 5.0?
a. Black
b. White
c. Transparent
What is the default background color for the canvas element in HTML 5.0?
a. Black
b. White
c. Transparent
d. Gray
Question:
Which of the following are valid values for the contenteditable attribute of the <figure> element in HTML 5.0?
a. true
b. false
c. 0
Which of the following are valid values for the contenteditable attribute of the <figure> element in HTML 5.0?
a. true
b. false
c. 0
d. 1
Question:
Which media event is triggered when there is an error in fetching media data in HTML 5.0?
a. onstalled
b. onwaiting
c. onsuspend
Which media event is triggered when there is an error in fetching media data in HTML 5.0?
a. onstalled
b. onwaiting
c. onsuspend
d. oninvalid
Question:
Which of the following is NOT a valid attribute for the <link> element in HTML 5.0?
a. hreflang
b. rel
c. http-equiv
Which of the following is NOT a valid attribute for the <link> element in HTML 5.0?
a. hreflang
b. rel
c. http-equiv
d. media
Question:
Which of the following HTML 5.0 elements is used to embed Java applets into your HTML 5.0 web page?
a. <applet>
b. <object>
c. <source>
Which of the following HTML 5.0 elements is used to embed Java applets into your HTML 5.0 web page?
a. <applet>
b. <object>
c. <source>
d.
<progress>
Question:
How does a button created by the <button> tag differ from the one created by an <input> tag?
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.
How does a button created by the <button> tag differ from the one created by an <input> tag?
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.
Question:
Which form event is fired on the click of a button using a button tag with its type attribute value equal to submit?
a. onload
b. onsubmit
c. onunload
Which form event is fired on the click of a button using a button tag with its type attribute value equal to submit?
a. onload
b. onsubmit
c. onunload
d. onreset
Question:
How will you return a reference to the parent of the current window or subframe in an HTML 5.0 web application?
a. window.top
b. window.parent
c. window.frameElement
How will you return a reference to the parent of the current window or subframe in an HTML 5.0 web application?
a. window.top
b. window.parent
c. window.frameElement
d. None of the
above
Question:
Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column?
a. col
b. colgroup
c. rowspan
Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column?
a. col
b. colgroup
c. rowspan
d. row
Question:
Which of the following video file formats are currently supported by the <video> element of HTML 5.0?
a. CCTV
b. MPEG 4
c. Ogg
Which of the following video file formats are currently supported by the <video> element of HTML 5.0?
a. CCTV
b. MPEG 4
c. Ogg
d. 3GPP
This question is based
upon the figure shown below
Question:
Suppose you add the input code given above to your HTML web page. What result will be returned by the JavaScript function when you click the button marked as A in the image?
a. number
b. text
c. button
Question:
Suppose you add the input code given above to your HTML web page. What result will be returned by the JavaScript function when you click the button marked as A in the image?
a. number
b. text
c. button
d. None of the
above
Question:
Which of the following statements is correct if you allow the user to select only one radio button from a group of radio buttons?
a. The name of the input tag must be the same for all the radio buttons.
b. The value of the input tag must be the same for all the radio buttons.
c. The display text of the input tag must be the same for all the radio buttons.
Which of the following statements is correct if you allow the user to select only one radio button from a group of radio buttons?
a. The name of the input tag must be the same for all the radio buttons.
b. The value of the input tag must be the same for all the radio buttons.
c. The display text of the input tag must be the same for all the radio buttons.
d. All the radio
buttons must be added to the same group using the <optgroup> tag.
Question:
What will be the result if you use the following code to your HTML 5.0 document?
<bdo dir=”rtl”>
Here is some text that should be written to your document.
</bdo>
a. .tnemucod ruoy ot nettirw eb dluohs taht txet emos si ereH
b. Here is some text that should be written to your document.
c. Here is some text that should be written to your document.
What will be the result if you use the following code to your HTML 5.0 document?
<bdo dir=”rtl”>
Here is some text that should be written to your document.
</bdo>
a. .tnemucod ruoy ot nettirw eb dluohs taht txet emos si ereH
b. Here is some text that should be written to your document.
c. Here is some text that should be written to your document.
d. None of the
above.
Question:
Which of the following would give a yellow background to the web page?
Note: The code used in the “correct” answer below was deprecated in HTML 4.01! Use styles instead for new code.
a. <body backcolor=”Yellow”>
b. <body background=”Yellow”>
c. <body bgcolor=”Yellow”>
Which of the following would give a yellow background to the web page?
Note: The code used in the “correct” answer below was deprecated in HTML 4.01! Use styles instead for new code.
a. <body backcolor=”Yellow”>
b. <body background=”Yellow”>
c. <body bgcolor=”Yellow”>
d. <body
color=”Yellow”>
Question:
How will you change the value of the cookies and items in the Storage objects of the localStorage attributes in HTML 5.0?
a. By invoking the window.dialogArguments() API method.
b. By invoking the window. navigator.yieldForStorageUpdates() API method.
How will you change the value of the cookies and items in the Storage objects of the localStorage attributes in HTML 5.0?
a. By invoking the window.dialogArguments() API method.
b. By invoking the window. navigator.yieldForStorageUpdates() API method.
c. By
invoking the window.navigator.appName API method.
Question:
How will the target URL open when you define the <a> element in your HTML 5.0 document as shown below?
<a href=”http://www.yahoo.com” target=”_self”>Click here</a>
a. The target URL will open in the parent document.
b. The target URL will open in a new window.
c. The target URL will open in the same document in which it was clicked.
How will the target URL open when you define the <a> element in your HTML 5.0 document as shown below?
<a href=”http://www.yahoo.com” target=”_self”>Click here</a>
a. The target URL will open in the parent document.
b. The target URL will open in a new window.
c. The target URL will open in the same document in which it was clicked.
d. The target URL
will open in the full body of the window.
Question:
What will be the browsing context if the browsing context name is _top when the HTML 5.0 web page is loading?
a. It will put the new document in the same window and frame as the current document.
b. It will load the linked document in the topmost frame.
c. It is used in the situation where a frameset file is nested inside another frameset file.
What will be the browsing context if the browsing context name is _top when the HTML 5.0 web page is loading?
a. It will put the new document in the same window and frame as the current document.
b. It will load the linked document in the topmost frame.
c. It is used in the situation where a frameset file is nested inside another frameset file.
d. Both a and c.
Question:
Which of the following is an INVALID value for the type attribute of command tag?
a. checkbox
b. radio
c. command
Which of the following is an INVALID value for the type attribute of command tag?
a. checkbox
b. radio
c. command
d.
text
Question:
The following link is placed on an HTML webpage.
<a href=”http://msdn.com/” target=”_blank”> MSDN </a>
What do you infer from it?
a. It will open the site msdn.com in the same window.
b. It will open the site msdn.com in a new window.
c. It will open the site msdn.com in a frame below.
The following link is placed on an HTML webpage.
<a href=”http://msdn.com/” target=”_blank”> MSDN </a>
What do you infer from it?
a. It will open the site msdn.com in the same window.
b. It will open the site msdn.com in a new window.
c. It will open the site msdn.com in a frame below.
d. It will not be
clickable as it is not formed correctly.
Question:
You have the following directory structure.
webroot->products->ordered->delivered
The products directory has a page called Products.html and the delivered directory has a page called Delivered.html. You want to provide a link to the Products page on Delivered.html. The ideal code should be:
a. <a href=”././Products.html”> All Products </a>
b. <a href=”../../Products.html”> All Products </a>
c. <a href=”…/…/Products.html”> All Products </a>
d. <a href=”../Products.html”> All Products </a>
You have the following directory structure.
webroot->products->ordered->delivered
The products directory has a page called Products.html and the delivered directory has a page called Delivered.html. You want to provide a link to the Products page on Delivered.html. The ideal code should be:
a. <a href=”././Products.html”> All Products </a>
b. <a href=”../../Products.html”> All Products </a>
c. <a href=”…/…/Products.html”> All Products </a>
d. <a href=”../Products.html”> All Products </a>
e. <a
href=”Products.html”> All Products</a>
Question:
What will be the result if you use the following code to your HTML 5.0 document?
<p>I use <del>MAC</del> <ins>Microsoft</ins>!</p>
a. I use MAC Microsoft!
b. I use MAC Microsoft!
c. I use MAC Microsoft!
What will be the result if you use the following code to your HTML 5.0 document?
<p>I use <del>MAC</del> <ins>Microsoft</ins>!</p>
a. I use MAC Microsoft!
b. I use MAC Microsoft!
c. I use MAC Microsoft!
d. I use MAC
Microsoft!
Question:
Which of the following is the correct syntax to define a charset in the HTML 5 <meta> element?
a. <meta http-equiv=”content-type” content=”text/html; charset=ISO-8859-1″>
b. <meta charset=”ISO-8859-1″>
Which of the following is the correct syntax to define a charset in the HTML 5 <meta> element?
a. <meta http-equiv=”content-type” content=”text/html; charset=ISO-8859-1″>
b. <meta charset=”ISO-8859-1″>
c. Neither a
nor b.
Question:**
Which of the following is NOT a supported attribute of the <ol> element in HTML 5.0?
a. type
b. reversed
c. start
Which of the following is NOT a supported attribute of the <ol> element in HTML 5.0?
a. type
b. reversed
c. start
d.
compact
Question:
Which of the following is a valid attribute for the <colgroup> element in an HTML 5.0 document?
a. char
b. span
c. align
Which of the following is a valid attribute for the <colgroup> element in an HTML 5.0 document?
a. char
b. span
c. align
d. width
Question:
Which of the following is the correct method to load another web page or reload the same page in HTML 5.0?
a. <head>
<meta http-equiv=refresh content=5>
</head>
b. <html>
<head>
<title>Auto Reload</title>
<script language=”JavaScript”>
<!–
var time = null
function move() {
window.location = ‘http://site.com’
}
//–>
</script>
</head>
<body onload=”timer=setTimeout(‘move()’,5000)”>
<p>see this page refresh itself in 5 secs.<p>
</body>
</html>
c. <head>
<meta http-equiv=refresh content=”5;URL=http://yahoo.com >
</head>
Which of the following is the correct method to load another web page or reload the same page in HTML 5.0?
a. <head>
<meta http-equiv=refresh content=5>
</head>
b. <html>
<head>
<title>Auto Reload</title>
<script language=”JavaScript”>
<!–
var time = null
function move() {
window.location = ‘http://site.com’
}
//–>
</script>
</head>
<body onload=”timer=setTimeout(‘move()’,5000)”>
<p>see this page refresh itself in 5 secs.<p>
</body>
</html>
c. <head>
<meta http-equiv=refresh content=”5;URL=http://yahoo.com >
</head>
d.
All of the above
Question:
Which of the following elements preserves spaces and line breaks, and displays the text in fixed-width font?
a. <xmp>
b. <pre>
c. <p>
d. <q>
Which of the following elements preserves spaces and line breaks, and displays the text in fixed-width font?
a. <xmp>
b. <pre>
c. <p>
d. <q>
e. <br>
Question:
Which <body> tag event is fired when the user leaves the document?
a. onunload
b. onundo
c. onredo
Which <body> tag event is fired when the user leaves the document?
a. onunload
b. onundo
c. onredo
d. onerror
Question:**
Which of the following is an INVALID keyword value for http-equiv attribute when used with the <meta> element in HTML 5.0?
a. content-type
b. expires
c. set-cookie
d. keywords
e. refresh
Which of the following is an INVALID keyword value for http-equiv attribute when used with the <meta> element in HTML 5.0?
a. content-type
b. expires
c. set-cookie
d. keywords
e. refresh
f. author
Question:
A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets?
a. <emp>
b. <code>
c. <dfn>
A computer programming book has to go online. Which of the following tags is ideal for displaying the program snippets?
a. <emp>
b. <code>
c. <dfn>
d. <cite>
Question:
Which of the following is NOT a valid value for the type attribute of the <input> element in HTML 5.0?
a. url
b. week
c. tel
d. radio
e. datetime-local
Which of the following is NOT a valid value for the type attribute of the <input> element in HTML 5.0?
a. url
b. week
c. tel
d. radio
e. datetime-local
f.
All of the
above are the valid values for <input> element
Question:
What is the role of the <dfn> element in HTML 5.0?
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.
What is the role of the <dfn> element in HTML 5.0?
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
Question:
Which of the following is NOT a valid syntax for the <link> element in HTML 5.0?
a. <link rel=”icon” href=”abc.jpg” sizes=”16×16″>
b. <link rev=”stylesheet” href=”abc.css” type=”text/css” target=”_parent”>
Which of the following is NOT a valid syntax for the <link> element in HTML 5.0?
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”>
Question:**
Which of the following are valid HTML 5.0 elements?
a. <canvas>
b. <summary>
c. <aside>
Which of the following are valid HTML 5.0 elements?
a. <canvas>
b. <summary>
c. <aside>
d. <video>
Question:
Which of the following is NOT a valid syntax for the <h1> element in HTML 5.0?
a. <h1> This is header 1</h1>
b. <h1 align=”center”> This is header 1</h1>
c. <h1 onClick=”dothis(‘sc1′)” >This is header </h1>
Which of the following is NOT a valid syntax for the <h1> element in HTML 5.0?
a. <h1> This is header 1</h1>
b. <h1 align=”center”> This is header 1</h1>
c. <h1 onClick=”dothis(‘sc1′)” >This is header </h1>
d. <h1
style=”cursor:auto;”>This is header </h1>
Question:
Which of the following statements are correct with regard to <hr> and <br> elements of HTML 5.0?
a. <hr> element acts in the same way as the Tab key on your keyboard and <br> element acts in the same way as the SHIFT key on your keyboard.
b. <hr> element is used to insert the horizontal line within your document and <br> element is used to insert a single line break.
Which of the following statements are correct with regard to <hr> and <br> elements of HTML 5.0?
a. <hr> element acts in the same way as the Tab key on your keyboard and <br> element acts in the same way as the SHIFT key on your keyboard.
b. <hr> element is used to insert the horizontal line within your document and <br> element is used to insert a single line break.
c.
<hr>
element is used to put a line across the page and <br> element acts in
the same way as the ENTER key on your keyboard.
Question:
What will be the return value when using the window.navigator.appName API method in an HTML 5.0 web application?
a. It will return the version of the browser.
b. It will return the complete User-Agent header.
c. It will return the name of the platform.
What will be the return value when using the window.navigator.appName API method in an HTML 5.0 web application?
a. It will return the version of the browser.
b. It will return the complete User-Agent header.
c. It will return the name of the platform.
d.
It will return the
name of the browser.
Question:
Which of the following languages will you use to paint the graphics designed using the HTML 5.0 <canvas> tag?
a. VB script
b. JavaScript
c. PostScript
Which of the following languages will you use to paint the graphics designed using the HTML 5.0 <canvas> tag?
a. VB script
b. JavaScript
c. PostScript
d. None of the
above
Question:
What is the function of the history traversal task source in HTML 5.0?
a. It is used for features that react to user interaction, for example, keyboard or mouse input.
b. It is used for features that react to DOM manipulations, for example, the things that happen asynchronously when an element is inserted in the document.
c. It is used to queue calls to history.back() and similar APIs.
What is the function of the history traversal task source in HTML 5.0?
a. It is used for features that react to user interaction, for example, keyboard or mouse input.
b. It is used for features that react to DOM manipulations, for example, the things that happen asynchronously when an element is inserted in the document.
c. It is used to queue calls to history.back() and similar APIs.
d. All of the
above.
Question:
Which <iframe> attribute is used to define the restrictions to the frame content in HTML 5.0?
a. seamless
b. sandbox
Which <iframe> attribute is used to define the restrictions to the frame content in HTML 5.0?
a. seamless
b. sandbox
c. srcdoc
Topic: Correct Answers
|
HTML 5 Events
|
|
|
Loading HTML 5 Web pages
|
|
|
HTML 5 Web application APIs
|
|
|
HTML 5 Elements and attributes
|
|
|
HTML 5 syntax
|
Question:
In HTML 5.0, what is the function of the sandbox attribute when used with <iframe> as shown below?
<iframe src=”aaa ” sandbox=?></iframe>
a. It is used to define the restrictions to the frame content.
b. It is used to define the URL of the document that should appear in the iframe.
c. It is
used to specify that an iframe should appear as if it is part of the document
the iframe is in.
Question:
Which of the following statements is/are correct for a blockquote?
a. It makes the text a bit bigger for emphasizing.
b. It defines the start of a long quote.
Which of the following statements is/are correct for a blockquote?
a. It makes the text a bit bigger for emphasizing.
b. It defines the start of a long quote.
c. It makes
the text slightly bolder.
Question:
Which event is fired when the history of the browser window changes?
a. onpopstate
b. onstorage
c. onresize
Which event is fired when the history of the browser window changes?
a. onpopstate
b. onstorage
c. onresize
d. onhashchange
Question:
Which of the following <link> attributes are NOT supported in HTML 5.0?
a. sizes
b. rev
c. rel
Which of the following <link> attributes are NOT supported in HTML 5.0?
a. sizes
b. rev
c. rel
d.
charset
This question is based
upon the figure shown below
Question:
Suppose you placed four radio buttons on a web form. Which of the following statements is correct for the code shown above?
a. The user can choose only the male and the married options.
b. The user can choose only the female and single options.
c. The user can choose only one option out of the four.
d. The user can choose all the four options at the same time.
Question:
Suppose you placed four radio buttons on a web form. Which of the following statements is correct for the code shown above?
a. The user can choose only the male and the married options.
b. The user can choose only the female and single options.
c. The user can choose only one option out of the four.
d. The user can choose all the four options at the same time.
e. The user can
choose one option from Male/Female and one from Married/Single.
Question:
When does the ondragleave mouse event get fired in HTML 5.0?
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.
When does the ondragleave mouse event get fired in HTML 5.0?
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.
Question:**
Which of the following are valid mouse events in HTML 5.0?
a. ondblclick
b. ondragstart
c. ondragenter
d. onscroll
Which of the following are valid mouse events in HTML 5.0?
a. ondblclick
b. ondragstart
c. ondragenter
d. onscroll
e.
ondrop
Question:
Which of the following <iframe> attributes are NOT supported in HTML 5.0?
a. height
b. marginheight
c. sandbox
Which of the following <iframe> attributes are NOT supported in HTML 5.0?
a. height
b. marginheight
c. sandbox
d.
scrolling
Question:
In HTML 5.0, which of the following attributes of the <object> element refers to the location of the object’s data?
a. type
b. codebase
c. data
In HTML 5.0, which of the following attributes of the <object> element refers to the location of the object’s data?
a. type
b. codebase
c. data
d. usemap
Question:
In which of the following conditions is a browsing context A allowed to navigate a second browsing context B?
a. When the browsing context A is a nested browsing context and its top-level browsing context is B.
b. When the browsing context B is an auxiliary browsing context and A is allowed to navigate B’s opener browsing context.
c. The origin of the active document of A is the same as the origin of the active document of B.
In which of the following conditions is a browsing context A allowed to navigate a second browsing context B?
a. When the browsing context A is a nested browsing context and its top-level browsing context is B.
b. When the browsing context B is an auxiliary browsing context and A is allowed to navigate B’s opener browsing context.
c. The origin of the active document of A is the same as the origin of the active document of B.
d.
All of the above
Question:
Which of the following is an INVALID parameter for the window.navigator.registerContentHandler API method in an HTML 5.0 web application?
a. url
b. mimeType
c. scheme
Which of the following is an INVALID parameter for the window.navigator.registerContentHandler API method in an HTML 5.0 web application?
a. url
b. mimeType
c. scheme
d. title
Question:
How will the target URL open when you define the <a> element in your HTML 5.0 document as shown below?
<a href=”http://www.yahoo.com” target=”_self”>Click here</a>
a. The target URL will open in the parent document.
b. The target URL will open in a new window.
c. The target URL will open in the same document in which it was clicked.
How will the target URL open when you define the <a> element in your HTML 5.0 document as shown below?
<a href=”http://www.yahoo.com” target=”_self”>Click here</a>
a. The target URL will open in the parent document.
b. The target URL will open in a new window.
c. The target URL will open in the same document in which it was clicked.
d. The target URL
will open in the full body of the window.
Question:
You specified a base tag and anchors as follows:
1. <base target=”_blank”>
2. <a href=”http://www.yahoo.com”>Yahoo</a>
3. <a href=”http://www.google.com” target=”_top”>Google</a>
Which of the following is true of the above code?
a. Only the Yahoo link will open in a new window.
b. Only the Google link will open in a new window.
c. Both links will open in a new window.
You specified a base tag and anchors as follows:
1. <base target=”_blank”>
2. <a href=”http://www.yahoo.com”>Yahoo</a>
3. <a href=”http://www.google.com” target=”_top”>Google</a>
Which of the following is true of the above code?
a. Only the Yahoo link will open in a new window.
b. Only the Google link will open in a new window.
c. Both links will open in a new window.
d. Both links will
open in the same window.
Question:
When is the window onstorage event triggered in the HTML document?
a. It is triggered when the window is resized.
b. It is triggered when a document loads.
c. It is triggered when a document performs an undo function.
When is the window onstorage event triggered in the HTML document?
a. It is triggered when the window is resized.
b. It is triggered when a document loads.
c. It is triggered when a document performs an undo function.
d. It is triggered
when the window becomes visible.
Question:
In HTML 5.0, how will the script be executed if you use the script element shown below?
<script src=”script.js” type=”text/javascript” defer=”defer”></script>
a. The script is fetched and executed immediately, before the user agent continues parsing the page.
b. The script will be executed when the page has finished parsing.
In HTML 5.0, how will the script be executed if you use the script element shown below?
<script src=”script.js” type=”text/javascript” defer=”defer”></script>
a. The script is fetched and executed immediately, before the user agent continues parsing the page.
b. The script will be executed when the page has finished parsing.
c. The
script will be executed asynchronously, as soon as it is available.
Question:
Which of the following is correct with regard to the oncanplaythrough event fired by media resources in the HTML 5.0 document?
a. The script will run when the media has reached the end.
b. The script will run when the media is played to the end, without stopping for buffering.
c. The script will run when media data is loaded.
Which of the following is correct with regard to the oncanplaythrough event fired by media resources in the HTML 5.0 document?
a. The script will run when the media has reached the end.
b. The script will run when the media is played to the end, without stopping for buffering.
c. The script will run when media data is loaded.
d. The script will
run when the length of the media is changed.
Question:
What is the output when you use the HTML 5.0 code snippet shown below?
<body onload=”alert(this)”>
a. It will alert saying “[object HTMLBodyElement]” when the document is loaded.
b. It will alert saying “[object Window]” when the document is loaded.
c. It will alert saying “[this]” when the document is loaded.
What is the output when you use the HTML 5.0 code snippet shown below?
<body onload=”alert(this)”>
a. It will alert saying “[object HTMLBodyElement]” when the document is loaded.
b. It will alert saying “[object Window]” when the document is loaded.
c. It will alert saying “[this]” when the document is loaded.
d. The alert
message is not properly defined in the body element and an error will be
generated when the document is loaded.
Question:
Which of the following represents INVALID syntax for defining an attribute value in an HTML 5.0 document?
a. <input name =’be evil’ />
b. <input name=be evil />
c. <input name = “be-evil” />
Which of the following represents INVALID syntax for defining an attribute value in an HTML 5.0 document?
a. <input name =’be evil’ />
b. <input name=be evil />
c. <input name = “be-evil” />
d.
All of the above.
Question:
What is the purpose of the <q> element in HTML 5.0?
a. It is used to define the start of a term in a definition list.
b. It is used to define attribute values for one or more columns in a table.
c. It is used to define the start of a short quotation.
What is the purpose of the <q> element in HTML 5.0?
a. It is used to define the start of a term in a definition list.
b. It is used to define attribute values for one or more columns in a table.
c. It is used to define the start of a short quotation.
d. It is used to
define what to show browsers that do not support the ruby element.
Question:
Which of the following events is NOT supported in HTML 5.0?
a. oninput
b. oninvalid
c. ondrop
Which of the following events is NOT supported in HTML 5.0?
a. oninput
b. oninvalid
c. ondrop
d.
onreset
Question:
How will you cancel the timeouts that are set with the setInterval() API method identified by the handlers in HTML 5.0?
a. window.clearInterval (handle)
b. window.clearTimeout (handle)
c. window.setInterval (code, timeout)
How will you cancel the timeouts that are set with the setInterval() API method identified by the handlers in HTML 5.0?
a. window.clearInterval (handle)
b. window.clearTimeout (handle)
c. window.setInterval (code, timeout)
d.
window.setTimeout (code, timeout)
Question:
Which of the following tags would assist in creating named groups within a select list?
a. opt
b. group
c. optgroup
Which of the following tags would assist in creating named groups within a select list?
a. opt
b. group
c. optgroup
d. selectgroup
Question:
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.0 attributes will you use?
a. accept
b. autofocus
c. autocomplete
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.0 attributes will you use?
a. accept
b. autofocus
c. autocomplete
d.
formtarget
Question:
Which HTML 5.0 element will you use to group the related options in a drop-down list?
a. optgroup
b. option
c. menu
d. var
Which HTML 5.0 element will you use to group the related options in a drop-down list?
a. optgroup
b. option
c. menu
d. var
e. nav
This question is based
upon the figure shown below
Question:
How will you bind the datalist option (shown below) with an <input> element, whose type attribute is set to url, to get the result shown in the image?
a. User should define an accept attribute to the input element whose type is url.
b. User should define multiple attribute to the input element whose type is url.
c. User should define a list attribute to the input element whose type is url.
Question:
How will you bind the datalist option (shown below) with an <input> element, whose type attribute is set to url, to get the result shown in the image?
a. User should define an accept attribute to the input element whose type is url.
b. User should define multiple attribute to the input element whose type is url.
c. User should define a list attribute to the input element whose type is url.
d. User should define
a placeholder attribute to the input element whose type is url.
Question:
What does the icon attribute of the HTML 5.0 command tag define?
<command icon=”?”>Click Me!</command>
a. It is used to define the url of an image to display as the command.
b. It is used to define the name of the radiogroup this command belongs to.
c. It is used to define if the command is checked or not.
What does the icon attribute of the HTML 5.0 command tag define?
<command icon=”?”>Click Me!</command>
a. It is used to define the url of an image to display as the command.
b. It is used to define the name of the radiogroup this command belongs to.
c. It is used to define if the command is checked or not.
d. It is used to
define if the command is available or not.
Question:
In HTML 5.0, 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>
a. button
b. command
c. checkbox
In HTML 5.0, 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>
a. button
b. command
c. checkbox
d. radio
Question:
A piece of text contains many blank spaces within it. Which of the following tags would be suitable to display the text as it was originally formatted?
a. td
b. p
c. ls
A piece of text contains many blank spaces within it. Which of the following tags would be suitable to display the text as it was originally formatted?
a. td
b. p
c. ls
d.
pre
Question:
Which event is fired when an element loses its focus in HTML 5.0 document?
a. onfocus
b. onload
c. onblur
Which event is fired when an element loses its focus in HTML 5.0 document?
a. onfocus
b. onload
c. onblur
d. onselect
Question:
What is the purpose of the <keygen> element in HTML 5.0?
a. It is used to define a keyboard text in an HTML 5.0 web page.
b. It is used to generate a public-private key pair in an HTML 5.0 web page.
c. It is used to define a definition term in an HTML 5.0 web page.
What is the purpose of the <keygen> element in HTML 5.0?
a. It is used to define a keyboard text in an HTML 5.0 web page.
b. It is used to generate a public-private key pair in an HTML 5.0 web page.
c. It is used to define a definition term in an HTML 5.0 web page.
d. It is used to
define a variable in an HTML 5.0 web page.
Question:
Which of the following is NOT a valid attribute for the <video> element in HTML 5.0?
a. controls
b. autoplay
c. disabled
Which of the following is NOT a valid attribute for the <video> element in HTML 5.0?
a. controls
b. autoplay
c. disabled
d. preload
Question:
While rendering your HTML 5.0 web page, which of the following <link> element files will get skipped by a compliant user agent if you include the link elements shown below in your document?
<link rel=”stylesheet” href=”A” type=”text/plain”>
<link rel=”stylesheet” href=”B” type=”text/css”>
a. A link element whose href is “B”
b. A link element whose href is “A”
While rendering your HTML 5.0 web page, which of the following <link> element files will get skipped by a compliant user agent if you include the link elements shown below in your document?
<link rel=”stylesheet” href=”A” type=”text/plain”>
<link rel=”stylesheet” href=”B” type=”text/css”>
a. A link element whose href is “B”
b. A link element whose href is “A”
c. None of
the above
Question:
Which media event will be fired when a media resource element suddenly becomes empty?
a. onerror
b. onended
c. onloadeddata
Which media event will be fired when a media resource element suddenly becomes empty?
a. onerror
b. onended
c. onloadeddata
d.
onemptied
Question:
Which of the following is NOT an attribute of the <meta> element in HTML 5.0?
a. charset
b. content
c. http-equiv
d.
scheme
Question:
Which of the following statements is correct if you invoke the window.prompt (message, default) web application API method in HTML 5.0?
a. It will only show the modal text field prompt with the given message to the user.
b. It will show the modal text field prompt with the given message to the user, and ask the user to respond with a positive or negative response.
c. It will show the modal text field prompt with the given message to the user, and ask the user to either respond with a string value or abort.
Which of the following statements is correct if you invoke the window.prompt (message, default) web application API method in HTML 5.0?
a. It will only show the modal text field prompt with the given message to the user.
b. It will show the modal text field prompt with the given message to the user, and ask the user to respond with a positive or negative response.
c. It will show the modal text field prompt with the given message to the user, and ask the user to either respond with a string value or abort.
d.
Both b and c.
Question:
Which of the following is NOT a valid value for the <iframe> sandbox attribute in HTML 5.0?
a. url
b. allow-scripts
c. allow-same-origin
Which of the following is NOT a valid value for the <iframe> sandbox attribute in HTML 5.0?
a. url
b. allow-scripts
c. allow-same-origin
d. allow-forms
Question:
What is the function of onobsolete, an application cache API method in HTML 5.0?
a. It reflows the HTML document using updated cached content.
b. It triggers an event when the cache content has been marked as obsolete.
c. It triggers an event when the cache content has been updated.
What is the function of onobsolete, an application cache API method in HTML 5.0?
a. It reflows the HTML document using updated cached content.
b. It triggers an event when the cache content has been marked as obsolete.
c. It triggers an event when the cache content has been updated.
d. It updates the
cache for the current document in the background.
Question:
Which of the following <section> elements have the correct attribute assignment as per HTML 5.0?
a. <section id=”example”>…</section id=”example”>
b. <section id=”example”>…</section id=”example2″>
c. <section id=”EXAMPLE”>…</section>
Which of the following <section> elements have the correct attribute assignment as per HTML 5.0?
a. <section id=”example”>…</section id=”example”>
b. <section id=”example”>…</section id=”example2″>
c. <section id=”EXAMPLE”>…</section>
|
HTML 5
Elements and attributes
|
63%
|
|
HTML 5
Events
|
86%
|
|
HTML 5
syntax
|
88%
|
|
HTML 5
Web application APIs
|
75%
|
|
Loading
HTML 5 Web pages
|
50%
|
d.
<section
id=”Example”>…</section>
e.
<section
id=”example”>…</section>
No comments:
Post a Comment