Friday, July 19, 2013

Earning From Online by Graphics Designing

Online Graphics Designing is getting gradual popularity among the people. People now think income from staying at home. It is very much possible to earn a huge salary from doing Graphics Designing on various online marketplace like odesk, elance, freelancer. Today i will discuss four method about earning from graphics designing. 

1. Make Your Own Blog

 I am sure that you are thinking that how can we make lot’s of money only with the help of one blog? But this is true guys you can make lots of money only with one blog. You can earn money by blogging through Advertisements, Google Adsence, etc. As your blog becomes more popular in the world, more advertisements comes on your blog. Now you are thinking that money earned only by advertisements is not enough for you but it is not true many blogs earn thousands of $ monthly only through Advertisements.

2. Design Your Own Themes and Sell Them

 A Successful blog must have an attractive design. People spend lots of money to improve the style their blog. So this is the best way for web designers to earn money online. You can sell your themes on the sites like templamatic.com, themeforest.net, etc

 

3. Write Tutorial Articles for Tutorial Websites

Writing tutorial articles for tutorial websites is very good method to earn money online. There are many tutorial websites whho pay very high amount for one tutorial article. The best tutorial websites are tutsplus.com, tutorial9.net, etc. One thing is more that we should know that these websites do not accept every tutorial. If you want to publish your article in these websites you have to write a good, unique and attractive article

4. Write Articles for other Blogs

You can also write articles for other blogs. This method is also one of the best methods to earn money online. You can sell your article at different costs according to the quality of your article. Most of the rich bloggers who are not able to write good articles for their website usually heir a writer and pay good money.

Tuesday, July 9, 2013

3D Max 9 Test ~ oDesk Test Answer

                          3ds Max 9 Test

 

 

Which kind of curve can trim surfaces in NURBS Modeling ?

a. CV curve on the surface
b. Point curve on the surface
c. Vector projected curve
d. All of the above

State whether True or False.

Wire Parameters works only with parameters that can be animated.

a. True
b. False

Refer to the given image.
Which option will you choose to edit the region both in the rendered frame window and in the active viewport?


a. A
b. B
c. C
d. None of these

State whether True or False.
Volume lights support negative multiplier values.

a. True
b. False

State whether True or False.
Global shadow parameters cannot be exported while exporting a 3ds file.

a. True
b. False

State whether True or False.
You need at least one camera in your scene to use the Panorama Exporter.

a. True
b. False

When does the bevel profile modifier fail?

a. When you delete the original beveling profile
b. When you create an object using an open spline
c. When you create an object using a closed spline
d. All of the above

State whether True or False.
The reactor plane object acts in only one direction.

a. True
b. False

Which information do the IGES log files not provide?

a. List of the entity types encountered and created
b. Summary of the entities processed
c. Name of the file processed
d. None of these

State whether True or False.
The Summary Info displays the statistics about the saved scene.

a. True
b. False

State whether True or False.
If more than one cameras are in the scene, the material editor uses the first camera listed in the track view hierarchy.

a. True
b. False

Refer to the image.
Which option displays clip track in the motion mixer?



a. A
b. B
c. C
d. None of these

State whether True or False.
The Renderable Spline modifier cannot be applied to NURBS curves.

a. True
b. False

Which file saves only footstep data?

a. STP
b. BIP
c. CSM
d. BVH  

Which type of object cannot be used with the surface constraint?

a. Quad Patches (single quad patches)
b. Cylinder
c. Cylinder with a bend modifier applied on it
d. Loft

To which kind of objects can you apply a displacement map (standard material)?

a. Compound objects
b. Extended Primitives
c. NURBS Surfaces
d. All of the above

Refer to the given image.

What is the use of the shape visible to the renderer option in photometric light?


a. It makes a photometric light self illuminating
b. It sets the overall quality of shadows
c. It animates shadows of photometric light
d. All of the above

State whether True or False.
The Fire effect does not cast any light or shadows in the scene.

a. True
b. False

Refer to the given image.
What kind of curve is the green curve in relation to the red curve?



a. Transform curve
b. Mirror curve
c. Offset curve
d. Blend curve

For which of the following options does the image motion blur not work?

a. Anything with an Optimize
b. NURBS objects
c. MeshSmooth on polygons with Keep Faces Convex on
d. All of the above

State whether True or False.
Curve approximation parameters are not animatable in NURBS Modeling.

a. True
b. False

State whether True or False.
The MAXScript debugger lets you stop or continue the execution of the suspended code.

a. True
b. False

Which of the following switches starts 3ds max in a minimized mode and never allows you to open the window for interactive usage?

a. -mip
b. -mxs
c. -silent
d. None of the above



Refer to the given image.

What happens if we turn off the lock sample option in the mental ray renderer rollout?
a. The mental ray renderer uses a quasi-random variation in the sample pattern from frame to frame
b. The mental ray renderer uses the same sampling pattern for every frame of an animation
c. You cannot turn off this option
d. None of these
Refer to the given image.
What is the use of the landscape option in water simulation?



a. It defines water using a rectangular area
b. It simulates non-rectangular surfaces and obstacles inside the water
c. Both a and b
d. None of the above
Refer to the given image.
Why is the fuzz feature used in hair light attributes rollout?
a. It illuminates and casts shadows from the hair
b. It sets the softness of the shadow edges
c. Both a and b
d. None of the above
Refer to the given image.
Which option renders hair shadows but not the hair?


a. A
b. B
c. C
d. D
Refer to the given image.
What purpose does the relative option serve while loading the animation XML file?

a. It starts the loaded motion at the current values of the selected objects in the scene
b. It tells how existing keys are treated when the animation is loaded
c. It inserts the motion at the chosen frame
d. All of the above
Refer to the given image.
When does a name appear in boldface and italics?

a. When a modifier is applied to two or more pipelines
b. When a modifier is instanced and is part of an instanced pipeline
c. When you choose the 'make unique' button
d. None of the above
Refer to the given image.
Which of the following options is applied to Havok 3 only?

a. A
b. B
c. C
d. All of the above
Which controller does the Walkthrough Assistant use for the camera rotation?
a. Spline
b. Corner
c. Bezier
d. All of the above
State whether True or False.

You cannot animate haze value.

a. True
b. False
Which information is not imported when you import a 3DS file?
a. Fog, Layered Fog, and Distance Cue
b. Transparency Falloff Settings
c. 3D Surfer Patch Data
d. Morph Keys
With which type of objects does a Flex modifier work?
a. NURBS
b. Patches
c. FFD space warps
d. All of the above
State whether True or False.
When the simulator decreases dT, it shows "dT decreased" on the Cloth Simulation dialog along with the message.
a. True
b. False
Refer to the given image.
Which option in NURBS surfaces dialog box is the option selected by default?
a. A
b. B
c. C
d. None of the above
Refer to the given image.
Which option of the cap holes modifier should be turned off, so that the faces in the capped holes are assigned a new ID?
a. A
b. B
c. C
d. None of these
Refer to the given image.
When is the 'not shared' option active?

a. When the proxy object's pivot point is aligned with that of the rigid body
b. When you specify a proxy object by clicking the proxy button
c. When multiple objects with different simulation geometry settings are selected and cannot be chosen by the user
d. All of the above
Which type of objects are not supported by the Channel Info utility?
a. Mesh
b. Polygon
c. Patch
d. NURBS
State whether True or False.
In character studio, you can import both rotation and position type motion-capture files.
a. True
b. False
Which rendering features does the mental ray renderer support?
a. Output dithering options
b. G-buffer options in post processing and image file output
c. Both of the above
d. None of these
State whether True or False.
In rigid body dynamics, each body has six degrees of freedom to move: three translational degrees of freedom and three rotational degrees of freedom.
a. True
b. False
Which type of projection does the Camera Map per Pixel map use if we turn off ?mask uses the camera projection’ feature?
a. Mask uses the same camera projection as the Texture and ZBuffer Mask
b. Mask uses the object's UVW coordinates
c. Both a and b
d. None of these
Which option in the physique modifier defines a link's area of influence on mesh vertices?
a. A
b. B
c. C
d. D
Which of the following behaviors force delegates to move away from a target?
a. Surface arrive behavior
b. Orientation behavior
c. Speed vary behavior
d. Repel behavior
Refer to the given image.
Which option in the file properties box displays the scene information available after the scene has been saved?


a. A
b. B
c. C
d. None of these
Refer to the image.

In the camera tracker utility's batch track rollout, which error code means that the color variance delta threshold has been exceeded?


a. Next
b. Jd
c. Me
d. Vd
Refer to the given image.

What is the function of the 'reveal location' in the explorer?

a. It launches a copy of Windows explorer to display the folder where the map is saved
b. It launches a copy of Windows browser to make an instance of the material or map
c. It launches a copy of Windows browser to create a new material
d. All of the above
Refer to the given image.

For which type of hair rendering options is the Refractions and ray-traced option available?


a. Buffer
b. Geometry
c. Mr prim
d. All of the above
What is not true about skin utilities?
a. Skin utilities work by matching bones from one character to another
b. To use skin utilities, you must have two meshes to which the skin modifier has been applied
c. Both the meshes should be in the current scene
d. None of the above
What happens if we turn on the show sample option in the render set up dialog box?
a. Sample location is rendered as streaks
b. Sample location is rendered as red dots
c. A message appears on the screen
d. Nothing happens
Which asset tracking dialog icon indicates that you are not logged in to the provider?
a. A
b. B
c. C
d. D
What is true about mirroring motion?
a. The mirrored motion does not replace the existing motion for the biped
b. The position of a keyless object is mirrored
c. This feature mirrors only those biped tracks that have at least one key
d. All of the above
The setup option is not available in the view image file. In which dialog box is this option available?
a. Render Output File dialog box
b. Viewport Background dialog box
c. Both a and b
d. None of the above
Which type of a deformable body is a three-dimensional closed triangular mesh?
a. Rope
b. Cloth
c. Deforming mesh
d. Soft body
Which of the following data types for controlling colors works with the RGB and HSV color values?
a. Point3
b. Color
c. Both a and b
d. None of the above
Which projection modifier has no parameters?
a. Relax modifier
b. Push modifier
c. Projection holder modifier
d. All of the above
Which of the following controllers is automatically assigned when you add a target camera?
a. The list controller
b. The look at controller
c. The linear controller
d. None of the above
What you can not do with the Trajectories?
a. Convert the path to a spline object
b. Derive a new path from a spline object
c. Collapse transforms
d. None of these
In the mental ray indirect illumination rollout, what will happen if the decay is set to 2?
a. The energy does not decay and photons provide equal indirect illumination throughout the scene
b. The energy decays proportionally to its distance from the light with linear falloff
c. The energy decays at an inverse square rate
d. None of the above
State whether True or False.
When you switch over from a target camera to a free camera, no animation applied to the camera's target is lost.
a. True
b. False
Which of the following types of modifier is not available with the edit normals modifier?
a. Unspecified
b. Specified
c. Explicit
d. Implicit
Which test will you perform on an object to know whether it is convex or concave?
a. Concave test
b. Convexity test
c. Cavex test
d. All of the above

Which of the following apparatuses is used to create atmospheric effects?
a. BoxGizmo
b. SphereGizmo
c. CylGizmo
d. All of the above
State whether True or False.
Trajectories are not displayed while you play an animation using the In Place mode.
a. True
b. False
Which operation does not remove animation from a NURBS object or sub-object?
a. Make Independent
b. Reparameterize
c. Fuse
d. None of the above
How is the camera map modifier (object-space version)different from the camera map modifier (world-space version)?
a. It applies UVW mapping coordinates to the object
b. It updates the object's mapping coordinates on every frame
c. Both a and b
d. None of the above
Which of the following file formats does Material Editor not support?
a. RPF
b. IFL
c. DDS
d. None of the above
For which type of shadow generation is Optimizations rollout available?
a. Mental ray shadow map
b. Ray traced shadow map
c. Shadow map
d. Area shadow
What is not true about a constraint solver?
a. For a simple constraint to take part in the simulation, you first need to add it to a constraint solver
b. It acts as a container for the cooperative constraints
c. To be valid, a constraint solver should be associated with a valid rigid body collection
d. All of the above
When will you use motion flow rather than motion mixer?
a. When you want to work with biped crowds or create random motion
b. When you want to create a specific animation for an object from several clips
c. When you want to specify that some motions be applied only to specific body parts
d. All of the above
To which part of the body does the Inverse Kinematics not apply?
a. Legs
b. Clavicles
c. Toes
d. All of the above
What is the use of the camera correction modifier?
a. It uses the three-point perspective in which vertical lines appear to converge with height
b. It applies the two-point perspective to a camera view
c. Both a and b
d. None of the above
In which type of a soft body does the reactor deform the underlying mesh directly?
a. Freeform deformation (FFD) bodies
b. Mesh-based soft bodies
c. Both a and b
d. None of the above
Refer to the given image.
What do blue biped IK keys represent as displayed in the track view and on the track bar?


a. They represent planted keys
b. They represent sliding keys
c. They represent body-space IK keys with a non-zero value for IK Blend
d. None of these
State whether True or False.
Ambient color mapping is not visible in ViewPorts or renderings unless the level of the ambient light is greater than the default value of the black.
a. True
b. False
Which of the following ?proxy in reactors’ is applied per rigid body rather than per object?
a. Display proxy
b. Geometry proxy
c. Both a and b
d. None of the above
What do you understand by the N links in the physique initialization dialog?
a. Vertices are influenced by more than one link
b. Vertices are influenced by only one (1) link
c. Vertices are influenced by all overlapping envelopes
d. All of the above
Refer to the given image.
Which icon in the layer list indicates unfreeze?


a. A
b. B
c. C
d. D

Thursday, July 4, 2013

Earning Money From Internet Through Article Writing

Writing articles online has quickly become a popular way to earn money. This is in part due to the loss of income from layoffs and other job loss. However, many find out the hard way that the ability to maximize earning potential in online writing actually takes some thought. Online article writing is indeed a legitimate way to make money. Anyone can earn a few dollars at it here and there, but to turn it into a business, you'll first need to discover things that will help maximize the earning potential of each article.

Spelling, Grammar, and Proper English

Accurate spelling, grammar, and English can maximize your earning potential on every article you write. Potential clients look at writing for those strengths. If you spell and write so poorly that even spell check and grammar check can't save you, it's time to get back to the basics. That's right. You're going to have to study. Can't afford classes? Grab a book and teach yourself. Find free online resources. Study with a friend. Practice, practice, practice! Every good writer starts somewhere - the sooner you learn the basic skills, the better.


SEO Skills
 
If no one can find your article, no matter how good it is, no one is going to read it either. Take the time to learn to SEO skills, including LSI. SEO will greatly maximize your earning potential in online article writing. Many online writers get paid for their content per page view either solely or in addition to other payments. This is why it is so important to learn SEO to draw traffic to articles.


Focused Headline and Topic
 
Readers need a clear picture. They need to know from the start what your article is about. Focus your headline directly on the topic at hand, not just part of it. The headline (or title) "Maximize Earning Potential in Online Article Writing" tells me this article offers advice on how to earn more money with articles written for the web. If the title instead was "Pay Attention to Grammar, Titles, and More" that could refer to a book, a lesson at school, or any number of things. It does not tell me it's about article writing on the internet or how I can earn more money. When writing headlines for articles, maximize the earning potential by fully focusing on the topic at hand.


Abstract Focus
 
Focusing on the topic, as well as the SEO in the abstract is one more great way to maximize earning potential in online writing. Just as the headline needs focus, so does the abstract (or first few sentences). This is what search engines show with your article link. Therefore, it should clearly represent the complete focus of the article. Take out all the fluff and just get straight to the point.


Focus and Readability
Web readers want to find their info fast. That's why they search for it online - instant gratification. This means that content needs to not only be discoverable, but straight to the point and in simple language. If a reader can't understand the language and focus right away, they likely won't read the rest of the article.


Clean Formatting
 
Online article writers also can maximize earning potential by using clean formatting. There is no exact format o recommend because it will be different depending on the venue. However, if your article looks like one long paragraph, readers may stray away. Generally you need to beak up articles into sections. Subtitles can also be used if desired. Whatever formatting you choose, be consistent throughout the article for the best readability results.


Promotion
 
In line with the SEO skills mentioned above, promotion is another great way to draw readership. To be the most effective, they should go hand-in-hand. Article writers can maximize earning potential with promotion in many different ways. Post links in forums (where permitted), on your blog, in other articles, on social networks, and more. If you have a website, share your work there as well. There should also be a way for readers to subscribe through both RSS and email. If you have an RSS feed of your articles, it can be submitted to online article directories. There are many, many ways to be promote. The main thing to remember with promotion is to be consistent and to do it only where allowed and by the rules. You don't want to be known as a spammer. The goal instead is to be a source of interesting and informative content.

Wednesday, July 3, 2013

Magento eCommerce Test




Analyze the following code snippet. What will be the output of this code?

<html>
<body>
<script type="text/javascript">
var str = "The drain of the plane is plain";
var patt1 =/ain/g;
document.write(str.match(patt1));
</script>
</body>
</html>
a. 1
b. ain
c. 7,29
d. 7
e. ain,ain
Which of the following is the correct syntactical representation of a generator expression in JavaScript?
a. var doubles = [i * 2 for (i in it)];
b. var doubles = [i * 2 for [i in it]];
c. var doubles = (i * 2 for (i in it));
d. var doubles = {i * 2 for (i in it)};
What is the output of the following JavaScript code?

s2 = new String("2 + 2")
document.write(eval(s2));
a. 4
b. 2+2
c. Error
d. None of the above
Consider the following code snippet. Which of the given options would be used in E4X to change the color of the descendant node chair?

var element = <Home>
    <Room>
    <Furniture>
    <chair color="Brown"/>
    </Furniture>
    </Room>
    </Home>
a. element.chair.color="light brown"
b. element.chair.@color="light brown"
c. element..chair.@color="light brown"
Consider the code snippet below. Which of the given options represents the correct sequence of outputs when this code is executed in E4X?

var p1 = <p>Kibology for all.</p>;
  alert(p1.name().uri);
  default xml namespace = 'http://www.w3.org/1999/xhtml';
  var p2 = <p>Kibology for all.</p>;
  alert(p2.name().uri);
  default xml namespace = '';
  var p3 = <p>Kibology for all.</p>;
  alert(p3.name().uri);
b. '','',''
d. None of the above
Which of the following is not a valid JavaScript operator?
a. *=
b. /=
c. %=
d. ^+
Which of the following is not a valid String method?
a. link()
b. italics()
c. str()
d. sup()
Which of the following methods is used to add and/or remove elements from an array and modify them in place?
a. push
b. slice
c. join
d. splice
In JavaScript, the encodeURI() function is used to encode special characters. Which of the following special characters is/are an exception to that rule?
a. £
b. €
c. @
d. $
e. a and b
f. c and d
Which of the following is not a valid Date Object method in JavaScript?
a. parse()
b. setDay()
c. setTime()
d. valueOf()
Which of the following results is returned by the JavaScript operator "typeof" for the keyword "null"?
a. function
b. object
c. string
d. number
Which of the following can be used to create attribute values by placing variables and expressions within them?
a. []
b. ()
c. {}
d. <>
What will the function NaN return for the condition NaN == NaN?
a. true
b. false
c. error
d. 0
Which of the following modifiers must be set if we use the Javascript lastIndex Object Property during pattern matching?
a. i
b. m
c. g
d. s
Which of the following two JavaScript code snippets is the more efficient and why?

CODE SNIPPET 1

<script language="javascript">
    for(i=0;i<document.images.length;i++)
    document.images[i].src="blank.gif";
</script>

CODE SNIPPET 2

<script language="javascript">
    var theimages = document.images;
    for(i=0;i<theimages.length;i++)
    theimages[i].src="blank.gif";
</script>
a. Both codes are equally efficient.
b. The first code is more efficient because it contains less code.
c. The first code is more efficient because it employs object caching.
d. The second code is more efficient because it employs object caching.
Which of the following is used to solve the problem of enumerations in JavaScript?
a. let
b. Regex
c. Generators
d. E4X
Is the following statement regarding expression closures in JavaScript true or false?

The syntax function(x) {return x*x;} can be written as function(x) x*x.
a. True
b. False
Which of the given options represents the correct length when alert(Emp..*.length()); is applied to the following code?

var Emp = <Emp>
  <name>Mark</name>
  <likes>
    <os>Linux</os>
    <browser>Firefox</browser>
    <language>JavaScript</language>
    <language>Python</language>
  </likes>
</Emp>
a. 11
b. 5
c. 6
d. 12
Analyze the following code snippet. What will be the output of this code?

<html>
<body>
<script type="text/javascript">
var str = "Visit Gardens(now)";
var patt1 = new RegExp("(now)", "g");
patt1.test(str);
document.write(RegExp.lastParen);
</script>
</body>
</html>
a. now
b. (now)
c. 15
d. 19
Which of the following is the correct way to create an XML object in E4X?
a. var languages = new XML('JavaScriptPython');
b. var languages XML = new XML('JavaScriptPython');
c. var languages =
    JavaScript
    Python
    ;
d. All of the above are correct.
e. a and c
f. b and c
Which of the following Array methods in JavaScript runs a function on every item in the Array and collects the result from previous calls, but in reverse?
a. reduce()
b. reduceRight()
c. reverse()
d. pop()
Which of the following can be achieved using JavaScript?
a. Reading or writing from external files
b. Accessing or modifying browser settings
c. Launching the default email application of the client
d. All of the above can be achieved using JavaScript.
Which of the following objects is the top-level object in the JavaScript hierarchy?
a. Navigator
b. Screen
c. Window
d. Document
Which of the following Javascript Regular Expression modifiers finds one or more occurrences of a specific character in a string?
a. ?
b. *
c. +
d. #
Which of the following is the correct syntax for using the Javascript exec() object method?
a. RegExpObject.exec()
b. RegExpObject.exec(string)
c. RegExpObject.exec(parameter1,parameter2)
d. None of the above
Analyze the following code using the source property of Regular Expressions. What will be the output of the below code snippet?

<html>
<body>
<script type="text/javascript">
var str = "Visit Garden\Showcase";
var patt1 = new RegExp("en\S","g");
document.write("The regular expression is: " + patt1.source);
</script>
</body>
</html>
a. The regular expression is: en\S
b. The regular expression is: 11
c. The regular expression is: enS
d. The regular expression is: 10
Which of the following options can be used for adding direct support for XML to JavaScript?
a. E4X
b. regex
c. Generators and Iterators
d. let
Which of the following options is used to access the attributes in E4X?
a. @
b. ::
c. #
d. *
Which of the following statements regarding let in JavaScript is not correct?
a. The let definition defines variables whose scope is constrained to the block in which they're defined. This syntax is very much like the syntax used for var.
b. The let expression lets you establish variables scoped only to a single expression.
c. The let keyword provides a way to associate values with variables within the scope of a block, and affects the values of like-named variables outside the block.
d. You can use let to establish variables that exist only within the context of a for loop.
Which of the following are not global methods and properties in E4X?
a. ignoreComments
b. ignoreWhiteSpace
c. setName()
d. setNamespace()
e. a and b
f. c and d
What will be the output of the following code?

  var x = 5;
  var y = 0;
  document.write( let(x = x + 10, y = 12) x+y + ",");
  document.write(x+y);
a. 27,5
b. 22,5
c. 27,22
d. None of the above
Which of the following is not a valid method in generator-iterator objects in JavaScript?
a. send()
b. throw()
c. next()
d. stop()
Using the concept of "iterators" and "generators" in JavaScript, what will be the output of the following code?

function testGenerator()
{
  yield "first";
document.write("step1");
  yield "second";
document.write("step2");
  yield "third";
document.write("step3");
  }
var g = testGenerator();
document.write(g.next());
document.write(g.next());
a. firststep1second
b. step1step2
c. step1
d. step1step2step3
Which of the following DOM objects can be used to determine the resolution of the screen?
a. It is not possible to determine the resolution of the screen.
b. Screen object
c. Document object
d. Window object
e. None of the above
Analyze the following code snippet. What will be the output of this code?

<html>
<body>
<script type="text/javascript">
var str = "The rose";
var patt1 = new RegExp("rose", "g");
patt1.test(str);
document.write("rose found. index now at: " + patt1.lastIndex);
</script>
</body>
</html>
a. rose found. index now at: 5
b. rose found. index now at: 4
c. rose found. index now at: 8
d. No output
Which of the following options can be used to delete a child node of an XML object in E4X?
a. delete xmlobject.child;
b. delete xmlobject.child[0];
c. delete xmlobject.@attribute;
d. All of the above
Analyze the following code snippet, which uses a Javascript Regular Expression Character Set. What will be the output of this code?

<html>
<body>
<script type="text/javascript">
var str = "Is this enough?";
var patt1 = new RegExp("[^A-J]");
var result = str.match(patt1);
document.write(result);
</script>
</body>
</html>
a. I
b. Is
c. s
d. I,s,
Consider the code below. What will be the final value of the variable "apt"?

var apt=2;
apt=apt<<2;
a. 2
b. 4
c. 6
d. 8
e. 16
Is the following statement true or false?

A function becomes a generator if it contains one or more yield statements.
a. True
b. False
What does the following JavaScript code do?

<html>
<body>
<script type="text/javascript">
function validate()
{
var chk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
var ok="yes";
var temp;
var field1=document.getElementById("t1");
var field=field1.value.substring(field1.value.length-1,field1.value.length);
if(chk.indexOf(field)=="-1")
{
      alert("error");
      field1.value=(field1.value).slice(0,field1.value.length-1);
}
}
</script>
<input type="text" id="t1" onkeyup="validate()" onkeypress ="validate()"/>
</body>
</html>
a. The code will cause an error alert to be displayed if a numeric character is entered, and the numeric character is removed.
b. The code will cause an error alert to be displayed if a non-numeric character is entered, and the non-numeric character is removed.
c. The code will cause an error alert to be displayed if a numeric character is entered, and the value of textbox is reset.
d. The code will cause an error alert to be displayed if a non-numeric character is entered, and the value of textbox is reset.
Analyze the following code snippet. What will be the output of this code?

<html>
<body>
<script type="text/javascript">
var str = "Visit Gardens(now)";
var patt1 = new RegExp("(now)", "g");
patt1.test(str);
document.write(RegExp.lastParen);
</script>
</body>
</html>
a. no
b. (no)
c. 15
d. 19

Which of the following is the correct method for getting the date of February 1 of the current year into a variable called "newDate"?
a. var d = new Date();
    newDate=new Date(d.getFullYear(), 1, 2);
b. var d = new Date();
    newDate=new Date(d.getFullYear(), 2, 1);
c. var d = new Date();
    newDate=new Date(d.getFullYear(), 1, 1);
d. var d = new Date();
    newDate= (d.getFullYear(), 1, 1);
Which of the following can be used to create attribute values by placing variables and expressions within them?
a. []
b. ()
c. {}
d. <>
Which of the following Javascript Regular Expression Character Classes finds any non-digit character in a given string?
a. \W
b. \S
c. \B
d. \D
Which of the following objects in JavaScript contains the collection called "plugins"?
a. Location
b. Window
c. Screen
d. Navigator
Which of the following Javascript Regular Expression object methods is used to search a string for a specified value and return the result as true or false?
a. exec()
b. compile()
c. return()
d. test()
Which of the following methods is not a valid Array object method in JavaScript?
a. reverse
b. shift
c. unshift
d. splice
e. All of the above are valid.
In an HTML page, the form tag is defined as follows:

<form onsubmit="return Validate()" action="http://www.mysite.com/">

The validate() function is intended to prevent the form from being submitted if the name field in the form is empty. What will the validate() function look like?
a. <script type="text/javascript">
    function Validate()
    {
    if(document.forms[0].name.value == "")
        return true;
    else
        return false;}
    </script>
b. <script type="text/javascript">
    function Validate()
    {
    if(document.forms[0].name.value == "")
        return false;
    else
        return true;
    }
    </script>
c. <script type="text/javascript">
    function Validate()
    {
    if(document.forms[0].name== "")
        return false;
    else
    return true;
    }
    </script>
d. <script type="text/javascript">
    function Validate()
    {
    if(document.forms[0].name == "")
        return true;
    else
        return false;
    }
    </script>
Which of the following is the correct way to create an XML object in E4X?
a. var languages = new XML('<languages     
    type="dynamic"><lang>JavaScript</lang><lang>Python</lang></languages>');
b. var languages XML = new XML('<languages   
    type="dynamic"><lang>JavaScript</lang><lang>Python</lang></languages>');
c. var languages = <languages type="dynamic">
    <lang>JavaScript</lang>
    <lang>Python</lang>
     </languages>;
d. All of the above are correct.
e. a and c
f. b and c