Tournament 2 - A

Tournament 2 - A

6th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Array

Array

10th Grade

10 Qs

Struktur Data - Sorting

Struktur Data - Sorting

1st - 10th Grade

15 Qs

Coding 1 U7

Coding 1 U7

9th Grade - University

15 Qs

Unit 7 - ArrayList - Test Review

Unit 7 - ArrayList - Test Review

9th - 12th Grade

12 Qs

VidCode: What Do You Know?

VidCode: What Do You Know?

11th Grade

12 Qs

Lecture 4.4 Part 2

Lecture 4.4 Part 2

12th Grade

11 Qs

Javascript Arrays

Javascript Arrays

9th - 12th Grade

12 Qs

Python массив

Python массив

9th Grade

16 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?