29/1/22 Test topic 3 - programming DAM
In Object-Oriented Programming, objects are created and interacted with.
they send each other messages to be destroyed later and released
The memory they occupy. True or false?
True
False
Polymorphism indicates the property that several classes created in
starting from a predecessor, perform the same action in a different way.
True or false?
False
True
Indicate which of the following definitions referred to is correct.
classes and objects:
Every class that is part of the program has, in an instant
given, one or more objects that are instances of it.
Every class is an instance of a single object.
An object-oriented program is composed of a
a set of objects that are representations of the real world and
that interact with each other for the resolution of a problem.
An object-oriented program is a structured collection.
of objects that define the different types of classes that will
intervene in the resolution of the problem.
In the definition of a class, we must keep in mind that:
We will create the class with the reserved word classes.
All are true.
The class file must have the same name as the
method that contains said class.
The common attributes of the set of objects must be included.
and the methods that operate on them.
Unable to access the URL provided. 1/7
29/1/22 Test topic 3 - programming degree
Indicate which of the following statements is an advantage of the
hiding of information
All of the above are correct.
Avoid inappropriate uses of the data.
Simplify the customer's perception of the method.
Allows creating a new class in terms of an existing one.
Abstraction is a property by which objects are seen
according to their external behavior. True or false?
False
True
Indicate, from the following definitions related to objects in
programming, the one that in your opinion is the most correct:
An object is a logical business unit that groups actions.
within functions and procedures.
An object in Object-Oriented Programming is the
equivalent to functions and procedures in the
Structured Programming.
An object is a logical business unit that groups
actions within functions and procedures, and also the
attributes or special characteristics of each function.
An object is a logical unit of business that includes data and
operations on that data.
Among the advantages of Object-Oriented Programming are
they find:
Direct correspondence between the problem space and the
solution space.
Ease of maintenance.
Use of reusable entities.
Division between data and processes.
The provided link is not a text that can be translated. Please provide the text you want to be translated. 2/7
29/01/22 Test theme 3 - programming DAM
Relate each sentence with the action it performs:
We create a type of
BufferedReader br = new
object that allows us
BufferedReader (isr);
read characters.
Keyboard scanner = new
We read until the end of
Scanner (System.in);
line.
InputStreamReader isr =
We create a type of
new
object that allows us
InputStreamReader(Syst
read any type of
em.in);
data.
Well
Standard output for
Welcome,
screen.
Match each package with its description:
Construction of
java.awt user interfaces.
Basic classes of
java.io
language.
java.lang Entry and exit.
java.util Utility classes
general.
When we write a program or application, what we do is define
Classes and when executing the program, objects are created. True or
false?
False
True
Objects do not become a representation of the real world, since
they are closer to the computational model than to the way of thinking
of the people. True or false?
False
True
Invalid input format. Please provide text for translation. 3/7
29/1/22 Test theme 3 - programming higher vocational training
Match the conversion codes of the printf() order with the function
of each one:
Write a character.
%e
Write a string of
%s text.
Write an integer.
%c
Write a number in
%d floating point with
scientific notation.
From the following statements regarding the methods, indicate which one is
the correct one:
Instance attributes along with instance methods
they are called class members.
All are correct.
The parameter list of a method must match the list
of arguments with which it is called.
Any method may not return a value, in which case it
indicate without using any reserved words.
The System class of the java.lang package, like any class, is
formed by methods and attributes, and it is also a class that does not
It can be instantiated, but it is used directly. True or false?
False
True
When we create an object, we have to use the class constructor.
indicating in all cases the necessary parameters to create it.
True or false?
False
True
Unable to access content from the provided URL. 4/7
29/1/22 Test theme 3 - programming dam
The keyboard input with the System class encapsulates an object in the
InputStreamReader class to later encapsulate it in the class
BufferedReader. True or false?
False
True
Relate each phase with the action that takes place in it:
type object_name;
Instantiation
System.runFinalization();
Destruction
object_name = new
Declaration Constructor_of_the_Class
;
Manipulation
object_name.attribute
Indicate which of the following elements is not part of the
declaration of a method:
Declaration of class attributes.
Sequence of instructions.
Declaration of parameters.
Declaration of local variables.
Constructors are special methods that do not return any
value, in which case it is indicated without using any reserved words.
True or false?
True
False
The provided input is a URL and does not contain translatable text. 5/7
29/1/22 Test topic 3 - programming DAM
Indicate, from the following statements related to difficulties
emerged from structured techniques, which one in your opinion is the
more important:
The main problem of Structured Programming is that the
the relationship between data and processes is reflected in the program,
so any change in the process or in the data implies
important changes in the program itself.
All of the above are correct.
The main problem with Structured Programming is that
programs do not make a distinction between data and processes.
The main problem with Structured Programming is that
the programs do not easily and effectively reflect the
entities of the real world.
Indicate which of the following statements are correct:
An object summarizes the common characteristics of a set of
classes.
A class can be an instance of several objects.
Objects represent individual instances of classes.
Every object has its own storage area that is
distinct from that of any other object.
An object has a private part, which can only be accessed by
through the internal methods of that object. True or false?
True
False
Structured Programming divides programs into a set of
actions, while Object-Oriented Programming what
It is about breaking down into objects. True or false?
False
True
Unable to retrieve or translate content from the provided link. 6/7
29/1/22 Test theme 3 - programming DAM
The attributes of classes in Java can be of primitive type or
They can be objects of other classes. True or false?
False
True
Static methods are those methods that can be used
only once the object has been instantiated. True or false?
False
True
Unable to access or translate content from the provided link. 7/7