Tuesday, February 2, 2016

Upwork Adobe Photoshop CS3 Test Question Answers

Are locking for Adobe Photoshop CS3 Test Questions & Answers for Upwork ? 
here can find your best solution for this question, upwork test answer follow below.



Which of the following is not a kind of text type?

Upwork Adobe Photoshop CS3 Test Answers
a. Point Type
b. Paragraph Type
c. Type on a path
d. Line type (ans)


State whether True or False:
You cannot arrange the stacking order of the Auto slices.
a. True (ans)
b. False


Anti-aliasing option is available for which of the given Tools?
All of the above (Ans)


Auto Blend Layers is available for which of the following modes?
Both a and b (Ans)


In which Format will you save your file to preserve the Alpha channels?
All of the above (Ans)


In which of the following Modes can you draw while working with the Shape or Pen tools?
All of the above (Ans)


Kerning is the adjustment of the space between individual letter.
True (Ans)


Layer styles cannot be applied to which of the following options?
Locked layer (Answer)

Refer to the given image.
What happens when Use Legacy is selected as shown in the given picture?
Both a and b (Ans)


Refer to the given image.
When is the Canvas Extension Color Menu not available as shown in the given image?
When an image contains a background layer(Ans)


Refer to the given image.
Which among the following Methods adds pixels by averaging the color values of the surrounding pixels and produces medium-quality results?
A (ans)

Refer to the given image.
Which icon indicates Type 1 kind of fonts?
B (Ans)

Refer to the given image.
Which Liquify Tool is used to reconstruct a part of a distorted image?
A (ans)

Refer to the given image.
Which option will you select to remove the existing profile from the document in the given image?
A (ans)

Refer to the given image.
Why do we select Remember Palette Locations option (marked as A) as shown in the given image?
To display palettes in their last locations on startup (ans)

State whether True or False:
By default, Masks applied to Smart objects are linked to Smart object layers.
False (ans)

State whether True or False:
Hanging Punctuation controls the alignment of the punctuation marks for a specific paragraph.
True (Ans)

State whether True or False:
Photoshop supports a maximum pixel dimension of 300,000 by 300,000 pixels per image.
True (Ans)

State whether True or False:
The Healing Brush Tool cannot be applied to video or animation frames.
False (Ans)

State whether True or False:
Video layers do not work in the Frame mode.
True (Ans)

State whether True or False:
When you create a new image with the transparent content, the image does not have a background layer.
True (Ans)

The individual Histograms in the All Channels View does not include which of the following
All of the above (ans)

The Rotate Canvas command does not work on which of the following
All of the above (ans)

Which among the following is not a right option for selecting a web-safe color from the Color Palette?
Choose Current Color from the Color Palette Menu (ans)


Which among the following Modes does not support layers?
All of the above (ans)

Which among the following QuickTime Video formats is supported by Photoshop extended?
All of the above (ans)

Which Animation mode shows the frame duration and keyframed layer properties of the videos and animations in a Timeline?
Timeline (ans)

Which Filter embeds a digital Watermark into an image to store a copyright information?
Digimarc filters (ans)


Which keyboard shortcut (windows) will you choose to close a Path?
None of the above (ans)

Which keyboard shortcut (windows) will you choose to group Layers?
Control + G (ans)

Which of the following file formats supports embedded color profiles?
All of the above (ans)

Which of the following is not true about a Droplet?
None of the above (ans)

Which of the following Layer properties can be animated?
All of the above (ans)


Which of the following Slices is created with the Slice Tool?
User slices (ans)

Which option will you choose to convert Document Colors into another profile?
Choose Edit > Convert to profile (ans)


Which option will you choose to Refresh a Histogram?
All of the above (ans)

Which option will you choose to select all layers of a similar type?
Select one of the layers. Choose Layer > Select Similar Layers (ans)

Which option will you select to apply the Extrude filter?
Choose Filter > Stylize > Extrude (ans)

Which option will you select to convert Types to Shapes?
Both b and c (ans)


Which option will you select to display a file at 100% size?
Choose View > Actual Pixels (ans)


Which option will you select to export layers?
Choose File > Scripts > Export Layers To Files (ans)


Which option will you select to open the Levels dialog box?
Choose Image > Adjustments > Levels (ans)


Which option will you select to remove an effect from a style?
In the Layers Palette, drag the Effects Bar to the Delete icon (ans)


Which type of character is generated by Photoshop when the font does not include superscript or subscript characters?
Both a and b (ans)

Which type of images are resolution-dependent?
Vector images (ans)


Which View will you choose to display a Histogram with no controls or statistics?
Compact View (ans)

With which of the given options does the Signal Strength Meter appear?
It appears when you choose ‘merge to hdr command’ (ans)


State whether True or False:
A working space is an intermediate color space used to define and edit color in Adobe applications.
a. True (ans)
b. False


State whether True or False:
The Out Of Gamut option works only on RGB and Lab images.
a. True (ans)
b. False


Channels can not be added to which of the following image modes?
a. RGB
b. CMYK
c. Bitmap (ans)
d. Lab


A Motion Picture film has a frame rate of how many fps?
a. 29.97
b. 23.976
c. 25
d. 24 (ans)


Which of the following is not true about Filters?
a. Filters cannot be applied to Bitmap-mode or indexed-color images
b. All filters can be applied to 8-bit images
c. Filters are applied to the active, visible layer or a selection
d.None of the above (ans)

Which of the given options displays the Modal control in the Actions palette
Which of the given options displays the Modal control in the Actions palette
This question is based upon the figure shown below
Refer to the given image.
Which of the given options displays the Modal control in the Actions palette?
a. A
b. B
c. C
d. D (ans)


State whether True or False:
The mask created by the Replace Color command is permanent.
a. True
b. False (ans)

Which of the following options displays Temporary Work Path in the Paths palette?
Which of the following options displays Temporary Work Path in the Paths palette?
This question is based upon the figure shown below
Refer to the given image.
Which of the following options displays Temporary Work Path in the Paths palette?
a. A
b. B (ans)
c. C
d. All of the above


State whether True or False:
Changing units on the Info Palette automatically changes the units on Rulers.
a. True (ans)
b. False


Which type of images are resolution-dependent?
a. Bitmap images
b. Vector images (ans)
c. Both a and b
d. None of the above


In which of the given instances, a caution icon appears next to the layer comp name as shown in the picture
In which of the given instances, a caution icon appears next to the layer comp name as shown in the picture
This question is based upon the figure shown below
Refer to the given image.
In which of the given instances, a caution icon appears next to the layer comp name as shown in the picture?
a. When you delete a layer
b. When you merge a layer
c. When you convert a layer to a background
d. All of the above



Which of the given options displays left indent in the Paragraph palette
Which of the given options displays left indent in the Paragraph palette
This question is based upon the figure shown below
Refer to the given image.
Which of the given options displays left indent in the Paragraph palette?
a. A
b. B (ans)
c. C
d. D


What is meant by Contact Sheet?
a. Contact Sheets let you easily preview and catalog groups of images by displaying a series of thumbnails on a single page (ans)
b. Contact Sheets let you use a variety of images to create a multipage document or slide show presentation
c. Contact Sheets let you place multiple copies of a source image on a single page
d. All of the above


Which of the following features is supported by the EPS file format?
a. It supports the Grayscale and Bitmap color modes (ans)
b. It supports the Support Alpha Channels
c. It supports the Clipping paths
d. All of the above


Which option is not turned off by the Extras command in the View menu?
a. It does not turn off the Guide feature
b. It does not turn off the Grid feature
c. It does not turn off the Smart Guide feature
d. It does not turn off the Rulers feature (ans)


Which option will you select to display a file at 100% size?
a. Choose View > Actual Pixels (ans)
b. Choose View > Fit on Screen
c. Choose View > Print Size
d. All of the above


What is the use of the Make Work Path command in the Paths palette ?
a. It eliminates any feathering applied to the selection
b. It can alter the shape of a selection
c. Both a and b (ans)
d. None of the above



Which of the following Lock options in the Layers palette prevents modification of the layer’s pixels using the painting tools
Which of the following Lock options in the Layers palette prevents modification of the layer’s pixels using the painting tools
question is based upon the figure shown below
Refer to the given image.
Which of the following Lock options in the Layers palette prevents modification of the layer’s pixels using the painting tools?
a. A
b. B (ans)
c. C
d. None of the above



Which of the given options displays the Set Tsume option in the Character Palette
Which of the given options displays the Set Tsume option in the Character Palette
Refer to the given image.
Which of the given options displays the Set Tsume option in the Character Palette?
a. A
b. B (ans)
c. C
d. D




When will the Dynamic shortcuts appear in the Character Palette Menu as shown in the picture
When will the Dynamic shortcuts appear in the Character Palette Menu as shown in the picture
Refer to the given image.
When will the Dynamic shortcuts appear in the Character Palette Menu as shown in the picture?
a. When you are entering the Point type
b. When you are entering the Paragraph type
c. When the I-beam is in text
d. All of the above (ans)



Which option adjusts Highlights in the Levels dialog box
Which option adjusts Highlights in the Levels dialog box
This question is based upon the figure shown below


Refer to the given image.
Which option adjusts Highlights in the Levels dialog box?
a. A
b. B
c. C (ans)
d. None of the above


Which of the following is not true about the Curves dialog box?
a. You can use the Curves dialog box to adjust the entire tonal range of an image
b. The Curves dialog box lets you adjust up to 14 different points throughout an image’s tonal range * (ans)
c. In the Curves dialog box, the tonal range is represented as a straight diagonal baseline
d. None of the above



In which format will you save your document to preserve the Perspective Plane Information in an image while working with the vanishing point, as shown in the given picture
In which format will you save your document to preserve the Perspective Plane Information in an image while working with the vanishing point, as shown in the given picture
Refer to the given image.
In which format will you save your document to preserve the Perspective Plane Information in an image while working with the vanishing point, as shown in the given picture?
a. PSD
b. TIFF
c. JPEG
d. All of the above (ans)


Which of the following is not a Color Adjustment command?
a. Adjustment command (ans)
b. Color Balance command
c. Selective Color command
d. Levels command



Which of the following options displays the Spot Channels in the Channels palette
Which of the following options displays the Spot Channels in the Channels palette
Refer to the given image.
Which of the following options displays the Spot Channels in the Channels palette?
a. A
b. B (ans)
c. C
d. All of the above


Which of the following is not a type of Variable?
a. Image variables (ans)
b. Visibility variables
c. Pixel Replacement variables
d. Text Replacement variables


Which keyboard shortcut (windows) will you choose to permanently Clear History (no Undo)?
a. Control + Shift + Z (ans)
b. Control + Alt + Z
c. Shift + Clear History
d. Alt + Clear History


Which among the following blending modes is available only for the Apply Image and Calculations commands?
a. Add
b. Subtract
c. Both a and b (ans)
d. None of the above


Which among the following Slices cannot be divided?
a. User slices
b. Auto slice
c. Layer-based slices (ans)
d. All of the above


Which among the following is not a Duotone mode type?
a. Pantone (ans)
b. Monotone
c. Tritone
d. Quadtone


State whether True or False:
You cannot create Work paths from the fonts that do not include the outline data.
a. True (ans)
b. False



What is the colored box in the Navigator Palette known as
What is the colored box in the Navigator Palette known as
Refer to the given image.
What is the colored box in the Navigator Palette known as?
a. View area (ans)
b. Proxy area
c. Navigation area
d. Proxy preview area



Which of the given options displays Converts to Timeline mode in an Animation palette
Which of the given options displays Converts to Timeline mode in an Animation palette
Refer to the given image.
Which of the given options displays Converts to Timeline mode in an Animation palette?
a. A
b. B
c. C
d. D (ans)


State whether True or False:
You cannot change the order of the Vector masks or working paths in the Paths palette.
a. True
b. False (ans)


Which of the following Filters cannot be applied to a Smart Object?
a. Stylize
b. Texture
c. Pattern Maker
d. All of the above (ans)


Which keyboard shortcut (windows) will you choose to select the History Brush tool?
a. Y (ans)
b. R
c. O
d. H


Which among the following files, saved in the Adobe Photoshop format, is used by the filter to create the displacement maps?
a. Flat file
b. Bump file
c. Flattened file (ans)
d. Displace file


Which of the Saving commands is available for an image that is managed by a Version Cue Workspace?
a. Save
b. Save As
c. Check In (ans)
d. Save For Web & Devices


Which of the following is not true about the Multichannel mode?
a. Multichannel mode images contain 256 levels of gray in each channel and are useful for specialized printing(ANS)
b. When you convert images to the Multichannel mode, the color channels in the original image become spot color channels in the converted image
c. Converting an RGB image to the Multichannel mode creates cyan, magenta, and yellow spot channels
d. None of the above (ans)


Which among the following is/are not true about the Fill Pixels (Drawing mode)?
a. In this mode, you can create Raster images
b. In this mode, you can create Vector images
c. Only the Shape Tools work in this mode
d. Both b and c(ANS)



Which of the given options refers an Action Safe Margin
Which of the given options refers an Action Safe Margin
Refer to the given image.
Which of the given options refers an Action Safe Margin?
a. A (ans)
b. B
c. Both a and b
d. None of the above


State whether True or False:
You cannot transform the background layer.
a. True(ANS)
b. False


Which of the given file formats works with the Image Processor?
a. PSD
b. JPEG
c. Camera raw files
d. All of the above(ANS)




Which option, when in a checked state, displays a message whenever you open an untagged document
Which option, when in a checked state, displays a message whenever you open an untagged document
Refer to the given image.
Which option, when in a checked state, displays a message whenever you open an untagged document?
a. A
b. B
c. C
d. None of the above(ANS)


Which keyboard shortcut (windows) will you choose for Auto Leading?
a. Control + Shift + A(ANS)
b. Control + Alt + A
c. Control + Shift + Alt + A
d. None of the above


Which of the following features is/are supported by the EPS file format?
a. It supports the Grayscale and Bitmap color modes
b. It supports the Support Alpha Channels
c. It supports the Clipping paths
d. Both a and c(ANS)


Which Command lets you free memory, used by the Undo command, the History Palette, or the Clipboard?
a. Paths(ANS)
b. Place
c. Purge
d. Place scale marker


Which file format saves a document of any size as well as preserves all the Photoshop features?
a. Photoshop Raw(ANS)
b. PSD
c. TIFF
d. All of the above

Upwork HTML5 Test Answers Updated 2018


Hi Friends, Today i am sharing with you latest HTML5 exam Test Question and Answers for Upwork

Upwork HTML5 Test Answers Updated


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 = documen…
  • var context = canvas.getContext();
  • var context = canvas.getElementById(“context”);
  • var context = canvas.getContext(“2d”); (Ans)
  • var context = canvas.getElementById(“2d”);

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>
d.            <section id=”Example”>…</section>
e.            <section id=”example”>…</section>
Ans : c.    <section id=”EXAMPLE”>…</section>
Ans : d.   <section id=”Example”>…</section>
Ans : e.    <section id=”example”>…</section>

Which of the following are valid HTML 5.0 elements?
a.            <canvas>
b.            <summary>
c.             <aside>
d.            <video>
Ans : a. <canvas>
Ans : c.   <aside>
Ans : d. <video>

Can we store JavaScript Objects directly into localStorage?
  • Yes
  • No (ans)

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 butt…
  • 89
  • 90
  • Item 1 (ans)
  • Item 2

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…
  • ctx.drawImage(img,10,10); (ans)
  • context.drawImage(img,20,10,10,10);
  • context.drawImage(img,10,20,10,10,20,20,10,10);
  • All of these


What is the difference between Server-Sent Events (SSEs) and WebSockets in HTML5?
  • WebSockets can perform bi-directional (client-server and vice versa) data transfers, while SSEs can only push data to the client/browser.(ans)
  • SSEs can perform bi-directional (client-server and vice versa) data transfers, while WebSockets can only push data to the client/browser.
  • WebSockets and SSEs are functionally equivalent.
  • None of these.

What is the internal/wire format of input type=”date” in HTML5?
  • DD-MM-YYYY
  • YYYY-MM-DD (ans)
  • MM-DD-YYYY
  • YYYY-DD-MM

What is the limit to the length of HTML attributes?
  • 65536
  • 64
  • There is no limit. (ans)
  • None of these.

What is the purpose of the <q> element in HTML5?
  • 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.(Ans)
  • It is used to define what to show browsers that do not support the ruby element.

What is the role of the <dfn> element in HTML5?
  • It is used to define important text.
  • It is used to define computer code text.
  • It is used to define sample computer code.
  • It is used to define a definition term. (ans)

When does the ondragleave mouse event get fired in HTML5?
  • It gets fired when an element has been dragged to a valid drop target.
  • It gets fired when an element leaves a valid drop target. (ans)
  • It gets fired at the end of a drag operation.
  • It gets fired while an element is being dragged.

Which event is fired when an element loses its focus in an HTML5 document?
  • onfocus
  • onload
  • onblur (ans)
  • onselect

Which following are valid default values for the <input type=”date”> HTML5 element?
  • now
  • 2013-05-30 (ans)
  • 2013-30-05
  • today

Which HTML5 doctype declarations are correct?
  • <!doctype html>
  • <!DOCTYPE html> (ans)
  • <!DOCTYPE HTML5>
  • <!DOCTYPE HTML>

Which is the standard method for clearing a canvas?
  • context.clearRect ( x , y , w , h ); (ans)
  • canvas.width = canvas.width;
  • context.clear();
  • All of these.

Which media event is triggered when there is an error in fetching media data in HTML5?
  • onstalled (ans)
  • onwaiting
  • onsuspend
  • oninvalid

Which media event will be fired when a media resource element suddenly becomes empty?
  • onerror
  • onended
  • onloadeddata
  • onemptied (ans)

Which method of HTMLCanvasElement is used to represent image of Canvas Element?
  • toDataURL() (ans)
  • saveAsimage()
  • saveFile()
  • exportimage()

How can an HTML5 canvas size be changed so that it fits the entire window?
  • #myCanvas {height: 100%; width: 100%;}
  • <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> (ans)
  • It depends upon the complexity of the canvas, and the frequency of redraws.
  • Calling the JavaScript getWidth() function.

How can audio files be played in HTML5? var sound = new Audio(“file.wav”);
  • sound.begin();
  • sound.resume();
  • sound.start();
  • sound.play(); (ans)

How does a button created by the <button> tag differ from the one created by an <input> tag?
  • An input tag button can be a reset button too.
  • A button tag button can be a reset button too.
  • An input tag button can include images as well.
  • A button tag can include images as well. (ans)

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>
  • button (ans)
  • command
  • checkbox
  • radio

Once an application is offline, it remains cached until the following happens (select all that apply):
  • The application cache is pro-grammatically updated. (ans)
  • The application cache gets automatically cleared by the browser.
  • The manifest file is modified. (ans)
  • The user clears their browser’s data storage for the site. (ans)

The following are valid use cases of client file/directory access in HTML5, except:
  • Drag and drop files from the desktop
  • Full file system access (ans)
  • Use of the HTML5 File API (ans)
  • Use of files as HTML5 input types

The following link is placed on an HTML webpage: <a href=”http://msdn.com/” target=”_blank”> MSDN </a> What can be inferred from it?
  • It will open the site msdn.com in the same window.
  • It will open the site msdn.com in a new window. (ans)
  • It will open the site msdn.com in a frame below.
  • It will not be clickable as it is not formed correctly.

True or False: HTML5 Canvas can be used to create images.
  • True (ans)
  • False

True or false: JavaScript objects can be stored directly into localStorage.
  • True
  • False (ans)

What does P2P streaming mean when web applications establish a P2P HTTP connection using HTML?
  • It means that streaming of a voice/video frame is direct, without using any server between them. (ans)
  • It means that streaming of a voice/video frame is first between one peer to the server then the server to another peer.
  • Communication does not rely on a shared relay server in the network.


Which method of the HTMLCanvasElement is used to represent an image of a canvas element?
  • toDataURL (ans)
  • toImageURL
  • saveAsPNG
  • saveAsJPEG

Which of the following <link> attributes are not supported in HTML5?
  • size
  • rev (ans)
  • rel
  • charset (ans)

Which of the following are sample use cases for HTML5 web workers?
  • 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. (ans)

Which of the following are the valid values of the <a> element’s target attribute in HTML5?
  • _blank (ans)
  • _self (ans)
  • _top (ans)
  • _bottom

Which of the following are true about the ARIA role attribute in HTML5?
  • Every HTML element can have an ARIA role attribute specified. (ans)
  • 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. (ans)
  • There is no ARIA attribute called “role”.

Which of the following are valid ways to associate custom data with an HTML5 element?
  • <tr class=”foo” data-id-type=”4″> (ans)
  • <tr class=”foo” id-type=”4″>
  • <tr class=”foo” data-id_type=”4″> (ans)
  • All of the above.


Which of the following is the correct way to display a PDF file in the browser?
  • <object type=”application/pdf” data=”filename.pdf” width=”100%” height=”100%”/> (ans)
  • <object type=”application/pdf” id=”filename.pdf” width=”100%” height=”100%”/>
  • <input type=”application/pdf” data=”filename.pdf” width=”100%” height=”100%”/>
  • <input type=”application/pdf” src=”filename.pdf” width=”100%” height=”100%”/>

Which of the following is the correct way to play an audio file in HTML5?
  • var snd = new Audio(“file.wav”); snd.play();
  • <audio controls> <source src=”file.ogg” type=”audio/ogg”> <source src=”file.mp3″ type=”audio/mpeg”> </audio> (ans)
  • <source src=”file.mp3″ type=”audio/mpeg”>
  • All of these.

Which of the following is the correct way to store an object in a localStorage?
  • localStorage.setItem(‘testObject’, JSON.stringify(testObject)) (ans)
  • localStorage.setItem(‘testObject’, testObject)
  • localStorage.add(‘testObject’, testObject)
  • localStorage.addItem(‘testObject’, testObject)

Which of the following is the correct way to store an object in localStorage? var obj = { ‘one’: 1, ‘two’: 2, ‘three’: 3 };
  • localStorage.setItem(‘obj’, obj);
  • localStorage.setItem(‘obj’, JSON.stringify(obj)); (ans)
  • localStorage.setItem(‘testObject’, JSON.parse(testObject));
  • localStorage.setItem(obj);

Which of the following methods can be used to estimate page load times?
  • Using _gaq.push([‘_trackPageLoadTime’]) with Google Analytics. (ans)
  • Using the Navigation Timing JavaScript API. (ans)
  • Page load times cannot be estimated.
  • Using built-in JavaScript methods.

Which of the following shows correct use of client-side data validation in HTML5, on username and password fields in particular?
  • <input name=”username” required /> <input name=”pass” type=”password” required/> (ans)
  • <input name=”username” validate=”true”/> <input name=”pass” type=”password” validate=”true”/>
  • <input name=”username” validate/> <input name=”pass” type=”password” validate/>
  • There is no way to implement client-side validation for the username and password fields in HTML5.

Which of the following statements are correct with regard to the <hr> and <br> elements of HTML5?
  • 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. (ans)
  • 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.

Which of the following statements regarding WebSockets is true?
  • It communicates with the server with only the data required by the application.
  • It lowers the latency of connections for interactive web applications.
  • It scales better and consumes less server resources than HTTP AJAX/long-poll.
  • All of the above. (ans)

Which of the following video file formats are currently supported by the <video> element of HTML5?
  • CCTV
  • MPEG 4 (ans)
  • Ogg (ans)
  • 3GPP

Which of the following video tag attributes are invalid in HTML5?
  • play
  • loop
  • mute
  • pause (ans)

Which of the following will detect when an HTML5 video has finished playing?
  • var video = document.getElementsByTagName(‘video’)[0]; video.onended = function(e) { } (ans)
  • var video = document.getElementsByTagName(‘video’)[0]; video.onPlayend = function(e) { }
  • var video = document.getElementsByTagName(‘video’)[0]; video.onPlayFinish = function(e) { }
  • var video = document.getElementsByTagName(‘video’)[0]; video.onPlayBackended = function(e) { }

Which of the following will restrict an input element to accept only numerical values in a text field?
  • <input type=”text” pattern=”[0-9]*” /> (ans)
  • <input type=”number” />
  • <input type=”text” pattern=”\d*”/>
  • <input type=”text” pattern=”number”/>

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 …
  • accept
  • autofocus
  • autocomplete (ans)
  • formtarget

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?
  • <a href=”mailto:webmaster@xcompany.com”>webmaster</a> (ans)
  • <a href=”webmaster@xcompany.com”>webmaster</a>
  • <a http=”mail:webmaster@xcompany.com”>webmaster</a>
  • <mail http=”send:webmaster@xcompany.com”>webmaster</mail>

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)
  • autocomplete
  • autofocus
  • placeholder (ans)
  • formnovalidate

Which of the following code is used to prevent Webkit spin buttons from appearing on web pages?
  • input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
  • input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } (ans)
  • noindex:-o-prefocus, input[type=number] { padding-right: 1.2em; }
  • input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; padding-right: 1.2em; }

Which of the following examples contain invalid implementations of the ampersand character in HTML5?
  • foo & bar
  • foo &0 bar
  • foo &0; bar (ans)
  • foo&&& bar

Which of the following HTML5 features is capable of taking a screenshot of a web page?
  • Server-Sent Events
  • SVG
  • Canvas (ans)
  • Web Workers

Which of the following is a possible way to get fullscreen video played from the browser using HTML5?
  • <object> <param name=”allowFullScreen” value=”true” />
  • <video allowFullScreen=”true”>
  • <video height=”100%” width=”100%”> (ans)
  • None of these.

Which of the following is not a valid attribute for the <video> element in HTML5?
  • controls
  • autoplay
  • disabled (ans)
  • preload

Which of the following is not a valid syntax for the <link> element in HTML5?
  • <link rel=”icon” href=”abc.jpg” sizes=”16×16″>
  • <link rev=”stylesheet” href=”abc.css” type=”text/css” target=”_parent”> (ans)
  • <link rel=”alternate” type=”application/pdf” hreflang=”fr” href=”manual-fr”>

Which of the following is the best method to detect HTML5 Canvas support in web browsers?
  • isCanvasSupported()
  • !!document.createElement(“canvas”)
  • !isCanvasSupported()
  • !!window.HTMLCanvasElement (ans)

Which of the following is the best method to store an array in localStorage?
  • 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”]); (ans)
  • 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]);

Which of the following is the correct way to check browser support for WebSocket?
  • console.log(WebSocket ? ‘supported’ : ‘not supported’);
  • console.log(window.WebSocket ? ‘supported’ : ‘not supported’); (ans)
  • console.log(window[WebSocket] ? ‘supported’ : ‘not supported’);
  • console.log(window[‘WebSocket’] ? ‘supported’ : ‘not supported’);