Java Script BASICS

Java Script BASICS

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

TLJ (Materi Mikrotik Dasar)KKM70

TLJ (Materi Mikrotik Dasar)KKM70

12th Grade - University

26 Qs

OSPF Practice

OSPF Practice

11th Grade

22 Qs

kamera

kamera

11th Grade

22 Qs

Teste de avaliação UFCD0822

Teste de avaliação UFCD0822

9th Grade - Professional Development

22 Qs

UH 1-MYOB Manufaktur

UH 1-MYOB Manufaktur

12th Grade

25 Qs

SOAL REMED PTS DDK DKV X DKV-3

SOAL REMED PTS DDK DKV X DKV-3

10th Grade

22 Qs

Year 9 assessment

Year 9 assessment

9th Grade

22 Qs

Test IP

Test IP

12th Grade

25 Qs

Java Script BASICS

Java Script BASICS

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Mrs.K. González

Used 193+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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?