Accelerated Principles Mid-Term

Accelerated Principles Mid-Term

12th Grade

30 Qs

quiz-placeholder

Similar activities

IDT S23 JS Coding Test Review

IDT S23 JS Coding Test Review

unit 3 CP A

unit 3 CP A

javaScript RGB, Input, & Graphics

javaScript RGB, Input, & Graphics

JS and Graphics Unit Review

JS and Graphics Unit Review

JavaScript Test

JavaScript Test

Unit 7 Function and Parameters in Javascript CodeHS

Unit 7 Function and Parameters in Javascript CodeHS

JavaScript Graphics

JavaScript Graphics

Accelerated Principles Mid-Term

Accelerated Principles Mid-Term

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Daniel Golasinski

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

The following program should draw a circle on the screen


But when we run this code, we don’t see the circle. What is missing from our start function?

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the output of the following program: (Assume the user enters ‘Florence’ then ‘Fernandez’.)

Fernandez Florence

FLorence Fernandez

FlorenceFernandez

Florence Fernandez

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following choices is a properly formed JavaScript variable name, meaning it is both legal in the JavaScript language and considered good style?

user_age

UserAge

userAge

User age

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

If you wanted to use the following code to draw a circle to the canvas with the radius, and x and y coordinates given by the user, how would you ask for this information?

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

If you were given the following variables:

var distance = 2;

var time = 30;

What line of code would print the speed in km/hr if the distance is given in km and the time is given in minutes? (Speed = distance/time)

  1. println(distance/(time/60));

  1. println(distance/time);

  1. println(distance*(time*60));

  1. println(distance*time);

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is printed to the screen when the following program is run?

var num = 13 % 3;

println(num);

1

2

3

4

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is printed to the screen if the user enters ‘5’ when the following program is run?

5

25

30

50

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

Already have an account?