Mobile Application Development Chapters 1 & 2
What is the result of the following code?num x = 4num y = 3num i = 0num j = 0while i < xj = 0while j < yprint i, jj = j + 1endfori = i + 1endfor
0, 00, 10, 21, 01, 11, 22, 02, 12, 23, 03, 13, 2
In the pseudocode statement num x = 1, which part is a literal?
1
According to Netscape co-founder Mark Andreessen, approximately how many people will own mobile phones worldwide, in the next 10 years?
5 billion
What is the output of running the following code?string name = "Mark"name[3] = 'c'print name
An error
On the iOS platform, where do life cycle events occur?
Application delegate
Which of the following is NOT an Android life cycle event?
Application_Closing()
In iOS, apps sit on top of which layer?
Cocoa Touch
Which of the following is NOT created and loaded byUIApplicationMain() in the iOS app life cycle?
Cocoa Touch
Which Android component does NOT have life cycle events?
Content Provider
Which of the following is NOT a consideration for choosing a platform for your apps?
Do you have a device that works with this platform?
Which is NOT part of the application life cycle?
Exited
Which of the following is NOT a property of Content Providers?
Format Output
Which company developed the Android platform?
What is the output of the following pseudocode?if 3 < 4 thenprint "Hello"elseprint "Goodbye"endif
Hello
Which of the following is a preferred tool for Android development?
IBM Eclipse
What is the proper placement of parameters in a function or method definition?
Inside the parentheses
Which of the following is a preferred tool for iOS development?
Interface Builder
Which of the following is NOT a language used to develop Web Applications?
Java
Which of the following is the platform language for Android?
Java
What is the difference between the CLR and the Dalvik virtual machines?
Location in the platform stack
In an Objective-C method, arguments are specified by being placed within which punctuation mark?
None
Which of the following is the platform language for iOS?
Objective-C
Which now dissolved company led the smartphone industry before the advent of the iPhone?
Palm
What is the result of the following code?num x = 0num y = 10while x < yprint y * yx = x + 1endwhile
Prints 100 ten times
What is the output of the following code?num x = 1while x > 0print xx++endwhile
Prints a specific set of numbers.
Which term is used when an application on Windows Phone 7 is deactivated because it no longer has the focus?
Tombstoned
Which platform has no 'running' life cycle event?
Windows Phone 7
Used for developing 2D and 3D games for Windows Phone 7, what does XNA stand for?
XNA is Not an Acronym
In Objective-C methods, arguments are separated with which punctuation mark?
colons (:)
Which phone has the highest screen resolution?
iPhone 4
Which phone is available in a 32 GB model?
iPhone 4
In an array of length n, what is the index of the last element?
n - 1
Though you can write code for any of the life cycle event handlers, the most commonly used is which of the following methods?
onCreate()
Which of the following is NOT a life cycle method in the Activity component?
onInit()
Broadcast Receivers are only valid within the scope of which method?
onReceive()
Which of the following is NOT a 'start' life cycle event?
onStart()
What is the output of running the following code?string name = "Mark"print name[2]
r
What data type should be used when keeping track of a name?
string
What is the correct order for the standard development process?
write, compile, debug, run
In the pseudocode statement num x = 1, which part is a variable?
x