Cse

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

1/39

flashcard set

Earn XP

Description and Tags

Que 4

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

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