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

A

%

17
Q

Equal

A

==

18
Q

Not Equal

A

!=

19
Q

Greater than

A

>

20
Q

Less than

A

<

21
Q

Greater than or
equal to

A

> =

22
Q

Less than or equal to

A

<=

23
Q

Returns True if both statements are true

A

and

24
Q

Returns True if one of the statements is true

A

or

25
Q

Reverse the result, returns False if the result
is true

A

not

26
Q

not (symbol)

A

!

27
Q

or

A

II

28
Q

//statement is executed if the condition is TRUE

A

if():

29
Q

//statement is executed if the condition is TRUE (and there is already another “if()”)

A

elif():

30
Q

//statement is executed if all the conditions are FALSE

A

else:

31
Q

Expressions that evaluate a condition and result in true or false

A

Boolean expression