MAD Mobile Application development chapter 4 part 4
When using the App Inventor and accessing the Texting component, where do you find the block to include the automatically included messageText argument?
Built-in
To add a string literal block to an app, on which tab do you find the Text block?
My Blocks
What is the default port number for the emulator?
5554
Which term describes installing an app on a device or emulator?
Deploy
When using the App Inventor, what happens when you select the Download to this Computer option from the Package for Phone menu?
An Android package, or .apk file, is downloaded to the user's computer
When using the App Inventor, what occurs when the Show Barcode option is selected from the Package for Phone menu?
An image is created that shows a machine-readable URL pointing to the app.
The ________________ is the component used to write applications that make use of the core libraries and any libraries you create; this includes a Content Provider, a Resource Manager, an Activity Manager, and more.
application framework
The __________________ component of the App Inventor is used to upload custom audio or video.
media pane
The _________________ component of the App Inventor allows you to view, rename, or delete the components of your app.
components pane
T or F: Placing a link to the mobile version of a site at the top of the page is the easiest way to get users to the mobile site, although the downside is that all users, not just mobile users, will see that link
True
T or F: You should test apps on as many emulators as possible.
True
What is the definition of a Web Application?
A collection of resources on a publicly accessible server that provides some sort of functionality
T or F: JavaScript does not support class-based inheritance.
True
T or F: JavaScript does not support prototype-based inheritance.
False
Which of the following is NOT true of Web development for mobile usage?
Languages used to create mobile sites are different than their desktop equivalents.
How do you implement a separate stylesheet for mobile devices?
In the HTML declaration, add media="handheld" to indicate that a specific style sheet should be used for handheld or small devices
Which of the following is NOT a server-side technology?
JavaScript
What does FTP stand for?
File Transfer Protocol
Which line in the following code includes a syntax error?
0 function moveImage(top, left) {
1 document.getElementById('image').style.top = top;
2 document.getElementByID('image').style.left = left;
3 }
2
What is the name of the JavaScript debugger add-on for Firefox?
Firebug
What is the name of the environment manipulator add-on for Firefox, which can be used to simulate different user environments?
Web Developer
1. Which line in the following CSS code does NOT include a syntax error?
0 #scoreLabel {
1 font-family: Arial,Helvetica,sans-serif;
2 color: #00099;
3 position; absolute;
4 top: 10px
5 left: 10px;
6 }
1
iOS and Android devices use which browser engine?
Webkit
Which of the following file types is not typically used in a Web application?
Objective-C
Which step in the development process is unnecessary for Web apps?
Compile
Which of the following statements about JavaScript is true?
It's an object-based language and a derivative of the C language.
What is the result of the following code:
num x = 0
num y = 10
while x < y
print y * y
x = x + 1
endwhile
Prints 100 ten times
T or F: For the most part, the OS calls the code you supply for each life cycle event automatically.
True
Which of the following is the last life cycle method called in the Activity component?
onDestroy( )
What is the output of running the following code:
string name = "Mark"
print name[2]
r
Java programs are compiled into which format to be run on the virtual machine?
Bytecode
T or F: Android is open-source software, which means that any modifications a developer makes must also be released as open-source software.
False
T or F: The easiest way to deal with temporary text in a text box that needs to be removed when a user enters certain information is to build a JavaScript solution.
False
T or F: When using the App Inventor, app functionality is primarily developed within the Block Editor.
True
T or F: App Inventor can only be used to develop lightweight apps because you don't have to write code to use it.
False
T or F: All software of the Android architecture is free.
True
Which of the following is NOT a property of Content Providers?
Format output
Though you can write code for any of the life cycle event handlers, which of the following methods is the one most commonly used?
onCreate( )
Which is NOT part of the application life cycle?
exited
Which of the following is NOT a life cycle method in the Activity component?
onInit( )
When an application interacts with data, which methods should be used?
onPause( ) and/or onDestroy( )
T or F: In the Android app life cycle, a main( ) method is executed each time your app is started.
False
T or F: Content providers are the only way to share data between apps.
True
T or F: The iOS life cycle is simpler than Android's because an iOS app has a single entry point.
True
T or F: In an Android app, the four types of components that represent the entry point into an application are Activity, Service, Content Provider, and Broadcast Receiver.
True
T or F: Java programs aren't native to the OS, so the Android platform includes the Java Virtual Machine (JVM) for running Android apps written in Java on Android devices.
False
What is the output of the following code:
num x = 1
while x > 0
print x
x++
endwhile
Prints a specific set of numbers