Lec-5 Flashcards

1
Q

What are the basic arithmetic operators in C?

A

Addition (+), Subtraction (-), Multiplication (*), Division (/), Remainder (%)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the assignment operators in C?

A

Standard assignment (=), Compound assignment (+=, -=, *=, /=, %=)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the increment/decrement operators in C?

A

Post-increment (c++), Pre-increment (++c), Post-decrement (c–), Pre-decrement (–c)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the equality operators in C?

A

Equal to (==), Not equal to (!=)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the relational operators in C?

A

Greater than (>), Less than (<), Greater than or equal to (>=), Less than or equal to (<=)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the logical operators in C?

A

Logical AND (&&), Logical OR (||), Logical NOT (!)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the supported bitwise operators in C?

A

Bitwise AND (&), Bitwise OR (|), Bitwise XOR (^), Bitwise NOT (~), Left shift («), Right shift (»)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the operator precedence hierarchy in C?

A
  1. Parentheses ( )
  2. Unary Postfix (++, –)
  3. Unary Prefix (+, -, !, ++, –)
  4. Arithmetic Operators (*, /, %)
  5. Arithmetic Operators (+, -)
  6. Relational Operators (>, <, >=, <=)
  7. Equality Operators (==, !=)
  8. Logical AND (&&)
  9. Logical OR (||)
  10. Assignment Operators (=, +=, -=, etc.)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is short-circuit evaluation in C?

A

Logical AND (&&): Stops evaluation if first condition is false
Logical OR (||): Stops evaluation if first condition is true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How is condition representation handled in C?

A

False is represented by zero (0), True is represented by any non-zero value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are practical applications of bitwise operators?

A

Cryptography, Computer graphics, Hash functions, Compression algorithms, Network protocols

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are some recommended exercises for learning C operators?

A
  1. Division and remainder calculation
  2. Sum and average of numbers
  3. Bitwise operator manipulation
  4. Complex logical condition construction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are some learning resources for C operators?

A

GeeksforGeeks: Assignment Operators, TutorialsPoint: Relational and Logical Operators, MIT OpenCourseWare: C Programming Fundamentals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the next steps in course progression after C operators?

A

Control Structures (Selection), Control Structures (Repetition), Built-in Functions, User-Defined Functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly