Java Script BASICS

Java Script BASICS

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

11 CSC ATAR - Week 2-3 review

11 CSC ATAR - Week 2-3 review

11th Grade

22 Qs

Computer Pretest1(Arduino Grade8_t1)

Computer Pretest1(Arduino Grade8_t1)

3rd Grade - University

25 Qs

Importance of AI

Importance of AI

2nd Grade - University

22 Qs

Functions in RobotC

Functions in RobotC

7th - 11th Grade

22 Qs

CodeHS Data AP CSP

CodeHS Data AP CSP

11th - 12th Grade

22 Qs

VISUAL BASIC 6

VISUAL BASIC 6

9th - 10th Grade

25 Qs

Microsoft Server Admin 98-365 Part 3

Microsoft Server Admin 98-365 Part 3

KG - Professional Development

22 Qs

DAMPAK SOSIAL INFORMATIKA KELAS 9

DAMPAK SOSIAL INFORMATIKA KELAS 9

9th Grade

30 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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers