<< Chapter < Page Chapter >> Page >

This is a wireframe image of a 3d sphere that is used as input to the program.

Figure 2 - Possible output produced by the program in Listing 1 .

This is a possible output image from the program.

Answer 1

Question 2

True or False? The code in Listing 2 instantiates an object of an anonymous class.

Listing 2 . Question 2.
new Java3012raRunner().run();

Answer 2

Question 3

True or False? The code in Listing 2 instantiates an anonymous object..

Answer 3

Question 4

True or False? The statement shown in Listing 3 will return a reference to a Pixel object that represents a physical pixel located at a horizontal coordinate of col and a vertical coordinate of row .

Listing 3 . Question 4.
leftPixel = pix.getPixels(col,row);

Answer 4



What is the meaning of the following two images?

This image was inserted here simply to insert some space between the questions and the answers to keep them from being visible on the screen at thesame time.

The image is also an example of the kinds of things that we do in my course titled ITSE 2321, Object-Oriented Programming.

Spacer image of a rabbit and a penguin.

This image was also inserted for the purpose of inserting space between the questions and the answers.

Spacer image of a penguin in the snow in front of some houses.


Answer 4

False. The code in Listing 3 has the wrong spelling for the method that returns the Pixel object. The correct spelling is shown in Listing 4 . You learned about the spelling (with no parameters) shown in Listing 3 in an earlier module.

Listing 4 . Answer 4.
leftPixel = pix.getPixel(col,row);

Back to Question 4

Answer 3

True. The object instantiated from the class named Java3012raRunner is an anonymous object because its reference is not saved in a named referencevariable in the current scope. Anonymous classes and anonymous objects are entirely different topics.

Back to Question 3

Answer 2

False. A discussion of anonymous classes would be a somewhat advanced topic. That topic is not explained in the module named Java3012: Using Nested Loops to Process Pixels .

Back to Question 2

Answer 1


Back to Question 1


This section contains a variety of miscellaneous information.

Housekeeping material
  • Module name: Java3012r Review
  • File: Java3012r.htm
  • Published: 02/14/13

Financial : Although the Connexions site makes it possible for you to download aPDF file for this module at no charge, and also makes it possible for you to purchase a pre-printed version of the PDF file, youshould be aware that some of the HTML elements in this module may not translate well into PDF.

I also want you to know that, I receive no financial compensation from the Connexions website even if you purchase the PDF version ofthe module.

In the past, unknown individuals have copied my modules from cnx.org, converted them to Kindle books, and placed them for sale onAmazon.com showing me as the author. I neither receive compensation for those sales nor do I know who does receive compensation. If youpurchase such a book, please be aware that it is a copy of a module that is freely available on cnx.org and that it was made andpublished without my prior knowledge.

Affiliation : I am a professor of Computer Information Technology at Austin Community College in Austin, TX.


Questions & Answers

What is price elasticity of demand and its degrees. also explain factors determing price elasticity of demand?
Yutansh Reply
Price elasticity of demand (PED) is use to measure the degree of responsiveness of Quantity demanded for a given change on price of the good itself, certis paribus. The formula for PED = percentage change in quantity demanded/ percentage change in price of good A
its is necessarily negative due to the inverse relationship between price and Quantity demanded. since PED carries a negative sign most of the time, we will usually the absolute value of PED by dropping the negative sign.
PED > 1 means that the demand of the good is price elasticity and for a given increase in price there will be a more then proportionate decrease in quantity demanded.
PED < 1 means that the demand of the good is price inelasticity and for a given increase in price there will be a less then proportionate decrease in quantity demanded.
The factors that affects PES are: Avaliablilty of close substitutes, proportion of income spent on the good, Degree of necessity, Addiction and Time.
Calculate price elasticity of demand and comment on the shape of the demand curve of a good ,when its price rises by 20 percentage, quantity demanded falls from 150 units to 120 units.
Helen Reply
5 %fall in price of good x leads to a 10 % rise in its quantity demanded. A 20 % rise in price of good y leads to do a 10 % fall in its quantity demanded. calculate price elasticity of demand of good x and good y. Out of the two goods which one is more elastic.
what is labor
Grace Reply
labor is any physical or mental effort that helps in the production of goods and services
what is profit maximizing level of out put for above hypothetical firm TC = Q3 - 21Q2 + 600 + 1800 P = 600 MC = 3Q2 - 42Q + 600
Sosna Reply
consider two goods X and Y. When the price of Y changes from 10 to 20. The quantity demanded of X changes from 40 to 35. Calculate cross elasticity of demand for X.
sorry it the mistake answer it is question
consider two goods X and Y. When the price of Y changes from 10 to 20. The quantity demanded of X changes from 40 to 35. Calculate cross elasticity of demand for X.
The formula for calculation income elasticity of demand is the percent change in quantity demanded divided by the percent change in income.
what is labor productivity
Lizzy Reply
if the demand function is q=25-4p+p² 1.find elasticity of demand at the point p=5?
Puja Reply
what are some of the difference between monopoly and perfect competition market
Obeng Reply
n a perfectly competitive market, price equals marginal cost and firms earn an economic profit of zero. In a monopoly, the price is set above marginal cost and the firm earns a positive economic profit. Perfect competition produces an equilibrium in which the price and quantity of a good is economic
what are some characteristics of monopoly market
Obeng Reply
explicit cost is seen as a total experiences in the business or the salary (wages) that a firm pay to employee.
Idagu Reply
what is price elasticity
it is the degree of responsiveness to a percentage change in the price of the commodity
economics is known to be the field
John Reply
what is monopoly
Peter Reply
what is taxation
is the compulsory transfer of wealth from the private sector to the public sector
why do monopoly make excess profit in both long run and short run
Adeola Reply
because monopoly have no competitor on the market and they are price makers,therefore,they can easily increase the princes and produce small quantity of goods but still consumers will still buy....
how to identify a perfect market graph
Adeola Reply
what is the investment
investment is a money u used to the business
investment is the purchase of good that are not consumed today but are used in the future to create wealth.
investment is the good that are not consumed
What is supply
 Supply represents how much the market can offer.
it is the quantity of commodity producers produces at the market
what is the effect of scarce resources on producers
Phindu Reply
explain how government taxes and government producer subsidies affect supply
what is economic
Charles Reply
what are the type of economic
macroeconomics,microeconomics,positive economics and negative economics
what are the factors of production
process of production
Basically factors of production are four (4) namely: 1. Entrepreneur 2. Capital 3. Labour and; 4. Land but there has been a new argument to include an addition one to the the numbers to 5 which is "Technology"
what is land as a factor of production
what is Economic
economics is how individuals bussiness and governments make the best decisions to get what they want and how these choices interact in the market
Economics as a social science, which studies human behaviour as a relationship between ends and scarce means, which have alternative uses.
Economics is a science which study human behaviour as a relationship between ends and scarce means
Economics is a social sciences which studies human behavior as a relationship between ends and scarce mean, which have alternative uses.....
A soccer field is a rectangle 130 meters wide and 110 meters long. The coach asks players to run from one corner to the other corner diagonally across. What is that distance, to the nearest tenths place.
Kimberly Reply
Jeannette has $5 and $10 bills in her wallet. The number of fives is three more than six times the number of tens. Let t represent the number of tens. Write an expression for the number of fives.
August Reply
What is the expressiin for seven less than four times the number of nickels
Leonardo Reply
How do i figure this problem out.
how do you translate this in Algebraic Expressions
linda Reply
why surface tension is zero at critical temperature
I think if critical temperature denote high temperature then a liquid stats boils that time the water stats to evaporate so some moles of h2o to up and due to high temp the bonding break they have low density so it can be a reason
Need to simplify the expresin. 3/7 (x+y)-1/7 (x-1)=
Crystal Reply
. After 3 months on a diet, Lisa had lost 12% of her original weight. She lost 21 pounds. What was Lisa's original weight?
Chris Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Object-oriented programming (oop) with java. OpenStax CNX. Jun 29, 2016 Download for free at https://legacy.cnx.org/content/col11441/1.201
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Object-oriented programming (oop) with java' conversation and receive update notifications?