1,2,3 partials Flashcards

(89 cards)

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
What does this mean? >
Smaller than
26
What does this mean? >=
Bigger than
27
What does this mean? .lower()=
That it changes letter to lowercase
28
What does this mean? .upper()=
It changes letters to uppercase
29
What is loops used for?
To interact over a sequence
30
What is the output of the following operation ? x = 3 y = 4-2 (x!=y) or (6//4 *2)>=(9%2) and (y*2) <=(x/.2) (y+1)==(8-3) or (x%3)>=(1+1) and (y) <=(x/5)
X
31
A monitor is an example of:
Hardware
32
Canvas and Excel are exmples of?
Softwares
33
Is a procesor a storage device?
No
34
Witch type of data is the following: "I got 20 dollars in my pocket"
String
35
Witch type of data is the following: A01207805
Error
36
Witch type of data is the following: 13.28
Float
37
Witch type of data is the following: -34
Integer
38
Witch type of data is the following: false
Error
39
Is this variable correct Final Result = 10?
No
40
What are breaking large problems into smaller ones
Decomposition
41
What is an algorithm?
A problem solving process composed of specific steps that can be followed for future similar problems
42
What is a pattern?
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
What is abstraction?
Hiding the less important details of a problem or challenge to find a general solution that can later be tailored for specific instances
44
is this varibale correct? birth_date
Yes
45
"address" is a valid variable name?
Nop
46
finalGrade is a valid variable name
Yup
47
What is the result of this? 5 + 3.5
8.5
48
Write down the result of the operation, if the result is an error type an X "3" + "6"
36
49
Write down the result of the operation, if the result is an error type an X "num" + 12
x
50
Write down the result of the operation, if the result is an error type an X 8.2 + 2.8
11.0
51
Write down the result of the operation, if the result is an error type an X 3 + 6
9
52
By default this function ends with a
Newline
53
This can be changed to any character using the parameter
end
54
The platform we are using to program in Python is
repl.it
55
What function displays what is in the parentheses to the console.
print()
56
If it is an integer or real number, simply enter it; if it is a text, you must put it in single or double
Quotes
57
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) ```
9
58
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) ```
43
59
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) ```
Family
60
What is the result of evaluating the following expression: 9 + 3 * 5 % 3 % 4 + 1
10
61
What is the result of evaluating the following expression: 5 * 4 – 3 * (10 + 2**2)
-22
62
What is the result of evaluating the following expression: 34 % 25 // 2
4
63
What is the result of evaluating the following expression: (7 * 8 // 5) % 4
2
64
Convert the following algebraic expression to a valid expression using the arithmetic operators: a+bc+5a2+2b
(a + b)/c + 5 * a/2 + 2* b
65
Convert the following algebraic expression to a valid expression using the arithmetic operators: h+vt+12gt2
h + v * t + 1/2 * g * t ^2
66
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") ```
grr
67
``` 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) ```
3
68
What is the result of evaluating the following expression: 19 // 2**3
2
69
17 > 5 OR (13 - 2 > 8) | True or false
True
70
Considering a = 10, b = 12, c = 13 | a = c) AND (c < b) (True or false
False
71
True or false? 4 + 4 +4 / 2 > 12 AND (4 + 4 + 4) / 2 <= 6
False
72
What does the following code do? ``` num = 1 while num<10: if num % 2 == 0: print(num) num = num + 1 ```
Displays on console the even numbers from 1 to 9
73
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) ```
6
74
Whats the last value showed in the console? num = 10 while num > 0: . . . print(num) . . . num = num - 2
2
75
What's the last value showed in the console? num = 15 while num < 20: . . . print(num) . . . num = num + 3
18
76
Why are loops important in programming?
Simplifies the code by eliminating duplicated code
77
The while loop repeats while
the condition is true
78
Solve the following operation, respect the hierarchy of operations. (7 ^ 2 % 5) // 3
1
79
What's the value showed in the console? x = 10 .// 4 y = 5 /. 2 print(x + y)
4.5
80
Solve the following operation, respect the hierarchy of operations. 20 % 21 // (3 * 3)
2
81
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
Logical Thinking
82
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?
Process
83
What are the 3 types of data used in computational language
Numeric, Alphanumeric, & Boolean
84
``` for a in range (2,8): x= a*a print (x) print (a) What's the value of x when a=4? ```
16
85
``` 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)? ```
3
86
``` What's the output shown in the console for print(v3) v1="foo" v2="bar" v3=v1+v2 print(v3) ```
foobar
87
What's the output shown in the console for print(y)? y="20"+"20" print(y)
"2020"
88
What's the output shown in the console for print(x,y*2)? x=2 y="3" print(x,y*2)
233
89
What's the output shown in the console for print (y+z*2) y= str ("examen") z= "fácil" prin (y+z*2)
Examen Fácil