WEEK 1 Flashcards

1
Q

IT IS USE TO COMPARE TWO VALUES

A

RELATIONAL OPERATORS

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

GIVE 6 KINDS OF RELATIONAL OPERATORS

A

> , >=, <, <=, ==, !=

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

IT MODIFIES THE CURRENT VALUE OF A VARIABLE BY PERFORMING AN OPERATION ON IT

A

COMPOUND ASSIGNMENT

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

GIVE ATLEAST 5 OPERATORS OF COMPOUND ASSIGNMENT

A

+=, -=, *=, /=, %=, «=, &=, ^=, |=,&raquo_space;=

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

When you use a relational operator, the result of the comparison is either _______ or ______.

A

TRUE OR FALSE

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

They are equivalent to assigning the result of an operation to the first operand

A

COMPOUND ASSIGNMENT

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

These operators are commonly used in conditional statements like if, while, and for loops to control the flow of the program.

A

RELATIONAL OPERATORS

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

What does “op1 != op2” means?

A

op1 and op2 are not equal

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

What does “op1 >= op2” means?

A

op1 is greater than or equal than op2

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

What does “op1 > op2” means?

A

op1 is greater than op2

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

What does “op1 < op2” means?

A

op1 is less than op2

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

x = 5
y = 10

“x += y” ?

A

15

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

x = 5
y = 10
“x -= y” ?

A

-5

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