Search Header Logo

Topic 4.2 Video 3

Authored by Myra Deister

Mathematics

11th Grade

CCSS covered

Used 2+ times

Topic 4.2 Video 3
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

Media Image

Which of these best describes the output of these 2 code segments?

Segment 1 and Segment 2 produce the same output.

Segment 1 produces a larger sum than Segment 2, because the update increments by 2.

Segment 2 produces a larger sum than Segment 1, because no numbers are skipped in the for loop.

Segment 1 only sums the odd numbers from 1 to 20, while Segment 2 only sums the even numbers from 0 to 20.

Segment 1 and Segment 2 would produce the same output if the initialization of i in Segment 1 was changed from 1 to 0.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Complete the code to produce the following output

public static void main(String [ ] args)

{

for (/* initialization */; / * Boolean Expression */; number++)

{

System.out.print(number * 3 + " ");

}

System.out.println( );

}

Output: 0 3 6 9 12 15 18 21 24 27 30

int number = 0; number < 10;

int number = 0; number <= 10;

int number = 3; number < 10;

int number = 3; number <= 10;

3.

OPEN ENDED QUESTION

3 mins • 1 pt

If you have $200 in a bank account that earns 10% interest per year, how much would you have after saving that money for 50 years?

Write a code segment (using a for loop) to calculate and display the total amount that you would have after 50 years.

Evaluate responses using AI:

OFF

Tags

CCSS.HSF.BF.A.2

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of a loop is a for loop?

pre-test

post-test

mid-test

zero-test

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if the condition of a for loop is false the first time it is checked:

There will be a syntax error

The loop will never end

The loop will execute only once

The loop will never execute.

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?