Flashcards
Programming
Cards in this deck (8)
- 1What is the difference between an array and an array list?An array is controlled using the values at each index, whereas an array list has methods which control adding, removing, retrieving and modifying of data
- 2If I need an integer but my method returns a double, how do I use the double anyway without changing my method?Use Casting:
int integerValue = (int) doubleValue - 3What is a library?A collection of precompiled routines stored in an object format. Due to this, the programmer is not required to explicitly link to these routines
- 4Name 3 programming constructsSequence, iteration, branching
- 5Give 1 advantage and 1 disadvantage of global variables+ : Accessible from anywhere in the program
- : Two variables with the same name create errors so the name has to be unique - 6What two terms referring to adding and removing from a stack?Push & Pop
- 7What does it mean to inherit another class?Inheriting class receives any protected methods and variables as if they were its own
- 8What is the difference between an interface and an abstract class?An interface is final but an abstract class can be final.
A class can only inherit one abstract class but may implement many interfaces
Information
- Description
- A level Computing Flashcards on Programming, created by Josh Calvert on 20/01/2017.
- Created by
- Josh Calvert · Jan 2017
- Updated
- Jan 20, 2017
- Views
- 6
- Tags
- Rating