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
Q

Constructor methods do which of following

A

Supply data at creation time

- Initialize objects

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

By bundling data and behaviors into discrete units, encapsulation ensures..

A

Protection from access by outside programs

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

Statements about superclasses

A

They provide methods and data to subclasses

- theyre more abstract than subclasses

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

Statements about subclasses is true

A

Provide more info than superclasses

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

Programming languages supports multiple inheritance

A

C++

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

Polymorphism is…

A

an object’s capability to be treated as a different type

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

Model View Controller design pattern is used to do which of following

A

Separate application data from its visual representation

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

Components in MVC design pattern must have info about other 2 for pattern to work

A

Controller

33
Q

Feature of Delegate design pattern

A

Allows one object to work on behalf of another

- enables you to avoid the shortcomings of subclassing

34
Q

String buffers are mutable meaning their content can change

A

True

35
Q

Loop invariant is

A

Calculation inside a loop that doesnt change for each iteration

36
Q

Objects reference count reaches 0, following happens to object

A

Its tagged for garbage collection

37
Q

Memory optimizations include the following

A

Limiting number of objects created

  • Restricting scope of objects
  • creating objects only when needed
38
Q

Chapter 4

App inventor is considered traditional IDE

A

False

39
Q

Not included with App inventor

A

Code editor

40
Q

Part of Design view can you use to see available components

A

Palette

41
Q

Upload graphics and sounds for app from…

A

Media pane

- Properties pane

42
Q

App inventors blocks editor is an example of encapsulation

A

True

43
Q

Benefit of using App inventor

A

It accepts only blocks that fit together

44
Q

Blocks Editor group

A

Built in

  • My Blocks
  • Advanced
45
Q

Process of concatenating strings in Blocks Editor is called

A

Join

46
Q

Non-visible components belong in which tier of MVC design pattern

A

Model

47
Q

Not a packaging option in App inventor

A

Publish to Market

48
Q

Chapter 5

MOTODEV Studio displays all project assets in

A

Package Explorer

49
Q

MOTODEV Studios form designer is called..

A

Graphical Layout view

50
Q

Used to build user interfaces for Android apps..

A

Java

XML

51
Q

Instantiating objects created in form designer is called…

A

Inflating

52
Q

Which class do you use to display an alert in an Android app to users?

A

Toast

53
Q

Protected data members are available to…

A

All subclasses

- all classes in same package

54
Q

The process of rewriting code to improve it

A

Refactoring

55
Q

Giving method the same signature in subclass as in superclass is called…

A

Overriding

56
Q

Method signature contains…

A

The method name

  • parameter list
  • return type
57
Q

Java switch mechanism replaces…

A

Conditional statements

58
Q

SharedPreferences object provides mechanism for doing…

A

Storing and retrieving primitive data

59
Q

Which is true of AndroidManifest.xml

A

It tells OS how to interact with app

  • includes permissions required for app
  • includes Intent Filters for app
60
Q

Broadcast Receiver

A

Waits for things outside your app to happen

61
Q

Which describes an Intent/

A

Bundle of info

- Activates activities, services, broadcast receivers

62
Q

Which classes do you subclass for UI objects

A

View

63
Q

Which of following components inform OS about what kinds of Intents it can handle?

A

Intent Filters

64
Q

Chapter 7

When creating Windows Phone 7 apps, which programming language do you use?

A

C#

65
Q

Silverlight apps can be created for …

A

Web pages

  • Windows phones
  • Desktops
66
Q

Both Objective-C and C# include class interface and implementation in same file

A

False

67
Q

C# keyword using is closest to which keyword in Java and Objective C

A

import

68
Q

C#, a namespace is…

A

a way to bundle assets

69
Q

Which is true of C# properties

A

They provide a public interface for private data

- theyre written by developer

70
Q

IntelliSense includes which?

A

Code competion

- Breakpoints

71
Q

Visual Studio solution is…

A

a group of file containing one or more projects

72
Q

Which Visual Studio window lists projects assets

A

Solution Explorer

73
Q

Which Visual Studio window you use to set objects’ attributes?

A

Properties window

74
Q

Visual Studio, which objects serves as container for where you drop components

A

Content Panel

75
Q

C#. a reference is..

A

A collection of files stored in DLL

76
Q

Which handles interactions between data and component firing event?

A

Event delegates

77
Q

Objects that start system services are…

A

Launchers

78
Q

You submit .xap files for publication on Windows Phone Marketplace

A

True

79
Q

Location service is provided as…

A

Reference