GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

For a pool in the shape of a hexagon, the surface area of th…

For a pool in the shape of a hexagon, the surface area of the water at the top of the pool is 96 square feet. If the pool is consistently 4 feet and 8 inches deep, what is the volume of the pool in cubic feet?  Show all your work, ON YOUR PIECE OF PAPER,  to calculate the volume of the pool in cubic feet. Blank #1: What is the area of the base of this hexagonal prism?  Blank #2: In feet, what is the height of this hexagonal prism? (Round to the nearest hundredth.) Blank #3: What is the volume of the pool in cubic feet? Include proper units on paper but do not type in units into D2L. 

Read Details

A class collected information from students at their school…

A class collected information from students at their school about the method students use to get to school and made the bar graph. Answer the following questions about the graph. Blank #1: How many more students walked to school than biked to school?  Blank #2: How many students rode in a car to school?  Blank #3: How many students rode their bike or walked to school?  Blank #4: If a new student enrolled in the school, what method do you think they would use to get to school? 

Read Details

Select all the statements that are true when comparing a rec…

Select all the statements that are true when comparing a rectangle and a parallelogram. More than one answer may be correct.  Which of the following statements correctly describe the similarities or differences between a rectangle and a parallelogram? 

Read Details

Given the description of 2 triangles, determine the option t…

Given the description of 2 triangles, determine the option that justifies if the triangles are congruent, similar or cannot be determined. It may be helpful to sketch the given information on your paper, but work and/or answers on your paper will not be graded. 

Read Details

What is true about a Python ‘class’?  Check all that are tru…

What is true about a Python ‘class’?  Check all that are true.

Read Details

Python allows for the creation of custom-defined exceptions….

Python allows for the creation of custom-defined exceptions.  Which of the following are true of that feature?  Check all that apply.

Read Details

Write the complete display output of the following two lines…

Write the complete display output of the following two lines of code if the code that follows the two lines is first executed. m1.chgEmail(‘jbuffet@margaritaville.com’)print(e2.name, ‘\n’, w1.email, ‘\n’, str(m1.salary)) class Employee (object):    def __init__(self, name, email):          self.name = name          self.email = email    def chgEmail (self, newEmail):          self.email = newEmail + ‘.com’          return True class Manager (Employee):      def __init__(self, name, email, salary):          super().__init__(name, email)         self.salary = salary   def chgEmail(self, newEmail):          self.email = newEmail class Worker (Employee):    def __init__(self, name, email, hourly):         super().__init__(name, email)          self.hourly = hourly           # executable code that follows the code above:e1 = Employee (‘John Davis’, ‘jDavis@gmail.com’)e2 = Employee (‘James Bradley J’, ‘jbjones@psu.edu’)w1 = Worker   (‘Karina Walden’, ‘kwalden@state.gov’, 18.50)w2 = Worker   (‘Juan MacMaster’, ‘jmacmaster@gmail.com’, ‘17.25’)m1 = Manager  (‘Warren Buffet’, ‘wbuffet@bhathaway.com’, 92000)m2 = Manager  (‘Erica Contreras’, ‘econtreras@gmail.com’, 110000)

Read Details

What is true about ‘__init__’?  Check all that are true.

What is true about ‘__init__’?  Check all that are true.

Read Details

What will be the display output of the following code? class…

What will be the display output of the following code? class Rivers:    def __init__(self, itemList):          self.riverList = itemList    def __iter__(self):          return RiverIterator(self.riverList) class RiverIterator:    def __init__(self, rlist):          self.rlist = rlist          self.index = 0    def __next__(self):          if self.index >= len(self.rlist):                raise StopIteration         self.index += 1           return self.rlist[self.index – 1] EuroRivers = [‘Loire’, ‘Seine’, ‘Rhone’, ‘Rhine’, ‘Aare’, ‘Tiber’, ‘Danube’, ‘Thames’]r1 = Rivers(EuroRivers)riverMenu = iter(r1) next(riverMenu))print (next(riverMenu))next(riverMenu))print(next(riverMenu))print(riverMenu))next(riverMenu))next(riverMenu))print(next(riverMenu))print (‘End of rivers’)

Read Details

For the class definition below, what could be done to allow…

For the class definition below, what could be done to allow the attribute “__venue” to be directly accessed (“read” access) using dot-notation and the name “venue”?  For example, the code to print the venue for Ticket object t1 would be ‘print(t1.venue)’.  Check all of the following code choices that would provide a complete solution when added to the Ticket class. class Ticket (object):     ticketCount = 0    def __init__(self, name, event, date, venue):           Ticket.ticketCount += 1              self.__serialNumber =  Ticket.ticketCount              self.cust_name = name              self.date = date              self.__event = event self.__venue = venue 

Read Details

Posts pagination

Newer posts 1 … 47,080 47,081 47,082 47,083 47,084 … 99,546 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top