Mobile Apps Test #3

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

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

How much RAM did the first smartphone offer?

1 MB

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 default port number for the emulator?

5554

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.

Which company developed the iOS platform?

Apple

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

Java programs are compiled into which format to be run on the virtual machine?

Bytecode

Tapping the screen registers what event in the Android SDK and App Inventor?

Click

Which term describes installing an app on a device or emulator?

Deploy

What is the output of running the following code: string name = "Mark" name[3] = 'c' print name

Error

What does FTP stand for?

File Transfer Protocol

What is the name of the JavaScript debugger add-on for Firefox?

Firebug

Which company developed the Android platform?

Google

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

What happens to the grayed-out, temporary text displayed in a text box when a user begins to enter information?

It disappears

Which of the following is the platform language for Android?

Java

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

What is the output of the following code: num x = 1 while x > 0 print x x++ endwhile

Prints a specific set of numbers

What is the correct way to retrieve the value from a component named TextBox1?

TextBox1.Text

What is the output of the following pseudocode: if 3 < 4 then print "Hello" else print "Goodbye" endif

The string, "Hello"

What is the name of the environment manipulator add-on for Firefox, which can be used to simulate different user environments?

Web Developer

iOS and Android devices use which browser engine?

Webkit

Which of the following is NOT a consideration for choosing a platform for your apps?

What are the marketing trends for your proposed platform?

An app that is close to being completed is best tested using which of the following methods? a. Desk-checking b. Using the emulator c. On physical devices d. Beta testing

c

Which of the following is NOT true of Web development for mobile usage? a. Sites must be fast loading and easy to navigate. b. A mobile web page, completely separate from the desktop version, is often created. c. Languages used to create mobile sites are different than their desktop equivalents. d. Users are often automatically redirected to a mobile version of a site.

c

The _________________ component of the App Inventor allows you to view, rename, or delete the components of your app.

components pane

Which of the following is the last life cycle method called in the Activity component? a. onStart( ) c. onStop( ) b. onPause( ) d. onDestroy( )

d

Which of the following statements about JavaScript is true? a. It's a subset of the Java language and an object-based language. b. It must be compiled before running and it's an object-based language. c. It's a derivative of the C language and must be compiled before running. d. It's an object-based language and a derivative of the C language.

d

Which is NOT part of the application life cycle?

exited

What property is used to set the text displayed temporarily in a text box before a user enters their own information?

hint

The __________________ component of the App Inventor is used to upload custom audio or video.

media pane

In an array of length n, what is the index of the last element?

n - 1

In the pseudocode statement num x = 1, which part is a literal?

num

When an application interacts with data, which methods should be used?

onPause( ) and/or onDestroy( )

What is the output of running the following code: string name = "Mark" print name[2]

r

What property is used to set the text that will display in an app's top information bar?

title

T or F: All software of the Android architecture is free.

true

Which section of the App Inventor workspace represents an Android phone's screen?

viewer

What is the correct order for the standard development process of an app?

write, compile, run, debug

What does JNLP (the type of file a Java Web Start application is stored in) stand for?

Java Native Launch Protocol

When using the App Inventor, the Blocks Editor is what type of application?

Java Web Start

Which of the following is NOT a server-side technology?

JavaScript

Which keyword is used by App Inventor to combine string literals?

Join

For the MVC design pattern, what does MVC stand for?

Model-View-Controller

To add a string literal block to an app, on which tab do you find the Text block?

My Blocks

What is the name for components that are not displayed to the user?

Non-visible

Which of the following is the platform language for iOS?

Objective-C

Which section of the App Inventor workspace lists components available for use in your app in expandable groups?

Palette

Which now dissolved company led the smartphone industry before the advent of the iPhone?

Palm

Though you can write code for any of the life cycle event handlers, which of the following methods is the one most commonly used? a. onCreate( ) c. onStop( ) b. onStart( ) d. onResume( )

a

Which of the following is NOT a life cycle method in the Activity component? a. onInit( ) c. onRestart( ) b. onCreate( ) d. onResume( )

a

Which step in the development process is unnecessary for Web apps? a. Compile b. Debug c. Code d. Trial

a

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

Testing the graphical user interface (GUI) during the early stages of development is best done using which of the following methods? a. Desk-checking b.Using the emulator c. On physical devices d.You cannot test the GUI

b

When using the App Inventor, which of the following is NOT represented as a block? a. Methods b.Errors c. Properties d.Loops

b

Which of the following file types is not typically used in a Web application? a. CSS b. Objective-C c. JavaScript d. HTML

b

Which of the following is NOT a property of Content Providers? a. Store data c. Retrieve data b. Format output d. Have no life cycle events

b

T or F: An app like Where's My Phone?, which waits for text messages and responds with the GPS location, is best suited to an Android Service.

false

T or F: An array in Java can have array members of different data types.

false

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: 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: Core applications on the Android platform are given preference over third-party apps.

false

T or F: For security, Android applications are not able to access the existing messaging function of the phone.

false

T or F: In the Android app life cycle, a main( ) method is executed each time your app is started.

false

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

T or F: JavaScript does not support prototype-based inheritance.

false

T or F: On the Android platform, the apps you write operate at a different level than core apps, like the phone, contact, or browser, for security reasons.

false

T or F: Smartphones have always had touchscreens.

false

T or F: The app marketplace launched with the first generation iPhone.

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: The first device to be considered a smartphone was the Apple iPhone.

false

T or F: To keep an Android application running, you must keep the app's screen visible.

false

What is the definition of a Web Application?

A collection of resources on a publicly accessible server that provides some sort of functionality

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

What is the correct order to start the emulator in the Blocks Editor window?

Click 'New emulator', slide the green lock icon right to unlock, click 'Connect to Device', and select the emulator to start your app

What is the proper placement of parameters in a function or method definition?

Inside the parentheses

Which section of the App Inventor workspace allows the developer to modify certain aspects of components?

properties

T or F: App Inventor apps are not allowed on the Android Market.

true

T or F: Content providers are the only way to share data between apps.

true

T or F: For the most part, the OS calls the code you supply for each life cycle event automatically.

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: JavaScript does not support class-based inheritance.

true

T or F: Open-source tools, like App Inventor, are free to buy and use.

true

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: The iOS life cycle is simpler than Android's because an iOS app has a single entry point.

true

T or F: Web applications have access to device capabilities, like the accelerometer or location services.

true

T or F: When retrieving values from components, App Inventor creates code that uses the getter method to access the value.

true

T or F: When using the App Inventor, app functionality is primarily developed within the Block Editor.

true

T or F: When using the App Inventor, using blocks that fit together guarantees that your app will be error-free.

true

T or F: You should test apps on as many emulators as possible.

true


Ensembles d'études connexes

Fundamentals Test 5 Practice Questions

View Set

Chapter 4: Civil Liberties and Public Policy

View Set

Developmental Milestones 15 months - 5 yrs

View Set

Chapter 5 - Agency Relationships

View Set