Cse

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

1/39

flashcard set

Earn XP

Description and Tags

Que 4

Last updated 6:31 AM on 9/15/23
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

40 Terms

1
New cards

Relational operators allow you to ____Numbers

Compare

2
New cards

All relational operators are binary

True

3
New cards

Th_____ statement causes other programs statements to execute only under certain

If

4
New cards

To check if a variable has a particular value is the = relational operator, as in the statement if(s=3) count« “s has the vale 3”;

False

5
New cards

A pair of characters or a pair of string objects can be compared with any of the relational

True

6
New cards

In C + +1 relational expression is false it has the value

0

7
New cards

A(n)____is a variable usually a book, that signals a condition exists

Flag

8
New cards

The____statement executes one block of statements if a test condition is true and another block of condition false

If/else

9
New cards

A trailing else places at end of if/else if statement provides a default action when____ of the if conditions is/ are true

None

10
New cards

When is statmentbis placed within the conditionally executed code of another if statement this is known as

Nested if

11
New cards

The rule of matching an else with an if is that an else goes with the last if statement before it that doesn’t have its own else

True

12
New cards

The c++____operator represents logical AND

&&

13
New cards

If the sub expression on the left side oven || operator is true, then right expression not checked

True

14
New cards

Logical operators and and or have higher precedence that not operator

False

15
New cards

The ___ operator takes an operant and reversers it’s truth or falsehod

!=

16
New cards

The following test checks if variable child is in range of 3 to 12

If(child >=3 | | child<= 12)

False

17
New cards

Assuming gooddata is Boolean variable the following two tests are logical equivalent

If (good date==false)

If (!goodData)

True

18
New cards

Pass = (score >=7) ? Does same as

If (score >= 7)

Pass= true

Else

Pass= false

True

19
New cards

If switch statements has no ____ statement the program falls through all statement below one with matching case expression

Break

20
New cards

What declares an enumerates data type named student

Emil student { bill, Tom, Mary};

21
New cards

The expression x< y is a ____ expression

Relational

22
New cards

Operator to test equality

==

23
New cards

Relational expressions and logical expressions are both Boolean which means they evaluate to true or false

True

24
New cards

Relational operators connect two or more relational expressions into one or reverse the logic

False

25
New cards

What statement executes one statement or block of statements of condition is true and skips if if false

If

26
New cards

Acts like chain of if statements

If/ else If

27
New cards

Expression statement that evaluates to 5,-5 or anything other that 0 is considered true

True

28
New cards

Follow statements will not print anything

X=5

If (x<5)

Hey out hello world

False

29
New cards

Flag is variable of satay type

Bool

30
New cards

Let’s user know of invalid menu chooce

Input validation

31
New cards

S1==s2 when

None each case one or more

32
New cards

Logical or

| |

33
New cards

Checks child is 3-13

If (child>= 3 && <= 12)

False

34
New cards

If sub expression on left side of. && operator is true then the. That on right will not be checked

False

35
New cards

!(6>7 | | 3==4)

True

36
New cards

Equivalent?

If(moredate ==true)

If (moredata)

True

37
New cards

Switch statement branches to particular block of code depending on value if numeric

False

38
New cards

D we quit section of switch statement performs a similar task as

Else if

39
New cards

Scope of variable is program it is defined in

False

40
New cards

C= 17 and answer = 20

Answer = x> 100? 0:1

Assign 1 to answer

Explore top notes

note
Full Approaches Notes
Updated 315d ago
0.0(0)
note
Chapter 3: Proteins
Updated 996d ago
0.0(0)
note
The Unfinished Melody
Updated 160d ago
0.0(0)
note
Rhetorical Techniques
Updated 145d ago
0.0(0)
note
Ch 14 - Money and Banking
Updated 1086d ago
0.0(0)
note
Full Approaches Notes
Updated 315d ago
0.0(0)
note
Chapter 3: Proteins
Updated 996d ago
0.0(0)
note
The Unfinished Melody
Updated 160d ago
0.0(0)
note
Rhetorical Techniques
Updated 145d ago
0.0(0)
note
Ch 14 - Money and Banking
Updated 1086d ago
0.0(0)

Explore top flashcards

flashcards
Spanish 1: 8a vocab
30
Updated 719d ago
0.0(0)
flashcards
Level C Unit 1 Definitions
20
Updated 228d ago
0.0(0)
flashcards
APUSH MIDTERM
38
Updated 841d ago
0.0(0)
flashcards
Uro- Penile Disorders
43
Updated 363d ago
0.0(0)
flashcards
Health - Ch 3 Test
36
Updated 775d ago
0.0(0)
flashcards
Management Test 1
75
Updated 782d ago
0.0(0)
flashcards
1A Appearance Vocab
44
Updated 1065d ago
0.0(0)
flashcards
Spanish 1: 8a vocab
30
Updated 719d ago
0.0(0)
flashcards
Level C Unit 1 Definitions
20
Updated 228d ago
0.0(0)
flashcards
APUSH MIDTERM
38
Updated 841d ago
0.0(0)
flashcards
Uro- Penile Disorders
43
Updated 363d ago
0.0(0)
flashcards
Health - Ch 3 Test
36
Updated 775d ago
0.0(0)
flashcards
Management Test 1
75
Updated 782d ago
0.0(0)
flashcards
1A Appearance Vocab
44
Updated 1065d ago
0.0(0)