Jeroo Methods and Loops Review

0.0(0)
Studied by 9 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/26

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:50 AM on 9/9/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

27 Terms

1
New cards

Every Jeroo program must have exactly one

main method

2
New cards

main method

describes how to use one or more Jeroos to solve a specific problem

3
New cards

Everything that appears between the braces should be indented

2 or 3 spaces.

4
New cards

The first part of the main method must be used to

declare and instantiate all the Jeroos that will be used by the program

5
New cards

declaration portion

indicates that the programmer plans to use a Jeroo to help solve the problem

6
New cards

instantiation portion

a request that the Jeroo object be created

7
New cards

The programmer must provide an _______ for the Jeroo object

identifier

8
New cards

The crucial part of the instantiation is the

constructor

9
New cards

action statement

a request that a Jeroo perform a specific task

10
New cards

behavior

an action that an object can take or a task that it can perform in response to a request from an external source

11
New cards

method

collection of statements that are written in some programming language to describe a specific behavior

12
New cards

A Jeroo method contains

the source code that describes what an arbitrary Jeroo needs to do to carry out the corresponding behavior

13
New cards

precondition

something that is assumed to be true before the method is invoked

14
New cards

postcondition

something that is true after the method has been executed

15
New cards

control structure

a feature of a programming language that determines the order in which statements will be executed

16
New cards

Boolean expression

any expression that can be either true or false

17
New cards

repetition structure

allows a group of statements to be executed several times in succession

18
New cards

selection structure

defines alternate paths through the source code

19
New cards

There are two major parts to every repetition structure,

the body and the controlling condition

20
New cards

body of the loop.

The block of statements that can be executed repeatedly

21
New cards

trip (or iteration)

Each time that the statements in the body are executed

22
New cards

controlling condition

a condition that is checked to determine whether to make a trip through the body or terminate the loop

23
New cards

pretest loop

the controlling condition is always checked before the body can be executed for the first time

24
New cards

posttest loop

the controlling condition is not checked until after the first trip through the body

25
New cards

while loop

a true condition leads to a trip through the body, but a false condition terminates the loop

26
New cards

until loop

a true condition terminates the loop, but a false condition leads to a trip through the body

27
New cards

Boolean expression

any expression that is either true or false