Untitled Flashcards

Untitled Flashcards

Assessment

Flashcard

Computers

9th Grade

Easy

Created by

Paolo Perez

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

3 questions

Show all answers

1.

FLASHCARD QUESTION

Front

1. What is a key difference between a do/while loop and a while loop?


A.) A do/while loop will execute the code block at least once, even if the condition is false.

B.) A do/while loop checks the condition before running the code block.

C.) A do/while loop only runs when the condition is false.

D.) There is no difference; they work the same.

Back

ANSWER:

A.) A do/while loop will execute the code block at least once, even if the condition is false.

2.

FLASHCARD QUESTION

Front

NOTE: # 2-4

Use the do/while loop to print i as long as i is less than 6.

Back

Media Image

3.

FLASHCARD QUESTION

Front

5.)

Back

ANSWER:

THE OUTPUT OF THIS CODE IS 3.