Midterm Flashcards

1
Q

Carrying camera, phone, music player

A

Not an example of device convergence

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Libraries used for development

  • tools for testing code
  • documentation about the libraries
A

Software development kit includes the following

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True

A

Integrated development environment usually makes it easier to work with SDK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Functions

A

You can pass parameters to which of the following

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

x = 10 y =15

A

15 is printed onscreen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

a < b evaluates to false

A

Then a>=b is true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

3

A

array 1,2,3,4 what value element index 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A for loop

A

1,2,3,4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Tom Duffy

A

myName = “Tom Duffy”;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Requires VM to run apps

A

Doesnt describe smartphone?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Write once, run anywhere

A

Java’s premise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Collection of resources

  • allows nonnative programs to run
  • runs on host OS
A

Which describes VM?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

IBM and BellSouth

A

Introduced first smartphone

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Android platform

A

Google released in 2008

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Its open source

A

True of the android platform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Both a and b

A

Android software updates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Most users install updates

A

True of iOS software updates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Chapter 3

Your program compiles only if you follow best practices

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Procedural programming languages, code runs linearly

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Object oriented programs follow the loose coupling principle to facilitate accessing data stored in objects

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Not an object oriented language

A

C

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Classes can be thought of as templates for which of the following

A

Creating objects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Data members whose scope is the entire class are called which of following

A

Instance variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Which of the following is the process of creating an object from class

A

Instantiation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Constructor methods do which of following
Supply data at creation time | - Initialize objects
26
By bundling data and behaviors into discrete units, encapsulation ensures..
Protection from access by outside programs
27
Statements about superclasses
They provide methods and data to subclasses | - theyre more abstract than subclasses
28
Statements about subclasses is true
Provide more info than superclasses
29
Programming languages supports multiple inheritance
C++
30
Polymorphism is...
an object's capability to be treated as a different type
31
Model View Controller design pattern is used to do which of following
Separate application data from its visual representation
32
Components in MVC design pattern must have info about other 2 for pattern to work
Controller
33
Feature of Delegate design pattern
Allows one object to work on behalf of another | - enables you to avoid the shortcomings of subclassing
34
String buffers are mutable meaning their content can change
True
35
Loop invariant is
Calculation inside a loop that doesnt change for each iteration
36
Objects reference count reaches 0, following happens to object
Its tagged for garbage collection
37
Memory optimizations include the following
Limiting number of objects created - Restricting scope of objects - creating objects only when needed
38
Chapter 4 | App inventor is considered traditional IDE
False
39
Not included with App inventor
Code editor
40
Part of Design view can you use to see available components
Palette
41
Upload graphics and sounds for app from...
Media pane | - Properties pane
42
App inventors blocks editor is an example of encapsulation
True
43
Benefit of using App inventor
It accepts only blocks that fit together
44
Blocks Editor group
Built in - My Blocks - Advanced
45
Process of concatenating strings in Blocks Editor is called
Join
46
Non-visible components belong in which tier of MVC design pattern
Model
47
Not a packaging option in App inventor
Publish to Market
48
Chapter 5 | MOTODEV Studio displays all project assets in
Package Explorer
49
MOTODEV Studios form designer is called..
Graphical Layout view
50
Used to build user interfaces for Android apps..
Java | XML
51
Instantiating objects created in form designer is called...
Inflating
52
Which class do you use to display an alert in an Android app to users?
Toast
53
Protected data members are available to...
All subclasses | - all classes in same package
54
The process of rewriting code to improve it
Refactoring
55
Giving method the same signature in subclass as in superclass is called...
Overriding
56
Method signature contains...
The method name - parameter list - return type
57
Java switch mechanism replaces...
Conditional statements
58
SharedPreferences object provides mechanism for doing...
Storing and retrieving primitive data
59
Which is true of AndroidManifest.xml
It tells OS how to interact with app - includes permissions required for app - includes Intent Filters for app
60
Broadcast Receiver
Waits for things outside your app to happen
61
Which describes an Intent/
Bundle of info | - Activates activities, services, broadcast receivers
62
Which classes do you subclass for UI objects
View
63
Which of following components inform OS about what kinds of Intents it can handle?
Intent Filters
64
Chapter 7 | When creating Windows Phone 7 apps, which programming language do you use?
C#
65
Silverlight apps can be created for ...
Web pages - Windows phones - Desktops
66
Both Objective-C and C# include class interface and implementation in same file
False
67
C# keyword using is closest to which keyword in Java and Objective C
import
68
C#, a namespace is...
a way to bundle assets
69
Which is true of C# properties
They provide a public interface for private data | - theyre written by developer
70
IntelliSense includes which?
Code competion | - Breakpoints
71
Visual Studio solution is...
a group of file containing one or more projects
72
Which Visual Studio window lists projects assets
Solution Explorer
73
Which Visual Studio window you use to set objects' attributes?
Properties window
74
Visual Studio, which objects serves as container for where you drop components
Content Panel
75
C#. a reference is..
A collection of files stored in DLL
76
Which handles interactions between data and component firing event?
Event delegates
77
Objects that start system services are...
Launchers
78
You submit .xap files for publication on Windows Phone Marketplace
True
79
Location service is provided as...
Reference