Quiz Pre-test Nested Loops

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

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:02 AM on 3/14/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

18 Terms

1
New cards

Pseudocode is a mix of natural and programming language

True

2
New cards

Object-oriented design is an alternative to structured-design using the philosophy of encapsulation

True

3
New cards

indexOf is a method for extracting a segment of the text of a string

False

4
New cards

length is a method telling the number of characters in a string

True

5
New cards

Eachย elseย in an if-statement is matched with the nearest preceding unmatchedย if.

True

6
New cards

The initialization section of a for loop may contain multiple statements separated by comma (not declarations)

True

7
New cards

The termination test section of a for loop may contain multiple statements separated by comma

False

8
New cards

A conditional operator expression can be nested.

True

9
New cards

In some cases a while loop may execute its body zero times.

True

10
New cards

A loop that repeats itself without ever ending is called anย off-by-oneย error

False

11
New cards

A do-while loop is classified as a pre-test loop.

False

12
New cards

$1 is used by bash scripts as a variable to store the first command line parameter.

True

13
New cards

%errorlevel% is used to find the result code of the previously executing program in cmd

True

14
New cards

The updating section of a for loop may contain multiple statements separated by comma

True

15
New cards

An inner loop initialization and termination conditions may use the control variable of the outer loop

True

16
New cards

An outer loop can have only one nested inner loop

False

17
New cards

The scope of a control variable declared in a forย loop extends from the point where the variable is declared through to the end of the program.

False

18
New cards

for-loops can be nested but while-loops cannot.

False