WorksheetsBasic java script questions
Total questions: 36
Worksheet time: 1hrs 12mins
ellipse(212, 235, 100, 73);
ellipse(150, 150, 30, 30);
ellipse(278, 150, 30, 30);
The code above represents a snowman with two eyes and a nose. The code that represents the nose is:
y = 3;
x = 5 * y;
fill(0, 13, 255);
textSize(38);
text("Sophia", 99, 96);
What is the correct order of parameters in rect()?
rect(x, y, width, height);
rect(y, x, width, height);
rect(x, y, height, width);
rect(width, height, x, y);
How do you turn off the outline around the shapes?
noStroke();
stroke("transparent");
noFill();
noOutline();
Color is defined by these three colors
Red, purple, orange
Red, Green, Blue
Green, Blue, Orange
To draw an oval with its centre at the origin, width 100, height 150, filled with RED colour, which one is correct?
fill (255, 0, 0); ellipse(0, 0, 100, 150);
fill (0, 0, 0); ellipse (0, 0, 150, 100);
fill (255, 255, 255); ellipse (100, 150, 0, 0);
ellipse (0, 0, 100, 150);
The following variable declaration declares a:
var value = 12;
number
whole number
string
decimal value
What is programming?
Installing program into Computer
Group of Functions
The process of writing computer programs.
What is JavaScript
A programming language
A game
Computer Software
The Java Script command that used to draw a circle is:
Circle
Rect
ellipse
1. When drawing in Javascript, the coordinates for the top left of the screen is:
0,400
400,0
0,0
The command: background( 0,0,0); will draw
A white background
A background with text
A background with an image
A black background
What feature allows you to change the value of coordinates quicker than changing it manually ?
scrubbing
drubbing
number scrubbing
letter scrubbing
When choosing the color for a shape which feature can help you to select color quickly?
Color ticker
Color picker
Color design
Remember the number for the color you wish to use
In which order instructions are executed in java script?
Any order
In the sequence they appear
It doesn't matter
Look at the code below and image and identify which fill() function that has been used to colour the ground color?
background(69, 181, 175);
fill(13, 255, 0);
rect(0, 300, 400, 100);
fill(247, 255, 0);
// The sun
ellipse(80, 64, 100, 100);
fill(234, 247, 247);
ellipse(200, 300, 150, 150);
ellipse(200, 200, 100, 100);
ellipse(200, 120, 75, 75);
fill(13,255,0)
fill(247,255,0)
fill(234,247,247)
Look at the code below and image and identify which fill() function that has been used to colour the sun?
background(69, 181, 175);
fill(13, 255, 0);
rect(0, 300, 400, 100);
fill(247, 255, 0);
ellipse(80, 64, 100, 100);
fill(234, 247, 247);
ellipse(200, 300, 150, 150);
ellipse(200, 200, 100, 100);
ellipse(200, 120, 75, 75);
fill(13,255,0)
fill(247,255,0)
fill(234,247,247)
Look at the code below and image and identify which fill() function that has been used to colour the snowman?
background(69, 181, 175);
fill(13, 255, 0);
rect(0, 300, 400, 100);
fill(247, 255, 0);
ellipse(80, 64, 100, 100);
fill(234, 247, 247);
ellipse(200, 300, 150, 150);
ellipse(200, 200, 100, 100);
ellipse(200, 120, 75, 75);
fill(13,255,0)
fill(247,255,0)
fill(234,247,247)
How does documentation helps you while programming?
If you are stuck you can look into documentation which would show the functions in categories and their parameters and description of what these functions do?
You don't have to memorize the functions
It doesn't help at all.
What function helps you to thicken the edges of the shape?
Fill()
rect()
Strokeweight()
stroke()
Which function colour the edges of the shape?
Fill()
rect()
Strokeweight()
stroke()
in the fill function what does r,g,b stands for? fill(r,g,b)
red,green,blue
red,go,blue
red,green,black
rose,george,bash
