CompSci Exam Review (Looping)

0.0(0)
Studied by 2 people
0%Exam Mastery
Build your Mastery score
multiple choiceAP Practice
Supplemental Materials
call kaiCall Kai
Card Sorting

1/12

flashcard set

Earn XP

Description and Tags

GoodLuck!

Last updated 11:10 PM on 12/8/23
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards

• Loop

  • a structure that allows repetitive execution of a block of statements

2
New cards

• Loop Body

  • block of statements within a looping structure

3
New cards

• Types of C# Loops

  • while loop

  • for loop

  • do loop

  • do - while loop

4
New cards

• While Loop

  • executes a body of statements continuously as long as some condition to be true

5
New cards

• Ways you can Alter the Control Variable

  • incrementing

  • decrementing

6
New cards

• Definite lop or Counted loop

  • loop for which number of interactions is predetermined

7
New cards

• Indefinite Loop

  • Value of a loop control variable is not altered by arithmetic, but is instead altered by the user

8
New cards

• For loop

  • short hand way t create definite loops

  • a.k.a the pretest loop

9
New cards

• Sections of For loop

  • initializing, testing, and updating the control variable

10
New cards

• Do Loop

  • checks at the bottom of the loop after one reptation has occurred

  • convenient when you want to perform a task at least once

  • a.k.a the postest loop

11
New cards

• Nested Loop

  • contains an inner loop and an outer loop

  • loops cant over lap

12
New cards

• Sentinal Value

  • value of the same data type but not a legal data value

  • ex: double total =0;

13
New cards

• Improving Loop Performance

  • make sure the loop doesn’t include unnecessary operators or statements

  • ex: while (x < a+b) say int sum = a + b

    while ( x < sum)

Explore top notes

note
LIGHT: Geometric Optics
Updated 1289d ago
0.0(0)
note
arguments and fallacies
Updated 1255d ago
0.0(0)
note
APES 4.9 El Nino and La Nina
Updated 1142d ago
0.0(0)
note
BotanyRoots
Updated 1297d ago
0.0(0)
note
1st ISLAMIC COMMUNITY (PART 1)
Updated 1295d ago
0.0(0)
note
Unit 7
Updated 331d ago
0.0(0)
note
LIGHT: Geometric Optics
Updated 1289d ago
0.0(0)
note
arguments and fallacies
Updated 1255d ago
0.0(0)
note
APES 4.9 El Nino and La Nina
Updated 1142d ago
0.0(0)
note
BotanyRoots
Updated 1297d ago
0.0(0)
note
1st ISLAMIC COMMUNITY (PART 1)
Updated 1295d ago
0.0(0)
note
Unit 7
Updated 331d ago
0.0(0)

Explore top flashcards

flashcards
Mesopotamian Empires
40
Updated 1213d ago
0.0(0)
flashcards
SPANISHOCAB
45
Updated 1062d ago
0.0(0)
flashcards
Tussenstop 4
53
Updated 1027d ago
0.0(0)
flashcards
Book A Final
44
Updated 329d ago
0.0(0)
flashcards
unit 3: republic act 7719
111
Updated 1135d ago
0.0(0)
flashcards
Phys II- Exam 1 TQs
190
Updated 246d ago
0.0(0)
flashcards
Mesopotamian Empires
40
Updated 1213d ago
0.0(0)
flashcards
SPANISHOCAB
45
Updated 1062d ago
0.0(0)
flashcards
Tussenstop 4
53
Updated 1027d ago
0.0(0)
flashcards
Book A Final
44
Updated 329d ago
0.0(0)
flashcards
unit 3: republic act 7719
111
Updated 1135d ago
0.0(0)
flashcards
Phys II- Exam 1 TQs
190
Updated 246d ago
0.0(0)