ALGORITHM EXAM
1.- Set of actions to be carried out in an orderly manner to achieve a desired goal?
Problem
Pseudocode
Algorithm
logical NO
2.- Technique for graphically representing an algorithm?
Control structures
Flowchart
Pseudocode
Narrative text
3.- Are sequential, selection, and repetition?
Relational operators
Logical operators
Selection structures
Control structures
4.- Integers, reals, characters, strings, and logicals?
Data types
Relational operators
Repetition structures
Relationship structures
5.- Addition, subtraction, multiplication, division, remainder, and exponentiation?
Relational operators
Arithmetic operators
Control structure
Problem
7.- The following symbol corresponds to the event Rectangle
Start
End
Process
Result
6.- Francisco López has created the following algorithm for the sum of two numbers: 1.-
Obtain the two numbers to add.
Based on the example, identify the characteristics that every algorithm must have.
Precise, indefinite, and infinite
Precise, defined, and finite
Imprecise, undefined and infinite
Precise, defined, and infinite
7.- Luis has been assigned to organize the following algorithm. What is the correct order?
From the sequence of steps given to you below? 1. listen to the music, 2. Adjust the
volume, 3. Insert the audio CD into the drive, 4. Press the Eject button to open the
CD unit. 5. Wait for the CD unit to detect the CD and start playback, 6.
Press the Eject button to close the CD drive. 7. Turn on the music player.
7,4,3,6,5,2,1
1,2,3,4,5,6,7
7,4,3,2,6,5,1
7,4,3,5,6,1,2
8.- What structure did Luis use to order the algorithm from the previous question?
Sequential
Conditional
Cyclical
Selection
9. Lastly, it is necessary for Luis to recognize the stage of the methodology for the
problem-solving in which the algorithm is located
Identification of the problem
Choice of an alternative
Development of solution
Proposing alternative solutions
10.- It consists of understanding what the problem being raised is, the data or the
information available (input)
obtain (output)
Proposing alternative solutions
Identification of the problem
Development of the solution
Evaluation of the solution
11.- Adriana's task is to develop an algorithm that allows her to determine if a
The worker performed overtime within an OXXO, the normal shift is 40 hours a week.
week. Help him propose the alternative that solves this problem:
If the hours exceed 40, it prints overtime.
If the hours are less than 40, extra hours are printed.
If the hours are equal to 40, it prints overtime
If the hours are greater than 50, extra hours are printed.
12. Alfredo needs help to evaluate the algorithm he does not understand, which
it consists of calculating the area of a rectangle whose formula is A = side X Height, choose the
option that has the correct result considering that the height is 9 and the side is
3.1). Inicio, 2). Leer lado, altura, 3). A= Lado*Altura 4). Imprimir A, 5) Salir
37
12
13
27
13. In 'Doña Mago's' store there is a special offer that consists of buying 2
Sodas for the amount of $19.50. How many sodas can we buy with $78.00?
Kinberly is interested in the special, so she made her calculations in the notebook to find out
How many sodas can you buy with $78.00 pesos?
Alternative 1, 78/19.50 = 4 4*2= 8
Alternative 2. 19.50/2 = 9.75, 78/9.75 = 8
Alternative 3. 19.5 = 2 + 19.5 = 2 + 19.5 = 2, + 19.5 = 2 Total = 8 sodas
Alternative 4. 19.5*8 = 156, 156/2 = 8
14.- The computer science II teacher has asked his students to develop the algorithm
to obtain the area of a pentagon, considering that the formula is: a=
(perimeter X apothem)/21) Enter perimeter. 2) Show data 3) Multiply (perimeter by
apothem)/2 4) Introduce apothem
4,3,1,2
1,2,4,3
1,4,3,2
1,2,3,4
15. Create the correct flowchart to calculate the area of a triangle