Programming Logic Compilation
Programming Logic Compilation
Question
Expressions are made up of constants, variables, parentheses, and function calls.
operators. Assignment statements include target variables, operators, assignment and
expressions. The semantics of an expression is largely determined by the order of
evaluation of the operators in these expressions.
Source: SEBESTA, Robert W. Concepts of Programming Languages. 11th Edition. Porto Alegre:
Bookman, 2018, p. 322.
Considering this information and the studied content regarding algorithms, variables,
operators and constants, it is possible to affirm that a variable:
Response: It is the place where values are archived and become recognized through a unique
name.
Question
In order for a program to perform tasks according to a condition that
It has found during processing, there are decision structures present.
even in the Assembly programming language, with some limitations.
Source: ALVES, Willian Pereira. Computer Programming: Educational Teaching. 1st edition. São
Paulo: Érica, 2010. p. 63.
Based on this information and the content studied regarding the structure: IF/THEN/CASE
ON THE CONTRARY, it can be concluded that this structure is characterized by:
Correct answer: to present a clause that allows the execution of another instruction or
instructional block if an analysis is not considered true.
Question
Learning programming is not a simple task. It requires a perfect understanding of
problem to be solved, the analysis of how to solve it and the choice of how to do so
implementation of solution. Abstraction, organization, analysis, and criticism are fundamental.
Source: EDELWEISS Nina; LIVI, Maria Aparecida Castro. Algorithms and programming: with examples
in Pascal and C. São Paulo: Bookman, 2014.
The presented excerpt deals with the essential foundations of programming. Considering these
information and the content studied regarding the initial concepts about algorithms, can-
it is stated that the set of norms that prevents the introduction of a poorly drafted code and
without a more systematic control is defined as:
Question
Before learning to build correct algorithms, one must learn to verify if a
The given algorithm is correct. The verification of an algorithm is an activity similar to a proof.
of a theorem. Verification depends on the precise statement of what the algorithm is supposed to do.
Source: FEOFILLOF, Paulo. Algorithms: In C Language. Rio de Janeiro: Elsevier Brazil, 2013. p. 4.
The presented excerpt deals with the necessary care in selecting algorithms. Thus,
considering the information presented and the content studied regarding the concepts
initials about the algorithms, we can affirm that the procedures to develop a
Visa algorithm, among other aspects:
Question
All standard Boolean expressions can be easily converted into the format of a
truth table using binary values for each term in the expression. The truth table is a
common way of presenting, in a concise format, the logical operation of a circuit.
Source: FLOYD, Thomas L. Digital Systems: Fundamentals and Applications. 9th edition São Paulo:
Bookman, 2007. p. 222.
The presented section addresses one of the uses of the truth table. Thus, considering the
studied contents, analyze the following statements about the use of connectors and tables-
truth
I. The logical value related to a compound expression depends on the values related to
each individual sentence of which it is formed and the connectors used.
II. The truth table serves to define a programming language originating from
combination of several propositions.
III. The connectors and, or, not are used in computer programming and
define a combination between them.
IV. It is possible to insert circuit breakers, which are components used to establish the
simple sentences.
I and III
Question
Operators can be classified according to the number of operands as unary, binary
the ternary operators. Unary operators require one operand, binary operators require two, and ternary operators require three.
Three. There can be operators that perform operations with four, five, or more operands.
1) Arithmetic Operators.
2) Comparison Operators.
3) Logical Operators.
4) Bit Manipulation Operators.
They are used in the development of expressions that typically result in a value.
true or false.
They are similar to relational operators because they allow two values, two variables or
even a variable with a value establishes a relationship.
2,4,3,1
Question
Talking about programming logic means only contextualizing logic in programming
computers, looking for the best sequence of actions to solve a given problem.
In computer programming, the name for a sequence of actions is an algorithm, which is,
a very simple way, the sequence of steps or actions to achieve a goal.
Source: XAVIER, Gley Fabiano Cardoso. Programming Logic. São Paulo: SENAC, 2018. p. 3.
Question
Decision structures are used in situations where a decision needs to be made.
regarding a certain result that will be obtained in two different situations. In this case, the
The initial keyword of a structure is if. There are three types of decision structures: with a
alternative, with two alternatives, and with chained alternatives.
Based on this information and the content studied about algorithms and decision structures
it is possible to notice that algorithms, when presented in a sequential structure, indicate that:
Response: the instructions were carried out in a linear manner, following a sequence
established.
Question
Data structures and algorithms represent the foundation from which technology derives.
software is developed. The use of efficient algorithms depends heavily on the use of
appropriate data structures. When these two elements are combined
adequately, we have a 'piece' of software of value.
Source: LOPES, Arthur Vargas. Data structures for the construction of software. Canoas:
Ulbra Publishing House, 1999.
The presented excerpt deals with the relationship between the use of data structures and the use of algorithms.
Considering this information and the content studied about data types, analyze the types.
of data arranged below and associate them with their respective characteristics:
Integer.
Real.
3) Character.
Logical.
It basically stores values of the type True and False (T, F).
2,3,1,4
Question
The if-then and if-then-else structures imply the selection of one of two
alternatives. It is also possible to use the if statement to design selection structures that
It can contain two more alternatives. For example, a structure if_then can contain another.
if-then structure.
Based on this information and the content studied about Nested IF/THEN Structure, it is
it is correct to state that, in the programming of the structure:
Question
In programming logic, the occurrence of the need for decision making is constant,
like in everyday life. To make a decision in programming logic, one should use the
decision structure or conditional structure. The decision structure allows for the choice of a
group of actions to be executed.
Source: De OLIVEIRA, Henrique Pontes Gonçalves. Systems analysis. Senac Publishing: São
Paulo, 2019. p. 3.
Question
The excerpt presented shows the characteristics of a decision structure. Based on these
information and the content studied about the Make Case structure, it is correct to state that this
the structure is responsible for:
Source: ALVES, Willian Pereira. Computer Programming: Didactic Teaching. 1st edition. São
Paulo: Érica, 2010. p. 63.
Based on this information and the content studied regarding the structure: IF/THEN/CASE
ON THE CONTRARY, it can be concluded that this structure is characterized by:
Response: present a clause that allows the execution of another instruction or block
instructive if an analysis is not considered true
Question
The assignment command allows us to assign a value to a certain variable, where the type of data
assigned to the variable compatible with the type declared for the variable. Thus, we must have
a corresponding representation at the algorithm level for the data output.
Source: SANTOS JÚNIOR, Carlos Isaias. Introduction to Programming Logic. Joinville: Club of
Authors, 2009. p. 39.
Considering this information and the studied content regarding the types of attribution, it is
it is possible to state that an assignment:
Answer: it is the definition of the value of the variable analyzed in a technical manner
Question
The IF/THEN structure is used in the evaluation of a logical expression and based on its
result, the code following the THEN clause may be executed or not. If the result of the
if true, the code is executed; otherwise, the program flow follows the
line right after the end of the structure.
Source: ALVES, Willian Pereira. Computer Programming: Didactic Teaching. 1st edition. São
Paulo: Érica. 2010, p. 63.
Considering the information presented and the content studied, it is possible to affirm that the
block must be limited by means of:
Source: ALVES, Willian Pereira. Computer Programming: Didactic Teaching. 1st edition. São
Paulo: Erica, 2010. p. 16
The presented excerpt highlights one of the advantages of using logic in computing. Based on this
based on the information and the content studied about the use of logic, it can be stated that computing:
Answer: uses mathematical methods to define factors with a higher level of precision.
Question
Conditional structures allow the algorithm to make decisions based on a
logical test. The result of the rest can be true or it can be false. So, according to
this result the algorithm will execute one or another programmed action.
De Mello, Daniel Teodoro. Programming Logic with Visual G. Authors Club. 2009.
p. 37.
Based on this information and the content studied about the IF/THEN structure, one can
to assert that, if the result found in the expression is true:
Question
An algorithm is a sequence of instructions arranged logically for solving
a certain task or problem. In other words, it represents a script, a recipe
of speech, used to represent a procedure that can be expressed by a set
of step.
Source: TEIXEIRA, César. Construction of Algorithms in the 21st Century. Porto Alegre: Simplissimo
Livros Ltda, 2015. p. 3.
The cited excerpt presents the concept of algorithm and its functionalities. Considering these
information and the content studied regarding the initial concepts about algorithms, analysis
Read the following statements and mark V for the true ones and F for the false ones:
I. ( ) The Simple Decision Structure presents a planned action in the case of observing a
opposite condition.
II. ( ) The Composite Decision Structure is responsible for testing a condition and for executing
an action in the case of it being true.
III. ( ) The Multiple Decision needs a more robust structure than the Composite Decision,
which is limited to analyzing only two conditions.
IV. ( ) The repetition structure with a test analyzes, among other aspects, a condition before
execute the actions that repeat and are foreseen.
FFVV
Question
Decision structures or conditionals are widely used in programming, through
of this type of structure, the program may deviate when there is a decision to be made.
socket, executed as a specific set of instructions.
Source: TAVARES, Nelson Sadala. Technical Handout C# Language Console Mode. Joinville: Club
by Authors, 2009. p. 22.
Considering the information presented and the content studied, it is possible to affirm that
in the coding of the IF/THEN structure:
Question
The pseudocode provides an intermediate step between the description of the algorithm in language
Portuguese and its implementation in a programming language. The steps of the algorithm
are specified using instructions similar to those used in language of
programming.
Source: ROSEN, Kenneth H. Discrete Mathematics and Its Applications. 6th edition. Porto Alegre: Dados
Electronics, 2010. p. 169.
The presented excerpt contains the functionalities of a pseudocode. Based on this information
From the studied content on algorithms, variables, operators, and constants, it is possible to define
what is pseudocode:
ASSESSMENT 2
Question
The character variables of VisualG are treated as an array of characters in the C language.
So, first the char type will be presented, so that it will be possible to understand what it is.
character vector. Char is a numeric type that allows the storage of values and that
represents a character from the ASCII table.
Source: SOFFNER, R. Algorithms and programming in C language. 1st ed. São Paulo: Saraiva, 2013.
p. 88. (Adapted).
Considering this information and the content studied about vectors in VisualG, one can
to state that the vector can also be referred to as:
Question
Individual elements are accessed by their position within the vector. The position is given by
called index, which generally uses a sequence of integers that are accessed
quickly and efficiently. The vector is thus a sequence of memory.
Source: SOFFNER, R. Algorithms and programming in C language. 1st ed. São Paulo: Saraiva, 2013,
p. 88.
Considering this information and the content studied about vectors, it is possible to state that,
when initializing a vector by adopting a certain value in its elements, it will be feasible:
I transmitted it as an argument.
Question
Assembly is a low-level programming language. But do you know what that means?
in practice? Each processor architecture, for example x86 or ARM, has a code of
different machine with different instructions. Of course, after the work of designing a new
architecture to be finished, there are no tools like compilers, for example, to
this architecture.
Source: FELIPE, L. Understand o
what é Assembly. 2019. Available at:
Unable to access the content from the provided URL. Access
Jan 7, 2020. (Adapted).
The presented excerpt deals with aspects related to Assembly language. Considering these
information and the content studied about repetition structures, it can be affirmed that the
Assembly language:
Question
The logical variables of VisualG are treated as integers in the C language. If the value of the variable
for zero, it represents FALSE; and if the value of the variable is different from zero, it represents
TRUE. Furthermore, the real variables in VisualG will be represented by double in
C language.
Source: PASCHOALINI, G. Principles of programming logic. São Paulo: SENAI, 2017, p. 60.
(Adapted).
Considering this information and the content studied about the repetition structure in
VisualG, it can be stated that a variable:
Question
A vector is actually a variable that groups a series of items under a single name.
values that show similarity in terms of the type they represent. The various elements
This vector is accessed by an index that determines the position of each of them.
Source: ALVES, W. P. Computer Programming Logic: Didactic Teaching. 1st ed. São Paulo:
Erica, 2010. P. 41.
The presented excerpt addresses some aspects related to the vector. Considering these
Based on the information and the content studied about vectors, it can be stated that a vector is defined
how:
Response: a structure that stores various data of the same model, in a way
individualized.
Question
Also, for the data structures used, representations are initially made with a
high level of abstraction. Subsequently, these structures are refined until they reach the
final representation that will be implemented. This allows to create the algorithm in terms of
relevant categories to the problem at a given moment, and not the peculiarities of
a certain language.
Source: BERG, A. Programming logic. 3rd ed. Canoas: Ulbra, 2006, p. 29.
The presented excerpt deals with the use of data structures. Considering this information and the
studied content on vectors, it can be said that the data structure deals with:
Question
[The structure for... step.. do] allows you to control the number of times the instructions should
be repeated. If the variable contains a value greater than the declared final value, it will be
executed the instruction, or set of instructions, just below the termination instruction of
repetition (end for)
Source: RITA, S. Training in Programming Logic. São Paulo: Digerati Brooks, 2009, p. 82.
Considering this information and the content studied about the repetition structure in
VisualG, it is possible to affirm that the term fimpara:
Response: points to the end of the sequence of commands that will be repeated
Question
VisualG is a program that allows you to create, edit, interpret, and also execute the
algorithms in structured Portuguese as if it were a normal computer program. The
software is used in schools and universities in Brazil and abroad.
Source: FERRAZ, T. Brazilian professor develops method and application that facilitate the
programming learning. Available at: [Link]
brazilian-develops-method-and-application-that-facilitates-programming-learning/
2017. Accessed on: January 7, 2020.
The excerpt presented highlights one of the applications of VisualG. Considering these
information and the content studied about the fundamentals of VisualG, it can be stated that a
the ways to execute an algorithm in VisualG are:
Question
The REPITA/ATÉ QUE structure differs somewhat from the FAÇA ENQUANTO structure due to the fact that
evaluate the expression at the end of the loop. Thus, the code will always be executed.
at least once. Another interesting feature is that it repeats the code while the
condition given is false, unlike DO WHILE, which repeats while the condition is true
true.
Source: ALVES, W. P. Computer programming logic: didactic teaching. 1st ed. São Paulo:
Érica, 2010. p. 56.
The presented excerpt discusses the differences between the repetition structures. Considering these
information and the content studied about the loop structures in VisualG, one can
to state that the repeat-until syntax is characterized by:
Response: evaluate your stop condition at the moment after executing your sequence
of commands.
Question
VisualG is a program that serves to test our logic in constructing algorithms.
through it we can simulate a programming environment testing algorithms that
they look very much like a program. This program is free and can be downloaded from the internet,
just search for the word VisualG in a search engine like Google or Yahoo to locate it
the program to download.
The presented excerpt highlights aspects of VisualG and the ways to obtain this program.
Considering this information and the content studied about the fundamentals of VisualG,
analyze the following statements regarding the screen columns of VisualG, and mark T for the(s)
true(s) and F for the false(s).
IV. ( ) The value analyzes the essential components that the variable contains.
F, F, T, T.
Question
The Visual Algorithm (VisualG) is a program that edits, interprets, and executes algorithms with
a language close to Portuguese structured like a normal program of
computer. In the current version of VisualG, except for the input and output routines, there is no
no embedded subprogram.
IV. The export menu in VisualG is an aspect that allows the insertion of an algorithm inside the
JAVA language.
I and III
Question
Repetitions, like decisions, are an integral part of our daily lives, as we are
at every moment repeating actions, even if unconsciously. The same happens in
computation, when a computer program or algorithm needs to repeat actions according to
with the needs of the problem worked on by the programmer.
Source: SOFFNER, R. Algorithms and programming in C language. 1st ed. São Paulo: Saraiva, 2013,
p. 63.
The presented excerpt deals with the concept of repetitions, which is also present in our
daily. Considering this information and the content studied about structures of
repetition, it can be stated that the loop with defined repetition (REPEAT FOR/DE TO) is
characterized by:
Question
The relationship between strings and vectors is, thus, direct. A string is an array of characters.
but not every character vector is a string. [...] We can now differentiate characters from
'A' is different from "A". 'A' is the single character, while "A" means the
simple character but \0 (NULL). Thus, single quotes indicate a character, but double quotes
indicate a string.
Source: SOFFNER, R. Algorithms and programming in C language. 1st ed. São Paulo: Saraiva, 2013,
p. 92-93.
The presented excerpt highlights the characteristics of the string. Considering this information and
Based on the studied content about vectors, it can be stated that strings are characterized by:
Question
When writing an algorithm, one can use functional structures that approach the
employed by the normal programming language. The do-while command, for example,
it is a loop structure that performs certain actions until a certain condition is no longer
but valid. The action is performed once and then the condition is checked.
Source: LIMA, C.; VILLAÇA, M. AVR and Arduino: design techniques. 2nd ed. Joinville: Club
Authors, 2012, p. 60. (Adapted).
The presented excerpt deals with the use of do-while in a loop structure.
Considering this information and the content studied about loop structures, one can
assert that the repetition with the test at the beginning of the do-while command:
Question
A vector is a structure that stores multiple data of the same type, unlike the
common variables, which can only store one value at a time. In programming, it is one of the
simpler structures. Individual elements are accessed by their position within the
vector.
Source: SOFFNER, R. Algorithms and programming in C language. 1st ed. São Paulo: Saraiva, 2013,
p. 88.
Considering this information and the content studied about vectors, it can be stated that the
elements of the vector are characterized by:
Question
Operators are symbols used to carry out operations and operators
mathematics are the symbols used to write mathematical calculations in the program.
In VisualG, you must type and execute a code to check each mathematical operator.
The presented excerpt refers to the importance of using mathematical operators and how
they are written in the VisualG program. Considering this information and the content
studied the fundamentals of VisualG, it can be stated that the VisualG program, in its
updated version, has the function:
Question
It can be said that vectors and matrices are static structures and, for this reason, we
we must define your number of positions. This means that some languages allow creating
dynamic vectors through the use of pointers.
Source: LAUREANO, M. Data Structures with Algorithms and C. Rio de Janeiro: Brasport. 2008.
p. 19. (Adapted).
Considering this information and the content studied about vectors, it can be stated that
At the moment a vector is declared:
The presented excerpt deals with the possibilities that indexed variables provide.
Considering this information and the content studied about vectors, it can be stated that the
indexed variables are responsible:
Response: for the filing of values of the same model and for the manipulation of
various similar values uni or multidimensional
Question
[Repetition structures] are of great importance for computational algorithms,
because they allow previous actions to be repeated whenever necessary. This is the
that confers great powers to a computer, making it capable of repeating countless
operations and actions quickly and efficiently.
Source: SOFFNER, R. Algorithms and programming in C language. 1st ed. São Paulo: Saraiva,
2013, p. 63.
Considering this information and the content studied about repetition structures, analyze
the available elements below and associate them with their respective characteristics.
1) Accountant.
Increment
Accumulator.
4) Stopping criterion.
( ) Is responsible for reducing or increasing the value assigned to the counter, aiming to achieve the
desired number of repetitions.
It is responsible for entering the data inputs for each iteration of repetition.
Indicates the condition to end a repetition when the value of repetitions performed is
unknown.
2,3,1,4
Question
There are basically three types of repetition structures: repetition structure with test
at the beginning, loop structure with a test at the end and implicit loop structure. This
last is used only for numeric loops with a predetermined number of repetitions.
fixed.
Question
The term 'XML resources' sometimes confuses new Android developers. XML resources
can represent resources in general defined in XML - such as layout files, styles,
arrays and things like that – or they can specifically be XML files.
Source: ABLESON, W. F. et al. Android in Action. 3rd ed. Rio de Janeiro: Elsevier, 2012. p. 142.
(Adapted).
Question
The memory areas associated with the local variables are allocated at the moment when the
The subprogram is triggered and is released at the end of its execution, when it ceases to exist.
All this process of creating and destroying local variables occurs again with each new
"call to the subprogram."
Source: EDELWEISS, N.: LIVI, M. A. C. Algorithms and programming: with examples in Pascal and C.
Bookman. 2014. p. 242.
The presented excerpt outlines the characteristics of local variables. Based on these
information and the studied content about functions, it can be stated that the advantage of using
the local variables is the fact that they:
Question
On the path that must be followed, the fundamental idea is to replace the given system with
another one that has the same solutions, but whose coefficient matrix is more similar
the identity matrix and, therefore, easier to solve.
Source: ROBBIANO, L. Linear algebra for everyone. [s.l.]: Springer, 2011. p. 53. (Adapted).
Considering this information and the content studied about the creation of an identity matrix
of third order, it can be stated that this matrix, among other aspects, is defined as
a matrix that:
it has a main diagonal formed by the number 1, and the others by the number 0,
completing the table. (CORRECT ANSWER)
Question
It is important to know that each module must have a well-defined and relatively simple function.
Modules must contain an entry point and an exit point. The scope of effect of a
The module must occur within your control scope.
Source: BERG, A. Programming Logic. 3rd ed. Canoas: Ulbra, 2006. p. 133.
The presented excerpt discusses the importance of functions within modularization. From these
information and the studied content about functions, we can understand that they are defined
like:
Question
The development of matrices dates back to the 19th century, although there are representations of numbers.
similar to modern matrices since the beginning of the Christian era, with mathematicians like Arthur
Cayley, Augustin-Louis Cauchy and William Rowan Hamilton.
The passage refers to the context of the history of the use of matrices. Considering this information
And the content studied regarding matrices can basically define them as:
Question
The description classifies the elements of a matrix. The Flash classifies the elements accordingly.
with the values of the ASC table. If you want to sort the elements of a matrix differently
"In this way, you should create a function to perform the classification."
Source: DA SILVA, J. E. F. Flash MX Professional 2004 Actionscript 2.0 Elsevier, 2004. p. 373.
Considering this information and the content studied about classification of elements,
Analyze the following statements and mark V for the true ones and F for the false ones:
I. ( ) In the process of sorting elements, some methods can be applied. The method
sequential, for example, allows for searching data in sequence, starting from the first
element until the last.
II. ( ) If the elements arranged in the matrix are not ordered, it is not possible to use the mode
sequential.
The binary method consists of splitting the list into two parts and searching for the desired data.
in each of them. Because of this process, this method is slower, but it is effective.
IV. ( ) In the binary method, if the total number of elements is odd, one must consider the
integer number, which causes one of the parts to have an extra element in the process
of division.
Now, select the alternative that presents the correct sequence:
T, F, F, T. (CORRECT ANSWER)
Question
The analysis of subsets of the elements of a matrix, which we will refer to as submatrices
(or blocks), can prove to be extremely useful when, namely, we want to highlight
some properties or simplify calculations.
DE LIMA, T. P. Lessons in linear algebra. Coimbra: Coimbra University Press, 2010. p. 53.
(Adapted).
Considering this information and the studied content regarding the classification of elements,
analyze the following items and associate them with their respective characteristics:
1) initial index.
final index.
3) test index.
4) sequential method.
At the beginning of the search, it will be positioned at the last element.
It will be at the beginning of the search next to the element closest to the central part of the vector.
( ) Method by which the sought information is located and presented to the researcher.
2, 3, 4, 1. (CORRECT ANSWER)
Question
The declaration of matrices is similar to the declaration of vectors: the basic difference is that one
matrix, having more than one statement, will have to be made explicit in the statement to indicate
the value ranges and each of its dimensions.
Question
As for initialization, what was stated about vectors also applies to matrices. If
the matrix is fully filled by reading, it does not need to be initialized, since all
previous values of the memory positions of the matrix are discarded when new values
they are placed.
Source: EDELWEISS, N.: LIVI, M. A. C. Algorithms and programming: with examples in Pascal and C.
Bookman. 2014. p. 198.
The presented excerpt deals with the aspects of matrices and vectors. Thus, considering these
information and the content studied on matrix initialization, analyze the statements
to follow.
II. In the process of initializing matrices, it is important to assign an initial and final value.
the same way it is done when it comes to vectors.
III. Even though they are more complex, two-dimensional matrices are more requested than the
three-dimensional matrices.
IV. To create a matrix, it is essential to inform some aspects that will guide the
shape of the algorithm, such as the number of rows, columns, and its name.
Question
When modularizing an algorithm, the goal is to increase the functionality of the parts of the set.
solution, separating logically. To modularize an algorithm, a syntax is needed.
to express this new structure understood by modules.
Source: BERG, A. Logic of programming. 3rd ed. Canoas: Ulbra, 2006. p. 132-133.
The presented excerpt deals with the functionalities of algorithm modularization. Based on these
information and the content studied about the advantages of using modularization, it is possible
define that it is executed through the:
Question
Variables hold values, but we can also understand that they hold states. Therefore,
in order to store the state, it would be necessary to create as many variables as the
objects to be represented. Remember that this number of variables can make the
drafting of the unfeasible algorithm.
MEDINA, M. Algorithm and programming: theory and practice. São Paulo: Novatec, 2006. p. 4.
(Adapted).
Considering the information presented and the content studied on the verification of
terms, it is possible to affirm that when we adopt an integer variable and perform its reading, it is
I need to insert:
Considering the information discussed in the text and the content studied about procedures,
It is possible to state that the topic is about:
Question
This technique promotes a hierarchical structure in the algorithms, so that the
algorithms come to be composed of a main module, which performs functions of
processing control, and secondary modules, responsible for processing of
auxiliary tasks for obtaining the final result.
The excerpt deals with modularization techniques. Based on this information and the content
studied about procedures, if the module is declared in its own block:
the commands that correspond to the activity for which it was developed will be informed
internally. (CORRECT ANSWER)
Question
When a subprogram is called, the flow and execution of the program or subprogram that it
called is interrupted, and the subprogram starts to be executed. Once the execution of the
subprogram, the interrupted execution flow is returned, and processing continues from
from the point immediately after the completed call.
Source: EDELWEISS, N.: LIVI, M. A. C. Algorithms and programming: with examples in Pascal and C.
Bookman. 2014. p. 238. (Adapted).
The presented excerpt discusses the importance of executing subprograms. Thus, considering
these information and the content studied about filling matrices with values via
keyboard, it can be stated that in the execution of an algorithm one must:
Question
Static allocation occurs at compile time, that is, at the moment when it is defined
a variable or structure is necessary to define its type and size. Dynamic allocation
occurs at runtime, that is, the variables and structures are declared without the
need to define its size, as no memory will be allocated when placing the
running program.
Source: LAUREANO, M. Data Structures with Algorithms and C. Rio de Janeiro: Brasport, 2008. p.
19.
From this information and the content studied about functions, it is possible to notice that the
local variables differ from global variables due to their:
restrictions and the fact that they are accessed within the subroutine. (CORRECT ANSWER)
Question
Right below the name of the algorithm are listed its input parameters (values that it
must receive in order to execute the required actions), the output parameters and the variables
locations necessary for execution. Each defined parameter and variable is associated with a type of
given.
Based on this information and the content studied regarding passing by parameter,
it can be concluded that the value parameter can:
Question
Formally, there are two types of routines: procedures and functions. Although it is
differentiate in some details, both the procedures and the functions aim to
carry out a task within a planned solution.
Considering the information covered in the text and the content studied about procedures,
it is possible to assert that the topic deals with:
Question
Each auxiliary module has its specific purpose and will be activated from the module
main or within the auxiliary module, when its action is necessary. In programming these
auxiliary modules are brought in by subprograms.
Based on this information and the content studied about modularization in VisualG, one can
to affirm that the execution and preparation procedures are identical and repetitive, which will result in
in the creation of a:
Question
Graphic computing will basically follow two main stages of realization: the
modeling and visualization in image simulation. Modeling implies, for example, in
construction of objects from geometric shapes.
Source: TEODORO, M. L. Teaching Arts at the University: founding text. 1st ed. Curitiba:
Learned, 2018.
The presented excerpt brings aspects to the use of computer graphics. Considering these
Information and the content studied about matrices applied in VisualG, it can be stated that
matrices are important for computer graphics because of their:
Question
Programming is not an easy task. That's why it is important to have a language for
simple, versatile, and efficient programming. Although programming languages are
built with these objectives, not all manage to fully display them
characteristics.
Source: JÚNIOR JANDL, Peter. Basic Course in C Language. São Paulo: Novatec Publisher. 2019. p.
5.
Considering this information and the content studied about the characteristics of a
language, it can be stated that, among the aspects related to language, the following stand out:
Question
JavaScript is a dynamic programming language commonly used.
in web browsers to control the behavior of web pages and interact with
users. It allows asynchronous communication and can update parts of a web page.
Source: DIMES, Troy. JavaScript: A Guide to Learning the JavaScript Programming Language.
New Jersey: Babelcube Inc, 2015, p. 2.
The presented excerpt deals with one of the types of programming languages used.
Considering this information and the content studied about programming language, it is
it is possible to assert that the difficulty in developing the programming language lies in
the fact of her adopting:
Question
Scrum has existed since the early 1990s, but it was only in the following decade that it became popular.
Scrum has taken the world by storm, overshadowing traditional methods and becoming the most common way to
work on software development projects.
Source: SABBAGH, Rafael. Scrum: Agile Management for Successful Projects. São Paulo: Casa Publishing
of Code, 2014. p. 277.
The presented excerpt discusses Scrum. Considering this information and the content studied
Regarding the Software Process, it can be stated that incremental development is:
a software process model that aims for the implementation of a system. (RESPONSE
CORRECT)
Question
The development of an algorithm requires the use of an unusual reasoning in relation to
reasoning used in problem-solving in other fields of knowledge. To solve a
a specific problem requires finding a sequence of instructions whose execution
it results in the solution of the question.
Source: DA SILVA, Rodrigo Luis de Souza; DE OLIVEIRA, Alessandreia Marta. Algorithms in C. Judge
From: Club of Authors, 2014. p. 12.
The presented passage discusses the characteristics for developing an algorithm. Considering
this information and the content studied about program development techniques,
analyze the following statements.
I. The source code and the routine influence the creation of the modules, which are carried out through the
main stage belonging to the program.
II. The source code is used for the input of a String, which contains a language of
programming and the routine, which is related to the systemic configurations.
III. Modular programming is the action of dividing a broader program into subprograms.
IV. The Bottom-Up technique starts with a specific routine for each function, one for
processing, another for output of the data, and so on.
Question
Currently, the concept of reuse is applied in order to involve not only algorithms but also
data structures. A reusable component from the 90s encompasses as much data as
processing in a single package allowing the software engineer.
Source: REZENDE, Denis Alcides. Software Engineering and Information Systems. 3rd Edition. Rio
Rio de Janeiro: Brasport, 2005. p. 29.
Considering this information and the content studied about the Software Process, one can
to assert that software engineering oriented to reuse:
reduces the number of software that are created and, consequently, limits the costs.
(CORRECT ANSWER)
Question
An object-oriented programming language can make use of a way of
polymorphism and another language not. In practice, variations in the use of this resource may occur.
There is great disagreement and discussion about what is or polymorphism in relation to existing forms.
Source: MANZANO, José Augusto N. G.; DE OLIVEIRA, Jayr Figueiredo. Logic algorithms for
computer programming development. São Paulo: Érica Publishing, 2016. p. 43
the act of modifying the internal functioning of a method inherited from a main code.
(CORRECT ANSWER)
Question
Procedural language enables the development of programs in a structured way,
allowing the construction of routines through procedures or functions modules that
they are interconnected, sometimes classified as imperative language.
Source: MANZANO, José Augusto N. G.; DE OLIVEIRA, Jayr Figueiredo. Logic algorithms for
computer programming development. São Paulo: Érica Publishing, 2016. p. 83.
Considering this information and the content studied about development techniques
of programs, analyze the following statements regarding object-oriented programming, and
mark V for the true ones and F for the false ones.
II. ( ) The identity is related to the pseudocode, which is made with value manipulations.
F, F, V, V. (CORRECT ANSWER)
Question
Python can be used in a wide range of areas of software development, from
which stand out: tools for administration and interfaces with operating systems;
applications that handle large volumes of data stored in systems
database managers.
Source: BANIN, Sérgio Luiz. Python 3: Concepts and applications–a didactic approach. São
Paulo: Érica, 2018. p. 12.
Considering this information and the content studied about coding style, one can
to affirm that the essentials of Python consist of:
Question
The solutions of a downstream project can be implemented easily in
high-level programming languages such as C/C++, Pascal or FORTRAN. These parts
independents are referred to as subprograms or subalgorithms when they are used based on
in the algorithmic concept.
The presented excerpt deals with the initial concepts of subprograms. Considering these
information and the content studied about the fundamental aspects of languages
programming, it can be said that subprograms are:
Question
The ultimate goal of developing a program or a system in general is to
communication with the computer to obtain the desired information. Any
program, starting from the simplest – like the calculation of the factorial of a positive integer.
The presented excerpt addresses the objective of the program's development. Considering these
information and the content studied about the characteristics of programming languages,
It can be said that the aspects of the engineering of a language are able to:
Question
The Python language was conceived between the end of 1989 and the beginning of the 1990s as a project
the people of Guido van Rossum, who continues to lead its development to this day,
with the collaboration of many developers around the world.
Source: BANIN, Sérgio Luiz. Python 3: Concepts and Applications – a didactic approach. São
Paulo: Érica, 2018. p. 12.
The presented excerpt discusses the history of the Python language. Considering this information
and the content studied about coding style, it can be affirmed that the Python language
is configured:
as an impure functional language. (CORRECT ANSWER)
Question
It is so difficult to use a first-generation language that even developers
they decided to create something better – second-generation languages like the Macro Assembler (MASM)
are relatively readable, must be assembled into executable code before using them and still
are specific to a certain processor.
Source: SIZEMORE, Jim; MUELLER, John Paul. MATLAB for Dummies. Rio de Janeiro: Alta Books,
2015. p. 14.
Considering this information and the content studied about language classes, one can-
It is asserted that one of the languages adopted in the second generation, to solve problems
computational is the:
Question
The basic principles of Structured Programming emerged in the late 1960s.
XX to improve programming techniques through a language that implemented
clear ideas on the subject, since the languages used until then did not offer
conditions.
development techniques should be expanded until they reach the necessary level to solve
a specific problem. (CORRECT ANSWER)
Question
At the base of model construction is the information available about the system that
it intends to model. When it comes to mathematical models, described by one or more functions, the
the available information must correspond to the quantification of the variables involved in the functions
data.
Source: AMARO, Ana. An Introduction to Box-Jenkins Methodology. Morrisville: Lulu Press, 2012.
p. 11.
The presented excerpt deals with the construction of data-based models. Considering these
information and the content studied about fundamental aspects of languages of
In programming, it can be stated that the data typology is a:
Source: REZENDE, Solange Oliveira. Intelligent Systems: Fundamentals and Applications. Barueri:
Manole, 2005. p. 42.
Considering this information and the content studied about Software process, analyze the
stages of the waterfall model below and associate them with their respective characteristics.
It deals with the correction of errors that were not visualized during the early phases of the model.
Through the overall architecture of the system, this stage adopts attributes for the systems.
Phase in which the software project is produced together with a series of programs.
Thus, the unit test indicates whether each unit is adhering to its specification.
established.
Moment of the testing integration that occurred in the program units with the aim of
ensure that the attributes are met to be later available to the customer.
In this phase, the goals, constraints, and the services presented are established through
consultation with users.
5, 2, 3, 1, 4. (CORRECT ANSWER)
Question
The semantic elements pertain to the meaning of each syntactic construction. Therefore,
to code an algorithm in a programming language, we must first
study its lexical, syntactic, and semantic aspects.
Source: LOPES, Arthur Vargas. Introduction to Programming with Ada 95. Canoas: Ed. ULBRA. 1997,
p. 51.
Considering this information and the content studied about programming language,
it can be said that the encoding:
it is the process that transforms the developed project into a computing language.
(CORRECT ANSWER)
Question
We believe that a good Computer Science professional needs to have a bit of
each of these profiles. For this it is necessary to appreciate programming languages, based on
your practical experience and for the theoretical linguistics.
Source: MELO, Ana Cristina Vieira de. Principles of programming languages. São Paulo:
Blücher, 2003.
Considering this information and the content studied about fundamental aspects of
programming languages, it can be said that processor architectures are
examples of:
Question
For an electronic computer to function, it needs to be programmed. The process of
programming is a controlled "conversation" between a human (technically prepared) and the
properly speaking, a computer. The communication process is done using a language.
of programming.
Source: MANZANO, José Augusto N. G.; DE OLIVEIRA, Jayr Figueiredo. Logic algorithms for
computer programming development. São Paulo: Érica Publishing, 2016. p. 43.
The presented excerpt refers to the importance of using programming. Considering these
information and content studied about the programming process, it can be stated that the
programming involves:
Question
When talking about reuse, especially in object-oriented design, the reuse of code comes to mind,
the most common (through component libraries or standardized functions within companies). But
It is in the reuse of complex modules that there is the greatest gain in reuse. In the end, one must think about
reuse of architecture, design and code.
Source: VOTRE, Vilma Pedro. C++: Explained and Applied. Rio de Janeiro: Alta Books Publishing, 2016.
p. 626.
The presented excerpt deals with reuse in object-oriented applications. Considering these
information and the content studied about software process, it can be stated that the
practices of informal reuse:
Question
Coding consists of the description of algorithms in programming language, obtaining the
which is called a program or source file, and this activity can be simultaneous
with the editing, where the program is transcribed to the computer, usually through a
program editor.
Source: LORENZI, Fabiana. Pascal programming language. Canoas: Ulbra Publishing, 2000. p. 12.
The passage deals with the guidelines for coding in the C++ Language. Considering these
information and the content studied about the coding style, it is possible to affirm that the
elements that make up this style and that end through the visual organization of the program
are called: