Q.1
If I were to animate a ball moving from left to right, at a speed of 1 pixel, what would be a reasonable block of code?
  • var xPos = 0;draw = function() { ellipse(xPos, 200, 50, 50); xPos ++;};
  • var xPos = 0; draw = function() { ellipse(xPos, 200, 50, 50); xPos += 1; };
  • ellipse(xPos, 200, 50, 50);xPos ++;
  • Both A & B
Q.2
What does the JavaScript language do?
  • It can make drawings and animations.
  • It animates websites.
  • It can make simple games.
  • All of above
Q.3
Bind executes the function it was called upon right away
  • True
  • False
Q.4
Returns a new function whose this value is bound to the provided value.
  • Call
  • Apply
  • Bind
  • Bound
Q.5
A function with a provided this and further arguments are provided as a comma separated list
  • Apply
  • Call
  • Bind
  • On
Q.6
Which of the following is wrong?
  • var greeting = `\`Yo\` World!`;//output - `Yo` World!
  • var user = {name: 'World'};console.log(`Thanks for getting this into V8, ${user.name.toUpperCase()}.`); //output - Thanks for getting this into V8, WORLD.
  • console.log("string text line 1 \ string text line 2"); //output - string text line 1 string text line 2
Q.7
I want to extract 'hello' and 'array' from the array using destructuring
  • var [greeting,name] = ["Hello", "I" , "am", "Array"];
  • var [greeting,,,name] = ["Hello", "I" , "am", "Array"];
  • var array = ["Hello", "I" , "am", "Array"]; greeting = array[0];name = array[2];
Q.8
Select all the correct options.
  • var[greeting = "hi", name = “Array"] = ["hello"];
  • let person = {name: "Object", country: "India", job: "Developer"};let {name = "Name", company = "Epsilon"} = person;
  • const message = `Some weird characters: \${abc}`;
  • var a = 10;var b = 5;var result = `The sum of ${a} and ${b} is ${a + b} difference is ${a-b}`;
  • All of above
Q.9
SpiderMonkey was created to be used in which browser?
  • Chrome
  • Safari
  • Mozilla Firefox
  • Netscape
Q.10
When was SpiderMonkey created?
  • 1998
  • 1996
  • 1997
  • 1995
Q.11
Who created SpiderMonkey?
  • Ryan Dahl
  • Mozilla
  • Google
  • Brendan Eich
Q.12
Which of the following doesnt leave behind any artifacts after its done?
  • Transpilers
  • Assemblers
  • Compilers
  • Interpreters
Q.13
The process of transforming Coffeescript to JS is done via?
  • Transpilers
  • Compilers
  • Assemblers
  • Interpreters
Q.14
To execute high level code, what does the computer uses?
  • Compilers, Interpreters, Assemblers
  • Compilers, Interpreters, Linkers
  • Compilers, Transpilers, Linkers
  • Compilers, Transpilers, Interpreters
0 h : 0 m : 1 s