Topic 4.1 Video 2

Topic 4.1 Video 2

Assessment

Assessment

Created by

Myra Deister

Computers

11th Grade

1 plays

Medium

6 questions

Show all answers

1.

MULTIPLE CHOICE

30 sec • 1 pt

How many times will this code execute?

while(true)

System.out.print("AP CSA ");

2.

MULTIPLE CHOICE

30 sec • 1 pt

What is an infinite loop?

3.

MULTIPLE CHOICE

30 sec • 1 pt

From the video, what must be done to avoid an infinite loop?

4.

MULTIPLE CHOICE

30 sec • 1 pt

What is output by the code below?

 

int n = 0;

while(n<10)

{  

   n+=3;

}

System.out.print( n );

5.

MULTIPLE CHOICE

30 sec • 1 pt

What is output by the code below?

 

int n=4, a=0;

while(n<13)

{  

   a += n;  

   n+=3;

}

System.out.print( a );

6.

OPEN ENDED

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.