Docsity

CS Extra Credit Final Exam: Programming Concepts and Techniques - Prof. Jay Summet, Exams of Computer Science

Toggle sidebar
bg1
Camile Hart
CS Extra Credit Final Exam
I worked this assignment using course materials.
1) Vocabulary Matching:
___Pure function 1) a way to solve a problem by following a set
of instructions in a mechanical, unintelligent process
___Modifier 2) a way of developing a program by starting
with a prototype and then improving on it.
___Functional programming style 3) a function that changes one or more of the
objects it receives as parameters.
___Prototype development 4) a function that does not modify any of the
objects it receives as parameters.
___Planned development 5) a style of program design in which the majority
of functions are pure.
___Algorithm 6) a way of developing programs that involves high
level insight to the problem and more planning
___Inheritance class 7) a new class created from an existing class, also
called a subclass.
___Parent class 8) the class from which a child inherits.
___Child class 9) the ability to define a new class that is a modified
version of the previously defined class.
___Object 10) a method used to create new objects.
___Constructor 11) One of the named data items that makes up an
instance.
___Attribute 12) a compound data type that is often used to
model a thing or concept in the real world.
pf3

Partial preview of the text

Download CS Extra Credit Final Exam: Programming Concepts and Techniques - Prof. Jay Summet and more Exams Computer Science in PDF only on Docsity!

Camile Hart [email protected] CS Extra Credit Final Exam I worked this assignment using course materials.

  1. Vocabulary Matching: ___Pure function 1) a way to solve a problem by following a set of instructions in a mechanical, unintelligent process ___Modifier 2) a way of developing a program by starting with a prototype and then improving on it. ___Functional programming style 3) a function that changes one or more of the objects it receives as parameters. ___Prototype development 4) a function that does not modify any of the objects it receives as parameters. ___Planned development 5) a style of program design in which the majority of functions are pure. ___Algorithm 6) a way of developing programs that involves high level insight to the problem and more planning ___Inheritance class 7) a new class created from an existing class, also called a subclass. ___Parent class 8) the class from which a child inherits. ___Child class 9) the ability to define a new class that is a modified version of the previously defined class. ___Object 10) a method used to create new objects. ___Constructor 11) One of the named data items that makes up an instance. ___Attribute 12) a compound data type that is often used to model a thing or concept in the real world.
  1. Simulating an insertion sort, sort the following list and show all steps: [5,2,10,4,1,6,9]
  2. Write a program that would sort this list using an insertion sort.
  3. Write a program that searches aList for all variables less than 5 and returns a list with their index values.