Exam 1: Code Flashcards

(38 cards)

0
Q

Addition

A

+

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

Assignment

A

=

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

Subtraction

A

-

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

Multiplication

A

*

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

Integer Division

A

Integer / Integer

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

Exact Division

A

.0 / #.0

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

Remainder Division

A

%

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

One Line Comment

A

//

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

Multiple Line Comment

A

Start /*

End */

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

Ends a Statement

A

;

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

Output

A

Cout«

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

Input

A

Cin»

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

New Line

A

\n

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

More than

A

>

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

Less than

A

<

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

More than or equal to

16
Q

Less than or equal to

17
Q

Comparison for equal

18
Q

Comparison for not equal

22
Q

Integer declaration, least memory

23
Q

Integer declaration, medium memory

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. =