Java Script BASICS

Java Script BASICS

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

Adobe Illustrator Intro Shortcuts and Tools

Adobe Illustrator Intro Shortcuts and Tools

9th - 12th Grade

25 Qs

Code.org Commands Quiz

Code.org Commands Quiz

9th Grade

25 Qs

Network Addressing & Services

Network Addressing & Services

10th - 12th Grade

25 Qs

AutoCAD Exam Review Pt. 2

AutoCAD Exam Review Pt. 2

9th - 12th Grade

22 Qs

soal ASJ XII SMKS EL HAYAT

soal ASJ XII SMKS EL HAYAT

12th Grade

23 Qs

Grade 9 - Computer Networking Quiz

Grade 9 - Computer Networking Quiz

9th Grade

25 Qs

AIJ

AIJ

12th Grade

25 Qs

Kuis Subnetting

Kuis Subnetting

11th Grade

26 Qs

Java Script BASICS

Java Script BASICS

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Mrs.K. González

Used 193+ times

FREE Resource

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The command: ellipse( 200,100, 20, 20) will draw:
an ellipse that is 100 pixels wide and 100 pixels high
a circle whose center is 200 pixels across and 100 pixels down
a rectangle that is 200 pixels by 100 pixels wide
a circle that is 200 pixels in diameter

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After running the following code, what will be the value of x?
y = 3;
x = 5 * y;
3
5
15
0

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

A variable is used to:
Store a value in memory
Draw a circle
Store a value that does not change
Draw a rectangle

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following code section will:
x = 0;
draw = function() {
rectangle(x, 50, 50, 25);
x++;
}
Draw lots of ellipses across the screen
Draw lots of rectangles across the screen
Draw a rectangle
Draw an ellipse

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Any code that is within the following draw function:
draw = function(){
......
}
Will be performed twice
Will not be performed
Will be performed once
Will be repeated over and over again

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following code will:
x++;
Add 1 to the previous value of x
Add 1 to the previous value of y
Subtract 1 from the previous value of x
Give an error message

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following code will:
var xPos = 15;
var yPos = 350;
var xwidth = 50;
var ywidth = 50;
draw = function() {   
     background(29, 40, 115);   
     fill(255, 242, 0);   
     ellipse(xPos, yPos, xwidth, ywidth);              xPos++;   
     yPos--;   
     xwidth = xwidth* 99/100;   
     ywidth = ywidth * 99/100;
};
Draw a circle that moves right to left accross the screen, getting smaller
Draw a circle that moves diagonally accross the screen, getting bigger
Draw a circle that moves diagonally accross the screen, getting smaller
Draw a circle that moves right to left accross the screen, getting bigger

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?