Search Header Logo

A9 - T2 Homework 2

Computers

9th Grade

Used 3+ times

A9 - T2 Homework 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

26 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statements is true about the following loop?
While isOnGem{
moveForward()
}

It will moveforward 5 times then it will stop
It will moveforward as long as there is a gem on the tile
It will moveforward exactly 20 times then it will stop
It will moveforward as long as there is no gem on the tile

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following statements is true about the following loop?
While !isOnGem{
moveForward()
}

It will moveforward 5 times then it will stop
It will moveforward as long as there is a gem on the tile
It will moveforward exactly 20 times then it will stop
It will moveforward as long as there is no gem on the tile

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Answer the question in the picture above

I only

II only

I and II only

II and III only

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Refer to the puzzle and the code segment below to answer the question:

In which of the following tiles the loop will stop running?

Tile 1

Tile 2

Tile 3

Tile 4

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Refer to the puzzle and the code segment below to answer the question:

How many gems will be collected after running the code segment above?

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Answer the question in the picture above

I only

III only

I and II only

II and III only

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A WHILE LOOP is a loop that runs a block of code as long as a given condition is TRUE

true
false

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?