Topic 4.2 Video 3

Topic 4.2 Video 3

11th Grade

6 Qs

quiz-placeholder

Similar activities

Java Operators

Java Operators

9th - 12th Grade

10 Qs

Analyzing Two Variable Data

Analyzing Two Variable Data

10th - 12th Grade

11 Qs

Statistics Two Variable

Statistics Two Variable

10th - 12th Grade

11 Qs

GEOMETRY BASICS

GEOMETRY BASICS

6th - 12th Grade

11 Qs

for and while loops quiz

for and while loops quiz

11th Grade

10 Qs

Arrays Review

Arrays Review

9th - 12th Grade

11 Qs

String

String

10th - 12th Grade

10 Qs

IDT S1 Final Review Part 2

IDT S1 Final Review Part 2

8th - 12th Grade

10 Qs

Topic 4.2 Video 3

Topic 4.2 Video 3

Assessment

Quiz

Mathematics

11th Grade

Easy

CCSS
HSF.BF.A.2

Standards-aligned

Created by

Myra Deister

Used 2+ times

FREE Resource

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