Tournament 2 - A

Tournament 2 - A

6th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

JavaScript Arrays Quiz

JavaScript Arrays Quiz

11th Grade - University

20 Qs

Java Arrays

Java Arrays

9th - 12th Grade

20 Qs

Javascript Lists Lecture Knowledge Check

Javascript Lists Lecture Knowledge Check

9th - 12th Grade

11 Qs

Basic Data Structures - Intro to CS

Basic Data Structures - Intro to CS

12th Grade

15 Qs

CSA ArrayLists

CSA ArrayLists

10th Grade

11 Qs

Practice for 2nd Python Quiz Comp Prog B

Practice for 2nd Python Quiz Comp Prog B

9th - 12th Grade

12 Qs

Javascript Basics

Javascript Basics

9th - 12th Grade

16 Qs

Java ArrayLists

Java ArrayLists

10th Grade

11 Qs

Tournament 2 - A

Tournament 2 - A

Assessment

Quiz

Computers

6th - 12th Grade

Hard

Created by

Brenda McLachlin

Used 4+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: Some numbers are too big or too small for the computer to understand

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

I am trying to draw a grid of squares. What should go in the empty line?


for (var i = 0; i < 400; i += 40) {

for (var j = 0; j < 400; j += 40) {


}}

rect(i, j, 20, 20);

rect(j, i, 20, 20);

rect(i * 40, j * 40, 10, 10);

rect(j, i, 40, 40);

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Select everything you need to make a recursive function:

recursive call (call itself inside the function)

end condition (when does it stop calling)

start condition (when does it start calling)

passed parameters

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: The number of lines of code a project has is directly connected to how good the code is

True

False

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What is the length of the array nums?


var nums = [];

for (var i = 0; i < 10; i++) {

nums[i] = [];

for (var j = 0; j < 10; j++) {

nums[i].push(random(100));

}}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's wrong with this function?


var r = function(num) {

ellipse(200, 200, num, num);

r(num - 10);

};

It will never end

The ellipse won't appear because there is no fill

Function names have to be more than one letter long

Nothing - it will run fine

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an appropriate case for this switch?


switch(mouseX > 200) {

case true:

case 150:

case mouseX:

case < 100:

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?