Programming c02

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

1/51

flashcard set

Earn XP

Description and Tags

programming

Last updated 11:46 PM on 9/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

52 Terms

1
New cards

What statement is used to make a decision in a program?

If Statement

2
New cards

What statement is used when there are two possible choices?

If-Else Statement

3
New cards

What statement is used to check multiple conditions?

Else-If Statement

4
New cards


What loop is used when the number of repetitions is known?

For Loop

5
New cards


What loop runs while a condition remains true?

While Loop

6
New cards


What loop executes its body before checking the condition?

Do-While Loop

7
New cards

What data types stores True or False

Boolean

8
New cards

What symbol is greater than?

>

9
New cards

What symbol is less than?

<

10
New cards

What symbol is equality

==

11
New cards

What symbol is not equal

!=

12
New cards

What symbol represents the logical AND operator?

&& or ampersand

13
New cards

What symbol represents logical OR operator?

|| or straight bars

14
New cards

What symbol represents the logical NOT operator?

!

15
New cards

Loop that does not end

infinite loop

16
New cards

Loop inside another loop

nested loop

17
New cards

What variable is commonly used for Loop?

counter

18
New cards

T / F | A for loop is an iterative structure

True

19
New cards

T / F | An if statement is a conditional structure

True

20
New cards

T / F | A while loop always execute atleast once

False

21
New cards


T / F | A do-while loop always execute atleast once

True

22
New cards

T / F | Conditional structures are used for decision making

True

23
New cards

T / F | True && True evaluates to True

True

24
New cards

T / F | True && False evaluates to True

False

25
New cards

T / F | False || True evaluates True

True

26
New cards

T / F | False || False evaluates to True

False

27
New cards

T / F | Iterative structures are used for repetition

True

28
New cards

T / F | 10 > 5 evaluates to true

True

29
New cards

T / F | 3 > 7 evaluates to true

False

30
New cards

T / F | 5 == 5 evaluates to true

True

31
New cards

T / F | 5!>5 evaluates to true

False

32
New cards

T / F | 8>=8

True

33
New cards

T / F |

34
New cards

Statement used to make a decision

if statement

35
New cards

loop for fixed number of repetitions

for loop

36
New cards

pre test loop

while loop

37
New cards

post test loop

do while loop

38
New cards

means not

!

39
New cards

means equal

==

40
New cards

operator checks equality

==

41
New cards

operator checks in inequality

!=

42
New cards

used for repetitions

iterative

43
New cards

T / F |

44
New cards

T / F |

45
New cards

T / F | If x= 10 and y= 5, what is value of x > y

True

46
New cards

T / F | If x = 5 and y= 5, what is the value of x == y

True

47
New cards

T / F | If x = 12 and y = 6 what is the value of x<y

False

48
New cards

T / F |

49
New cards

If N= 15, what is the value of n%4

3

50
New cards

If n= 17, whaT is the value of n/5 using integer decision

3

51
New cards

If x =. 5 and y= 20, what is the value of x > y&& y > 10?

False

52
New cards

If x = 5 and y = 20, what is the value if x || y

true