• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/17

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

17 Cards in this Set

  • Front
  • Back
  • 3rd side (hint)
List the arithmetic operators
+ -- addition
- -- subtraction
/ -- division
* -- multiplication
% -- modulo
There are 5.
Name the boolean operators.
& -- bitwise AND
| -- bitwise OR
^ -- bitwise OR
! -- negation
~ -- bitwise complement
&& -- logical AND
|| -- logical OR
true -- boolean constant
false -- boolean constant
There are 9.
What is the string concatenation operator?
+
What are the increment and decrement operators?
++ and --
What are the shift operators and what do they do?
>> shifts the argument one bit to the right.

<< shifts the argument one bit to the left.
What are the relational operators.
== -- equality
!= -- inequality
< -- less than
> -- greater than
<= -- less than or equal
>= -- greater than or equal
There are 6.
Name the assignment operators.
= -- assignment
+= -- addition assignment
-= -- subtraction assignment
*= -- multiplication assignment
/= -- subtraction assignment
%= -- modulo assignment
&= -- arithmetic "AND" assignment
|= -- arithmetic "OR" assignment
^= -- bitwise exclusive assignment
<<= -- shift left assignment
>>= -- shift right assignment
What is the member access operator?
.
There's only one and it's small.
Show the following:
index operator
cast operator
conditional operator
[]
()
?:
What operators are used to concatenate and remove delegates?
+ and - respectively.
There are two and they look familiar.
There is a small set of operators that are used to obtain type information. What are they?
is, typeof, sizeof
In C# you can control how an application responds to an overflow exception. What are the operators that effect this control?
checked -- overflow is checked. If overflow occurs then an exception is thrown.
unchecked -- overflow is not checked. If overflow occurs execution continues and the result is truncated.
My brain is about to overflow.
What are the indirection and address operators?
* -> [] &
There are four. Only one is unique.
What are the indirection and address operators?
* -> [] &
There are four. Only one is unique.
The conditional operator:

What is the result of the following snippet?
int x = 4, y = 5, z = 3;

int r = (x > y)? z : z != y ? z : y;

Console.WriteLine("The value of r is {0}.", r);
The value of r is 3.
Write an equivalent to the following assignment using a different assignment operator. What is the final value of r?

int r = 5;
r = r % 2;
r %= 2;

The value of r is 1.
Which operators can be overloaded, in general? Which cannot?
The unary arithmetic, binary arithmetic and comparison operators can be overloaded.
The logical operators, the indexing operator, the cast operator, the assignment operators and, in particular, "=, ., ?:, ->, new, is, typeof, sizeof" operators cannot be overloaded.
Compared to arithmetic operators the number that cannot be overloaded is larger.