Exam 1: Code Flashcards
(38 cards)
0
Q
Addition
A
+
1
Q
Assignment
A
=
2
Q
Subtraction
A
-
3
Q
Multiplication
A
*
4
Q
Integer Division
A
Integer / Integer
5
Q
Exact Division
A
.0 / #.0
6
Q
Remainder Division
A
%
7
Q
One Line Comment
A
//
8
Q
Multiple Line Comment
A
Start /*
End */
9
Q
Ends a Statement
A
;
10
Q
Output
A
Cout«
11
Q
Input
A
Cin»
12
Q
New Line
A
\n
13
Q
More than
A
>
14
Q
Less than
A
<
15
Q
More than or equal to
A
> =
16
Q
Less than or equal to
A
<=
17
Q
Comparison for equal
A
==
18
Q
Comparison for not equal
A
!=
19
Q
And
A
&&
20
Q
Or
A
||
21
Q
Not
A
!
22
Q
Integer declaration, least memory
A
Short
23
Q
Integer declaration, medium memory
A
Int
24
Integer declaration, medium memory, always positive
Unsigned int
25
Integer declaration, most memory
Long
26
Floating Point declaration, least memory
Float
27
Floating Point declaration, medium memory
Double
28
Floating Point declaration, most memory
Long double
29
Character declaration
Char
30
Basic decision
If (test)
| Statement;
31
If/else decision
If ( )
Statement;
Else
Statement;
32
Basic loop
While ( )
| Statement;
33
Force output
Flush
34
Force output & go to a new line
Endl
35
Input/output stream
```
#include
Using namespace std;
```
36
General Form
Int
Main( )
{
}
37
Order of Operations
1. ( )
2. !
3. * / %
4. + -
5. > >= < <=
6. == !=
7. &&
8. ||
9. =