Search Header Logo

Tournament 2 - A

Authored by Brenda McLachlin

Computers

6th - 12th Grade

Used 4+ times

Tournament 2 - A
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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:

Access all questions and much more by creating a free account

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?