Computer Flashcards

1
Q

Computer 9 (Text)

A

print(“Computer 9”);

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

5 (Value)

A

print(5);

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

5 (Text)

A

print(“5”);

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

Escape sequence; Newline

A

“\n”

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

Computer 9 (A new line after)

A

print(“Computer 9 \n”);

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

The three data types

A

Text, integer, float

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

thing (variable, text data type)

A

thing = “ “

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

thing (variable, integer or float data type)

A

thing = 0

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

Show “name (variable, text data type)” = “input” (Use the words: INPUT YOUR NAME: )

A

name = input(“INPUT YOUR NAME: “);

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

Show “num (variable, integer data type)” = “input” (Use the words: INPUT NUMBER: )

A

num = int(input(“INPUT NUMBER: “));

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

Show “num (variable, float data type)” = “input” (Use the words: INPUT NUMBER: )

A

num = float(input(“INPUT NUMBER: “));

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

Addition

A

+

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

Subtraction

A

-

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

Multiplication

A

*

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

Division

A

/

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

Modulus

17
Q

Equal

18
Q

Not Equal

19
Q

Greater than

20
Q

Less than

21
Q

Greater than or
equal to

22
Q

Less than or equal to

23
Q

Returns True if both statements are true

24
Q

Returns True if one of the statements is true

25
Reverse the result, returns False if the result is true
not
26
not (symbol)
!
27
or
II
28
//statement is executed if the condition is TRUE
if():
29
//statement is executed if the condition is TRUE (and there is already another "if()")
elif():
30
//statement is executed if all the conditions are FALSE
else:
31
Expressions that evaluate a condition and result in true or false
Boolean expression