click below
click below
Normal Size Small Size show me how
Software Dev Fund 1E
MTA - Software Development Fundamentals 1E
Question | Answer | Clue |
---|---|---|
The three basic states of a Windows Service application are stopped, running and _____________. | paused | There is no "starting" state |
Which option is used by console applications to process data such as stdin and stdout? | streams | In programming, standard streams are preconnected communication channels between a program and its environment when it begins execution. The 3 input/output connections are called standard input (stdin), standard output (stdout) and standard error (stderr) |
A type of program that the user interacts with through a graphical interface using things like a button to trigger an event which then calls a method to do something is called what. | Event Driven | Uses things like buttons, menus, image icons, sliders or any graphic items that can be manipulated |
Typically in object oriented programs the properties of an object are set to be private; this means that they need to have what in order for the properties to be usable outside the object? | public getter and setter methods | This is typical for most programs and usually accounts for a fair amount of code in many classes of objects that will get used a lot |
The purpose of a constructor in a class is to ______________ an object of that class. | initialize | All classes have one of these; sometimes a basic default version is implicitly in the class and sometimes it is explicitly defined by the programmer. |
What does this code do: purpleplayer.favoritesport = "pingpong"; | assigns a property value | = is the assignment operator in programming |
What happens on line 1 of the code below? 1. public Car redcar = new Car(); 2. public void getRedCar(){ 3. if(redcar == true){ 4. return redcar; 5. } 6. } | instantiation | The "new" keyword is always used to create a new instance of an object |
The function definition: public int getSpeed(){ must send back a piece of data in the form of an int (this is absolutely required) to the code that calls this function. What is "int" called in this definition of a function? | return type | All function declarations must declare one of these even if it does not send anything back. In that case the type is "void". |
When the access modifier "protected" is used as in: protected int firstname; the variable firstname can be set using a public setter function or __________. | directly from ONLY these 2 options: •other instances of that same class •or a child class that inherits from it | protected is an access modifier like "public" and "private" |
The access modifier "friend" when applied to properties in a class means that other classes from the same ______________ can access the property from outside the class. | project | the access modifier "friend" is similar to "public" except that it is limited to within the project, NOT all outside classes. |
truck1 = (Truck)firetruck1; Converting a child class instance back to its base class type is called ______________. | upcasting | You are going from a more complex type to a less complex type. ("Up" is a simpler word than "Down") |
firetruck1 = (FireTruck)truck1; Converting a base class instance back to its original derived (child) class type is called _______________. | downcasting | You are going from a less complex type to a more complex type. ("Down" is a more complex word than "Up"). |
A type of Microsoft program that runs after the Windows operating system starts, but that has not visual interface and that can be programatically paused or restarted is called a what? | Windows Service Application | It runs in the background without the user really knowing it is running, like the program that sets the clock time, a program that connects to a network or a program that automatically updates software. |