1,2,3 partials Flashcards

1
Q

What is Boolean

A

Type of data that uses true or false

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

bool()

A

Boolean

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

Integer

A

It’s used for whole numbers, not decimals

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

int()

A

Integer

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

String

A

Used for text

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

Str(“”)

A

String

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

Float

A

Numbers with decimal

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

float()

A

Float

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

+?

A

Plus

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

-?

A

Substraction

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

/

A

Division

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

%

A

Reside of a division

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

*

A

Multiplication

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

**

A

Rise to the power

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

3 Examples of output

A

Monitors, printers, speakers, headphones, projectors, GPS devices

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

3 examples of input

A

Keyboard, optical pen, joystick, scanner, bar code reader

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

Example of both input and output

A

Digital camera, DVD, Fax, modem

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

what is if?

A

the action to be excecuted if conditions are met

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

what is elif?

A

another action to be excecuted if conditions are met

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

What is else?

A

The action to be excecuted only if none conditions are met

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

What does this mean? ==

A

Equal

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

What does this mean? >=

A

Bigger or equal to

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

What does this mean? <=

A

Smaller or equal to

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

What does this mean? !=

A

Not equal to

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

What does this mean? >

A

Smaller than

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

What does this mean? >=

A

Bigger than

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

What does this mean? .lower()=

A

That it changes letter to lowercase

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

What does this mean? .upper()=

A

It changes letters to uppercase

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

What is loops used for?

A

To interact over a sequence

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

What is the output of the following operation ?
x = 3
y = 4-2

(x!=y) or (6//4 2)>=(9%2) and (y2) <=(x/.2)

(y+1)==(8-3) or (x%3)>=(1+1) and (y) <=(x/5)

A

X

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

A monitor is an example of:

A

Hardware

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

Canvas and Excel are exmples of?

A

Softwares

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

Is a procesor a storage device?

A

No

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

Witch type of data is the following:

“I got 20 dollars in my pocket”

A

String

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

Witch type of data is the following:

A01207805

A

Error

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

Witch type of data is the following:

13.28

A

Float

37
Q

Witch type of data is the following:

-34

A

Integer

38
Q

Witch type of data is the following:

false

A

Error

39
Q

Is this variable correct Final Result = 10?

A

No

40
Q

What are breaking large problems into smaller ones

A

Decomposition

41
Q

What is an algorithm?

A

A problem solving process composed of specific steps that can be followed for future similar problems

42
Q

What is a pattern?

A

Finding trends in data that are similar with the hope that a solution to one of the parts will lead to the solution of another part of the problem

43
Q

What is abstraction?

A

Hiding the less important details of a problem or challenge to find a general solution that can later be tailored for specific instances

44
Q

is this varibale correct? birth_date

A

Yes

45
Q

“address” is a valid variable name?

A

Nop

46
Q

finalGrade is a valid variable name

A

Yup

47
Q

What is the result of this? 5 + 3.5

A

8.5

48
Q

Write down the result of the operation, if the result is an error type an X

“3” + “6”

A

36

49
Q

Write down the result of the operation, if the result is an error type an X

“num” + 12

A

x

50
Q

Write down the result of the operation, if the result is an error type an X

8.2 + 2.8

A

11.0

51
Q

Write down the result of the operation, if the result is an error type an X

3 + 6

A

9

52
Q

By default this function ends with a

A

Newline

53
Q

This can be changed to any character using the parameter

A

end

54
Q

The platform we are using to program in Python is

A

repl.it

55
Q

What function displays what is in the parentheses to the console.

A

print()

56
Q

If it is an integer or real number, simply enter it; if it is a text, you must put it in single or double

A

Quotes

57
Q

Solve the following operation and write the numerical answer, if there’s an error write an X

num1=25
num1=num1-num1+3
num2=num1+num1
total=num1+num2
print(total)
A

9

58
Q

Solve the following operation and write the numerical answer, if there’s an error write an X

num1=17
num1=num1+2
num2=num1+5
total=num1+num2
print(total)
A

43

59
Q

Solve the following expression and write the answer, if there’s an error write an X

duck1="Daisy"
duck2="Donnald"
duck3="Family"
ducks=duck2+duck3+duck1
print(duck3)
A

Family

60
Q

What is the result of evaluating the following expression:

9 + 3 * 5 % 3 % 4 + 1

A

10

61
Q

What is the result of evaluating the following expression:

5 * 4 – 3 * (10 + 2**2)

A

-22

62
Q

What is the result of evaluating the following expression:

34 % 25 // 2

A

4

63
Q

What is the result of evaluating the following expression:

(7 * 8 // 5) % 4

A

2

64
Q

Convert the following algebraic expression to a valid expression using the arithmetic operators: a+bc+5a2+2b

A

(a + b)/c + 5 * a/2 + 2* b

65
Q

Convert the following algebraic expression to a valid expression using the arithmetic operators:

h+vt+12gt2

A

h + v * t + 1/2 * g * t ^2

66
Q

What is the result expressed in the console when executing the following program?

x="cat"
y="lion"
if x != y:
    print("grrr")
else:
    print("roar")
A

grr

67
Q
What is the result expressed in the console when executing the following program?
x=8
y=24
if (x > y):
    print(x - y)
else:
    if (x < y):
        print(y / x) 
    else:
        print(x + y)
A

3

68
Q

What is the result of evaluating the following expression:

19 // 2**3

A

2

69
Q

17 > 5 OR (13 - 2 > 8)

True or false

A

True

70
Q

Considering a = 10, b = 12, c = 13

a = c) AND (c < b) (True or false

A

False

71
Q

True or false? 4 + 4 +4 / 2 > 12 AND (4 + 4 + 4) / 2 <= 6

A

False

72
Q

What does the following code do?

num = 1
while num<10:
   if num % 2 == 0:
      print(num)
   num = num + 1
A

Displays on console the even numbers from 1 to 9

73
Q

What is displayed by the following code ?

a = 3
b = 5
while a != b:
   if b%2 == 0:
       a = a + 1
   else:
       b = b + 1
print(a)
A

6

74
Q

Whats the last value showed in the console?

num = 10
while num > 0:
. . . print(num)
. . . num = num - 2

A

2

75
Q

What’s the last value showed in the console?

num = 15
while num < 20:
. . . print(num)
. . . num = num + 3

A

18

76
Q

Why are loops important in programming?

A

Simplifies the code by eliminating duplicated code

77
Q

The while loop repeats while

A

the condition is true

78
Q

Solve the following operation, respect the hierarchy of operations.

(7 ^ 2 % 5) // 3

A

1

79
Q

What’s the value showed in the console?

x = 10 .// 4
y = 5 /. 2
print(x + y)

A

4.5

80
Q

Solve the following operation, respect the hierarchy of operations.

20 % 21 // (3 * 3)

A

2

81
Q

It refers to the mental process in which a person sets a problem and for its possible solution uses a sequence of instructions excecuted by a computer, a human or both

A

Logical Thinking

82
Q

When an algorithm is defined within the instructions you find verbs as:
Calculate, add, yes, then, repeat.
In what part of the algorithm are used?

A

Process

83
Q

What are the 3 types of data used in computational language

A

Numeric, Alphanumeric, & Boolean

84
Q
for a in range (2,8):
x= a*a
print (x)
print (a)
What's the value of x when a=4?
A

16

85
Q
x=6
c=1
while x >= 1:
 if x%3 ==0:
    c=c+1
x=x-1
print(c)
What's the output shown in the console for print(c)?
A

3

86
Q
What's the output shown in the console for print(v3)
v1="foo"
v2="bar"
v3=v1+v2
print(v3)
A

foobar

87
Q

What’s the output shown in the console for print(y)?
y=”20”+”20”
print(y)

A

“2020”

88
Q

What’s the output shown in the console for print(x,y2)?
x=2
y=”3”
print(x,y
2)

A

233

89
Q

What’s the output shown in the console for print (y+z2)
y= str (“examen”)
z= “fácil”
prin (y+z
2)

A

Examen Fácil