Search Header Logo

Topic 4.2 Video 2

Authored by Myra Deister

Computers

11th Grade

Used 1+ times

Topic 4.2 Video 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an off by one error (OBO)?

A programming mistake where a loop or index is off by zero units.
A programming mistake where a loop or index is off by multiple units.
A programming mistake where a loop or index is off by two units.
A programming mistake where a loop or index is off by one unit.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Can a for loop be rewritten as a while loop?

Only in certain cases
Yes
No
Sometimes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of these loops will NOT print 10 asterisks (*)?

Media Image
Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below?

 

for(int i=15; i>2; i=i-2)

   System.out.print(i);

 

151311975

1513119753

13119753

15131197531

15131197531-1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following lines of code when added to the given code will print the product of the numbers from 1 to 10 (1*2*3*4*5*6*7*8*9*10)?

s += i * i;

s++;

s *=i;

s = s + s *i;

6.

OPEN ENDED QUESTION

3 mins • 1 pt

Media Image

Upload a screenshot of the last screen of the video. Make sure your name is displayed and the title of the video. There is an example on the left.

Evaluate responses using AI:

OFF

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?