Intro to Computers Chapter 4

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

while (true!)

Suppose you want to program behavior that repeats as long as some condition does not occur. To do this, what statement could you use?

0

The Alice for statement always begins counting with ____.

i++

The Alice for statement uses ____ to increase the index.

while

The ___ statement directs program flow through a group of statements an arbitrary number of times.

6, relational

The ____ most common operators that produce Boolean values are called the ____ operators.

++

The ____ sign is the increment operator.

while

The ____ statement can be used in any situation where repetition is required.

for

The ____ statement directs a program's flow through the statements within it, while counting through a range of numbers.

functions

The ____ tab of Alice's details area contains questions we can ask an object.

i<N

What is the generic condition in a for statement?

89

What number follows 55 in the series below? 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, ____

delay

When Alice encounters a ____ statement, it pauses the program's flow, sets an internal timer to a specified number of seconds, and starts this timer counting down towards zero.

parallel

A DoTogether statement is characterized by its ____ execution.

boolean

A(n) ____ variable can have either of just two values: true or false.

boolean

A(n) ____ variable can serve as a condition in an if or while statement.

validating

Checking a parameter's value before allowing flow to proceed is called ____ the parameter.

conditions

Decision-making on a program depends on ____.

run

From the perspective of an Alice program, you can think of a flow as the sequence of statements that are performed when you click the ____ button.

13-19

Give a value of age that will make the statement true. (age > 12 && age < 20)

any number between 0 and 100

Give a value of testScore that will make the statement false. testScore < 0 || testScore > 100

and

If two conditions must both be true in order for an argument to be acceptable, they should be combined with a Boolean ____ operator.

if

In Alice, a(n) ____ statement is a flow control statement that directs flow according to the value of a condition.

nested

In the following code segment, the second if statement (in blue) is said to be ____. if (condition) { // statement (s) } else { if (condition) { } else { // statement(s) } }

fibinacci

Mathematicians have discovered that many of the spirals that occur in nature use a pattern given in the ____ series.

2

Relational operators compare ____ values and produce an appropriate true or false value.


Set pelajaran terkait

Chapter 39: Management of Patients with Oral and Esophageal Disorders

View Set

Physical Fitness Unit 1 Quiz 3 (FIXED)

View Set

12. Ensuring Network Availability

View Set

court reporters basic legal term

View Set

Chapter 15. Capital Structure: Limits to the Use of Debt

View Set

OB Chapt 5 Sexually Transmitted Infections(nclex)

View Set

CISA Practise Question Database 2013-2014

View Set