OLQ 4 practice

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

1/18

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:35 PM on 9/9/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

19 Terms

1
New cards

logical-not

!

2
New cards

logical-and

&&

3
New cards

logical-or

||

4
New cards

Logical-not (!) has higher precedence than the ____ which

has higher precedence than the _____.

logical-and(&), logical-or(||)

5
New cards

“Short Circuit Logic”

C only evaluates as much as necessary to determine the truth value.

6
New cards

&&The second operand will only be evaluated when the first operator is ____.

nonzero

7
New cards

|| If the first operand is nonzero, then the second operand is ______.

not evaluated.

8
New cards

~expression

replaces all the 0 bits by 1 and all of the 1 bits by 0

9
New cards

Bitwise AND (&)

both must be the same.

10
New cards

Bitwise OR (|)

at least one must be 1 for it to print 1, if same print the number

11
New cards

XOR ^

Only TRUE if one or the other is true but not both. One or the other but not both.

12
New cards

«

shift to the left, can multiply

13
New cards

»

shift to the right, can divide

14
New cards

01011100 & 00110011?

??

15
New cards

how to use a bit mask to determine if the 2^0 bit is on/off?

Use a bit mask of 2^0 which is the value 1

16
New cards

binary representation of even numbers has an LSB/rightmost bit of

0

17
New cards

binary representation of odd numbers has an LSB/rightmost bit of

1

18
New cards

<>

standard library files. The compiler looks in special system folders for them.

19
New cards

mean your own files. The compiler looks in the current folder first.

“ “