subject

What type of programming encapsulates data and functions together in an object?

a.
object-oriented.

b.
interactive.

c.
procedural.

d.
menu-driven.

e.
none of the above.

2.5 points

question 2

what software entity contains both data and procedures?

a.
objects.

b.
instances.

c.
events.

d.
memory location(s).

e.
none of the above.

2.5 points

question 3

the variables, arrays, or other data structures that are stored in the object are known as the object’s

a.
records.

b.
methods.

c.
addresses.

d.
fields.

e.
none of the above.

2.5 points

question 4

the procedures that the object performs are known as

a.
records.

b.
methods.

c.
addresses.

d.
fields.

e.
none of the above.

2.5 points

question 5

the programmer determines the fields and methods of an object and creates the code.

a.
print.

b.
class.

c.
module.

d.
procedure.

e.
none of the above.

2.5 points

question 6

the class starts with the word class followed by the name of the class.

a.
body.

b.
definition.

c.
return.

d.
members.

e.
none of the above.

2.5 points

question 7

what is the term used for the fields and methods that belong to a class?

a.
body.

b.
definition.

c.
return.

d.
members.

e.
none of the above.

2.5 points

question 8

the word private that appears before a field declaration, in a class definition, is known as a(n)

a.
access specifier.

b.
specifier.

c.
class specifier.

d.
inside specifier.

e.
none of the above.

2.5 points

question 9

the mutator methods are sometimes called

a.
getters.

b.
accessors.

c.
setters.

d.
private.

e.
none of the above.

2.5 points

question 10

what allows you to create methods with the same name in different classes and gives you the ability to call the correct method depending on the type of object that is used to call it?

a.
constructor.

b.
inheritance.

c.
accessor.

d.
polymorphism.

e.
none of the above.

2.5 points

question 11

is a standard way of drawing diagrams that describe object-oriented systems.

a.
data flow diagram.

b.
uml.

c.
flowchart.

d.
hierarchy chart.

e.
none of the above.

2.5 points

question 12

is another name for accessor methods.

a.
getters.

b.
accessors.

c.
setters.

d.
private.

e.
none of the above.

2.5 points

question 13

which method is called automatically when an object is created?

a.
design.

b.
public.

c.
private.

d.
constructor.

e.
none of the above.

2.5 points

question 14

allows a new class to extend an existing class.

a.
successor.

b.
accessor.

c.
inheritance.

d.
public.

e.
none of the above.

2.5 points

question 15

which of the following tasks are performed by a procedure?

a.
reading a file.

b.
gathering input.

c.
displaying output.

d.
all of the above.

e.
none of the above.

2.5 points

question 16

which of the following are contained in a uml diagram for a class?

a.
class name.

b.
class fields.

c.
class methods.

d.
all of the above.

e.
none of the above.

2.5 points

question 17

in a uml diagram what character do you place in front of a field of method name to indicate it is public?

a.
+.

b.
=.

c.
p.

d.
-.

e.
none of the above.

2.5 points

question 18

the act of declaring a class variable does not actually create an object in memory.

true

false

2.5 points

question 19

if a constructor is not written when the class is compiled, then a constructor is automatically provided and it is known as the default constructor.

true

false

2.5 points

question 20

when a superclass method has the same name as a subclass method, it is often said that the superclass method overrides the subclass method.

true

false

2.5 points

question 21

external entities do not have direct access to the object’s private methods.

true

false

2.5 points

question 22

when the program is running, it can use the class to create, in memory, one object of a specific type as needed.

true

false

2.5 points

question 23

the private object fields can be directly manipulated by outside entities.

true

false

2.5 points

question 24

when a class variable is assigned the address of an object, it is said that the variable references the object.

true

false

2.5 points

question 25

in an inheritance relationship, the superclass inherits members from the subclass, not the other way around.

true

false

2.5 points

question 26

when an object’s internal data is hidden from outside code and access to the data is restricted to the object’s methods, the data is protected from accidental corruption.

true

false

2.5 points

question 27

there are primarily three methods of programming in use today: procedural, recursive, and object-oriented.

true

false

2.5 points

question 28

the separation of data and the code that operates on the data can lead to problems as a program becomes larger and more complex.

true

false

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
In outlook how can cherie look at the details of an event that appears on the month view of her calendar? check all that apply. by switching to the detail view by switching to the week view by switching to the day view by right-clicking on the event by double-clicking on the event by highlighting the event
Answers: 2
question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
Answers: 2
question
Computers and Technology, 25.06.2019 00:00
What function key is used to enable the spelling and grammar function
Answers: 1
You know the right answer?
What type of programming encapsulates data and functions together in an object?

a.
Questions
question
Mathematics, 19.05.2021 07:00
question
Mathematics, 19.05.2021 07:10
Questions on the website: 13722360