Midterm Flashcards
Carrying camera, phone, music player
Not an example of device convergence
Libraries used for development
- tools for testing code
- documentation about the libraries
Software development kit includes the following
True
Integrated development environment usually makes it easier to work with SDK
Functions
You can pass parameters to which of the following
x = 10 y =15
15 is printed onscreen
a < b evaluates to false
Then a>=b is true
3
array 1,2,3,4 what value element index 2
A for loop
1,2,3,4
Tom Duffy
myName = “Tom Duffy”;
Requires VM to run apps
Doesnt describe smartphone?
Write once, run anywhere
Java’s premise
Collection of resources
- allows nonnative programs to run
- runs on host OS
Which describes VM?
IBM and BellSouth
Introduced first smartphone
Android platform
Google released in 2008
Its open source
True of the android platform
Both a and b
Android software updates
Most users install updates
True of iOS software updates
Chapter 3
Your program compiles only if you follow best practices
False
Procedural programming languages, code runs linearly
True
Object oriented programs follow the loose coupling principle to facilitate accessing data stored in objects
False
Not an object oriented language
C
Classes can be thought of as templates for which of the following
Creating objects
Data members whose scope is the entire class are called which of following
Instance variables
Which of the following is the process of creating an object from class
Instantiation
Constructor methods do which of following
Supply data at creation time
- Initialize objects
By bundling data and behaviors into discrete units, encapsulation ensures..
Protection from access by outside programs
Statements about superclasses
They provide methods and data to subclasses
- theyre more abstract than subclasses
Statements about subclasses is true
Provide more info than superclasses
Programming languages supports multiple inheritance
C++
Polymorphism is…
an object’s capability to be treated as a different type
Model View Controller design pattern is used to do which of following
Separate application data from its visual representation
Components in MVC design pattern must have info about other 2 for pattern to work
Controller
Feature of Delegate design pattern
Allows one object to work on behalf of another
- enables you to avoid the shortcomings of subclassing
String buffers are mutable meaning their content can change
True
Loop invariant is
Calculation inside a loop that doesnt change for each iteration
Objects reference count reaches 0, following happens to object
Its tagged for garbage collection
Memory optimizations include the following
Limiting number of objects created
- Restricting scope of objects
- creating objects only when needed
Chapter 4
App inventor is considered traditional IDE
False
Not included with App inventor
Code editor
Part of Design view can you use to see available components
Palette
Upload graphics and sounds for app from…
Media pane
- Properties pane
App inventors blocks editor is an example of encapsulation
True
Benefit of using App inventor
It accepts only blocks that fit together
Blocks Editor group
Built in
- My Blocks
- Advanced
Process of concatenating strings in Blocks Editor is called
Join
Non-visible components belong in which tier of MVC design pattern
Model
Not a packaging option in App inventor
Publish to Market
Chapter 5
MOTODEV Studio displays all project assets in
Package Explorer
MOTODEV Studios form designer is called..
Graphical Layout view
Used to build user interfaces for Android apps..
Java
XML
Instantiating objects created in form designer is called…
Inflating
Which class do you use to display an alert in an Android app to users?
Toast
Protected data members are available to…
All subclasses
- all classes in same package
The process of rewriting code to improve it
Refactoring
Giving method the same signature in subclass as in superclass is called…
Overriding
Method signature contains…
The method name
- parameter list
- return type
Java switch mechanism replaces…
Conditional statements
SharedPreferences object provides mechanism for doing…
Storing and retrieving primitive data
Which is true of AndroidManifest.xml
It tells OS how to interact with app
- includes permissions required for app
- includes Intent Filters for app
Broadcast Receiver
Waits for things outside your app to happen
Which describes an Intent/
Bundle of info
- Activates activities, services, broadcast receivers
Which classes do you subclass for UI objects
View
Which of following components inform OS about what kinds of Intents it can handle?
Intent Filters
Chapter 7
When creating Windows Phone 7 apps, which programming language do you use?
C#
Silverlight apps can be created for …
Web pages
- Windows phones
- Desktops
Both Objective-C and C# include class interface and implementation in same file
False
C# keyword using is closest to which keyword in Java and Objective C
import
C#, a namespace is…
a way to bundle assets
Which is true of C# properties
They provide a public interface for private data
- theyre written by developer
IntelliSense includes which?
Code competion
- Breakpoints
Visual Studio solution is…
a group of file containing one or more projects
Which Visual Studio window lists projects assets
Solution Explorer
Which Visual Studio window you use to set objects’ attributes?
Properties window
Visual Studio, which objects serves as container for where you drop components
Content Panel
C#. a reference is..
A collection of files stored in DLL
Which handles interactions between data and component firing event?
Event delegates
Objects that start system services are…
Launchers
You submit .xap files for publication on Windows Phone Marketplace
True
Location service is provided as…
Reference