Saturday, August 15, 2015

core java upwork test answers | RMI allows remote communication between:

On this blog you can get all latest answers of core java these test answers taken form upwork and freelancer jobs plate form . here have all correct answers of java upwork. upwork latest elance test answers available.  For more java test answers click on java ans in top menu.

 

 Which design pattern reduces network traffic by acting as a caching proxy of a remote object?

Answers:
• DataAccess Object
• Model-View-Controller
• Value Object
• Business Delegate


Which option lists Java access modifiers in the right order from the most permissive to the most restrictive?

Answers:
• public, protected, <i>no modifier/default/package</i>, private
• public, <i>no modifier/default/package</i>, protected, private
• <i>no modifier/default/package</i>, public, protected, private
• public, protected, private, <i>no modifier/default/package</i>


Which of the following cannot apply to constructors?

Answers:
• Name same as class name
Void return type
• Can have parameters
• Overloading


What is the term to describe a situation where two or more threads are blocked forever, waiting for each other?

Answers:
• deadlock
• starvation
• livelock
• liveness


RMI allows remote communication between:

Answers:
• C++ and Java
• C and Java
• Pascal and Java
• Java and Java
• Java and TCP/IP

Friday, August 14, 2015

Java elance Upwork (oDesk) TEST ANSWER (2015-2016)


Java elance Upwork (oDesk) TEST ANSWER (2015-2016)

Java is open source language , its too famous programming language help to develop many things. its too powerful programming language. Upwork offers lots of new jobs of java . For helping java students and who want to give test of upwork java skill understand the answers of java skill upwork test answers. Elance upwork java test answers below shown.  

Question:

SQLException has a feature of chaining - identify the right code to execute the same from the following options:

Answers:

catch(SQLException e) { out.println(e.getMessage()); while((e=e.getNextException())!=null) { out.println(e.getMessage()); } }

Question:

Which statements are true regarding ServletContext Init Parameters in the deployment descriptor?

Answers:

They are set at deployment-time and can be updated at run-time.

Question:

JDBC is based on:

Answers:

X/Open CLI (Call Level Interface)

Question:

Which option lists Java access modifiers in the right order from the most permissive to the most restrictive?

Answers:

public, protected, no modifier/default/package, private

Question:

X.509 version 3 specifies which of the following?

Answers:

A format and content for digital certificates.

Question:

Select all true statements:

Answers:

An abstract class can have non-abstract methods.

Question:

Which option could be used to see additional warnings about code that mixes legacy code with code that uses generics?

Answers:

Xlint:unchecked

Question:

The principal finder method that must be implemented by every entity bean class is:

Answers:

findByPrimaryKey()

Question:

Which of the following methods are members of the Vector class and allow you to input a new element?

Answers:

addElement

Question:

There are three classes named A, B, and C. The class B is derived from class A and class C is derived from B. Which of the following relations are correct for the given classes?

Answers:

Any instance of B is an instance of A.

Question:

Choose all valid forms of the argument list for the FileOutputStream constructor shown below:

Answers:

FileOutputStream( File f )

Question:

Which of the following are the methods of the Thread class?

Answers:

yield()

Question:

Which of the following statements regarding abstract classes are true?

Answers:

The abstract class may have method implementation.

Question:

Which of the following methods should be invoked by the container to get a bean back to its working state?

Answers:

EJBActivate()

Question:

The JDK comes with a special program that generates skeleton and stub objects that is known as:

Answers:

rmic

Question:

In which class is the notify method defined?

Answers:

Object

Question:

Which exception must a setter of a constrained JavaBean property throw to prevent the property value from changing?

Answers:

PropertyVetoException

Question:

Which statements are true? Select all true statements.

Answers:

A method can be declared synchronized.

Question:

What is the result of an attempt to compile and run the given program? public class Test107 { public static void main(String[] args) { System.out.println(test()); } private static int test() { return (true ? null : 0); } }

Answers:

It compiles, but throws NullPointerException at run-time.

Question:

Which of these interfaces is the most applicable when creating a class that associates a set of keys with a set of values?

Answers:

Map

Question:

Which design pattern reduces network traffic by acting as a caching proxy of a remote object?

Answers:

value object

Question:

What protocol is used by the DatagramSocket class?

Answers:

UDP

Question:

Which of these is not an event listener adapter defined in the java.awt.event package?

Answers:

ActionAdapter

Question:

Which of the following methods can be used for reporting a warning on a Connection object, Statement object & ResultSet object?

Answers:

getWarnings()

Question:

Which of the following is the correct syntax for creating a Session object?

Answers:

HttpSession ses=request.getSession();

Question:

Which of the following are valid ways to define a thread in Java?

Answers:

Create a subclass of java.lang.Thread class

Question:

Assuming the servlet method for handling HTTPGET requests is doGet(HttpServletRequest req, HTTPServletResponse res), how can the request parameter in that servlet be retrieved?

Answers:

String value=req.getParameter("product");

Question:

Which of the following statements is true?

Answers:

public interface RemoteTrain extends java.rmi.Remote

PHP5 elance Upwork (oDesk) TEST ANSWER 2015 -2016

PHP5 elance Upwork (oDesk) TEST ANSWER

html5 complete Elance test answers of upwork

html5 complete Elance test answers

Elance test Answers of css3 | upwork - css upwork test answers

CSS3 test

Tuesday, August 11, 2015

Elance css3 upwork test answers | Which of the following option does not exist in media groups available in CSS3?

upwork css3 Elance test answers . These css3 test answers get recently from upwork.com. these answers can make your grade 100% css3 test. Odesk Recently changed the domain name into upwork.com & odesk system upgraded . Its test method its quiz. Upwork test answers 2015 shown below..

Upwork css3 all test Answers  list

Which of the following styles is not valid for an image?

Answers:

• img { float= left }
• img { float: left here }
• img { background: "black" }
• img { border-width: 10 }
• All of the above

 

What is the default value of the transform-style property?

Answers:
• preserve-3d
• flat
• none
• preserve

 

Which of the following option does not exist in media groups available in CSS3?

 

 

Answers:
• continuous or paged
• visual or tactile
• grid or bitmap
• braille or screen 













Which of the following will decrease 50px from a DIV element whose width is 100%?

Answers:
• width: calc(100% - 50px);
• width: reduce(100% - 50px);
• width: decrease(100% - 50px);
• width: 100% - 50px;

What is the maximum value that can be given to the voice-volume property?

Answers:
• 10
• 100
• 500
• None of the above



Which statement is correct given the following? box-shadow:30px 20px 10px 5px black;

Answers:
• The shadow will be spread out to 30px top, 20px right, 10px bottom, 5px left.
• 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.
• 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.
• The shadow will be spread out to 30px top and bottom, 20px left and right with 10px blur distance, 5px shadow size.

The min-width property cannot be applied to the following element:

Answers:
• button
• span
• table row

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:

• border-bottom:5px solid #ffffff; -webkit-box-shadow: 0px 5px #000000; -moz-box-shadow: 0px 5px #000000; box-shadow: 0px 5px #000000;
• -webkit-box-shadow: 0 4px 4px -2px #000000; -moz-box-shadow: 0 4px 4px -2px #000000; box-shadow: 0 4px 4px -2px #000000;
• -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;
• None of these.

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:
• ndy lives behind cbfe
• cndy lives cehind ccfe
• andy lives behind cafe
• andy lives cehind bafe


What will be the output of the following code? ... <style> .foo { width:100px; height:50px; border-width:3px; -webkit-border-image: -webkit-gradient(linear, 0 0, 0 100%, from(black), to(red)) 1 100%; -webkit-border-image: -webkit-linear-gradient(black, red) 1 100%; -o-border-image: -o-linear-gradient(black, red)) 1 100%; -moz-border-image: -moz-linear-gradient(black, red) 1 100%; } </style> ... <div class="foo">Lorem</div>

Answers:

• The text "Lorem" will be colored black-red.
• The div element will be colored black-red.
• The border of div element will be colored black-red.
• None of these.

Suppose that a <tr> tag has 10 <td> tags. In this case which statement is correct given the following? td:nth-child(3n+0){ background-color: orange; }

Answers:
• It returns a syntax error.
• The background color of the fourth td will be orange.
• The background color of the third td will be orange.
• The background color of every third td will be orange.

What is the best method to select all elements except for the last one in an unordered list?

Answers:
• Adding a class to each <li> element but last
• Using li:not(:last-child) css selector
• Using li:last-child selector
• None of the above

Which of the following will apply a black inner glow with 25% opacity to a page element?

Answers:

• box-shadow: 0 0 8px rgba(255,255,255, 0.25);
• box-shadow: inset 0 0 8px rgba(0,0,0, 0.25);
• box-shadow: 0 0 8px rgba(255,255,255, 25%);
• box-shadow: inset 0 0 8px rgba(0,0,0, 25%);

Which of the following is the initial value for the column-fill property?

Answers:
• auto
• balance
• none

Which of the following can be used to add a shadow around the div element below? <div>Lorem ipsum</div>

Answers:
• box-shadow: 0 0 8px 2px #888;
• border-shadow: 0 0 8px 2px #888;
• div-shadow: 8px 2px 0 0 #888;
• None of these

Which of the following is not a valid page break?

Answers:
• page-break-inside
• page-break-outside
• page-break-before
• page-break-after
• None of these

 

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:
• orphans
• widows
• bottom
• overflow
• None of these

Sunday, August 9, 2015

Complete css3 upwork test answers | Which of the following is not a valid value for the font-smooth property?

>>Upwork css3 all test Answers  list

 

Which of the following is not a valid value for the font-smooth property?

 

 

Answers:

• auto
• never
• always
• normal
• length



css3 upwork test

correct ans css3 upwork test | For the clear property, which of the following values is not valid?

  >>Upwork css3 all test Answers  list

 

For the clear property, which of the following values is not valid?



Answers:


• none
• left
• right
• top


css3 upwork test correct answers

CSS3 UPWORK TEST ANSWERS | Consider the following font definition: font-weight:normal What is the other way of getting the same result?

Consider the following font definition: font-weight:normal What is the other way of getting the same result?



Answers:

• font-weight:100
• font-weight:900
• font-weight:400
• font-weight:700

upwrok css3 test correct answers

CSS3 Upwork test Answers | Can a percentage value be given in a ruby-align property?

>>Upwork css3 all test Answers  list

 

Can a percentage value be given in a ruby-align property?

Answers:

• Yes
• No 




css3 upwork test answers2
                                              Can a percentage value be given in a ruby-align property?








CSS3 Upwork test Answers | Which of the following will create a triangle effect using pure CSS3 on a white background, without making use of background images?

 

>>Upwork css3 all test Answers  list

 

Which of the following will create a triangle effect using pure CSS3 on a white background, without making use of background images?

 

Answers:

• It is not possible to do so.

• border-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 20px; width: 0px; height: 0px;
• background-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 20px; width: 0px; height: 0px;
• background-color: #a0c7ff #ffffff #ffffff #ffffff; border-style: solid; border-width: 1px; width: 10px; height: 10px;

 
Complete Css3 test answers of upwork

Wednesday, August 5, 2015

correct html5 upwork test answers (2015-2016)


>>All Html5 Upwork test Answers list



all upwork test answers of html5 | PHP5 | CSS3 | java | Android
all upwork test answers of html5 | PHP5 | CSS3 | java | Android




Which method of the HTMLCanvasElement is used to represent an image of a canvas element?



  • toDataURL (ans)

  • toImageURL
  • saveAsPNG
  • saveAsJPEG



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 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 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 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 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 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 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 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”/>

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 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 video tag attributes are invalid in HTML5?


play
loop
mute
pause (ans)

 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



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


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 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 is not a valid attribute for the <video> element in HTML5?


controls
autoplay
disabled (ans)
preload

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; }

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 of the following <link> attributes are not supported in HTML5?


size
rev (ans)
rel
charset (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 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.

complete upwork test answers of html5 | Which of the following is not a valid syntax for the link element in HTML5?

>>All Html5 Upwork test Answers list

test answers of html5 - upwork , html5 upwork test answers






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”>

  • <link rel=”alternate” type=”application/pdf” hreflang=”fr” href=”manual-fr”>

all html5 upwork test answer | Which of the following is the best method to detect HTML5 Canvas support in web browsers?

>>All Html5 Upwork test Answers list

correct answers of html5



Which of the following is the best method to detect HTML5 Canvas support in web browsers?

  • isCanvasSupported()
  • !!document.createElement(“canvas”)
  • !isCanvasSupported()

  • !!window.HTMLCanvasElement 


html5 upwork test answers / Which of the following is the correct way to check browser support for WebSocket?

>>All Html5 Upwork test Answers list



htm5 upwork test answers 2015
html5 upwork test answers




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’);

console.log(window[WebSocket] ? ‘supported’ : ‘not supported’);
console.log(window[‘WebSocket’] ? ‘supported’ : ‘not supported’);

HTML5 Upwork (oDesk) TEST ANSWERS 2022

HTML5 Upwork (oDesk) TEST ANSWERS 2022 Question: Which of the following is the best method to detect HTML5 Canvas support in web br...

Disqus for upwork test answers