Quiz Pre-test Nested Loops

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

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