CIST2381 Final Prep

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

There are two ways to add jQuery Mobile to your web site. You can:

(both A and C) A) Link to a jQuery Mobile library stored at a CDN (recommended) C) Link to a jQuery Mobile library stored at your computer/server

How much does it cost to develop applications for Windows Phone 7?

A) $0

In an array, what is the index of the first element?

A) 0

How many apps can be run concurrently on Windows Phone 7?

A) 1

Which of the following is correct about the differences between how a compiled language and an interpreted language are translated from English- like commands to machine language?

A) A compiled language is translated once, and an interpreted language is interpreted each time the code executes.

Which of the following is an advantage of Android Studio over App Inventor?

A) Android Studio allows you to develop more sophisticated Android Apps.

Which company developed the iOS platform?

A) Apple

Which of the following is NOT an Android life cycle event?

A) Application_Closing()

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

A) Built-in

Which language is NOT supported for development on Windows Phone 7?

A) C

Which of the following is the platform language for Windows Phone?

A) C#

What does CSS stand for?

A) Cascading Style Sheets

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

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

In iOS, apps sit on top of which layer?

A) Cocoa Touch

Which of the following is NOT created and loaded by UIApplicationMain() in the iOS app life cycle?

A) Cocoa Touch

The text shown on a button is set by which of the following properties?

A) Content

Which of the following design patterns are commonly seen in an iOS app?

A) Delegate B) MVC (both)

What does XAML stand for?

A) Extensible Application Markup Language

Which files types correspond to the View and Controller tiers of the MVC design pattern?

A) HTML and CSS provide the View tier, while JavaScript combined with the event attributes in HTML provides the Controller view.

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

A) Hello

The Xcode IDE runs on which computer architectures?

A) Intel-based Macs with OS X 10.6.7 or later

Which of the following is a preferred tool for iOS development?

A) Interface Builder

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

A) It disappears.

Which line in the following code contains a syntax error? 0 func processHit(sender:) { 1 score += 1 2 let scoreString:String = "Score: \(score)" 3 scoreLabel.text = scoreString; 4 }

A) Line 0

Which line in the following 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 }

A) Line 1

Which of the following is NOT among the frameworks included in the Cocoa Touch layer?

A) Location services

Which of the following is NOT a development tool used for iOS development?

A) NetBeans

How does the developer start the Windows Phone Emulator?

A) Pressing the Run button.

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

A) Prints an infinite set of numbers (1, 2, 3, 4, 5, 6, and so on).

Which of the following is NOT an option for packaging an app?

A) Submit to Android Market

1000 milliseconds is the same as 1 second.

A) True

A child class can inherit the methods from its parent class (or super class)

A) True

All software of the Android architecture is free.

A) True

All three major platforms (iOS, WindowsPhone, and Android) dicussed in the lesson have a marketplace for developers to sell their apps.

A) True

Android Studio allows the user to choose the Android version(s) the app supports.

A) True

Android commands the highest market share of mobile devices by operating system.

A) True

App functionality is primarily developed within the Block Editor.

A) True

Content providers are the only way to share data between apps

A) True

Developers control the definition of a change in location by setting the MovementThreshold property.

A) True

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

A) True

If you use the Tab key to accept the current code completion suggestion with Xcode, Xcode accepts only the stub that matches.

A) True

In an Android app, the four types of components that represent the entry point into your application are Activity, Service, Content Provider, and Broadcast Receiver.

A) True

JavaScript is weakly-typed.

A) True

Like Java, Swift classes can implement multiple interfaces/delegates.

A) True

One benefit of external parameter names is that it includes the names of arguments in the parameter list during the call to make a function call clearer to read.

A) True

Open-source tools, like PhoneGap, are free to buy and use.

A) True

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.

A) True

The X button, which closes the emulator as it does any Windows window, acts as the phone's power button.

A) True

The easiest way to build an event handler for a component is to double-click the component and let Visual Studio automatically build the code stub.

A) True

The iOS life cycle is simpler than Android's because an iOS app has a single entry point.

A) True

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

A) True

When providing support for binding, a service must provide that funcationality in the onBind() method.

A) True

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

A) True

Xcode is the only IDE available to create apps for iOS.

A) True

You should test apps on as many emulators as possible.

A) True

jQuery Mobile is a touch-optimized web framework for creating mobile web applications.

A) True

In Objective-C methods, arguments are separated with which punctuation mark?

A) colons (:)

In the following onOptionsItemSelected() method, which id is most likely associated with starting a new session? public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.item1: new(); return true; case R.id.item2: open(); return true; case R.id.item3: close(); return true; case R.id.item4: info(); return true; default: return super.onOptionsItemSelected(item); } }

A) item1

Which of the following is correct?

A) jQuery is a JavaScript Library

Which function exists merely to call an iOS app's UIApplicationMain() function?

A) main()

Though you can write code for any of the life cycle event handlers, the most commonly used is which of the following methods?

A) onCreate()

In Android: Which of the following could be found in the file NewClass.java?

A) public NewClass() { message = "Hello World!"; }

Assume that the value of TextBox1 will be set to the value of the variable temp.

B)

How much does it cost to deploy an Android application to the Android Market?

B) $25

What is the default port number for the emulator?

B) 5554

In Swift, you can add IBAction to a function/method when its related to

B) A GUI object

What is the definition of a Web Application?

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

Which of the following is the most advanced programming language?

B) C#

What symbol is used to separate the two parts of a CSS declaration?

B) Colon (:)

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

B) Do you have a device that works with this platform?

Which of the following is NOT represented as a block?

B) Errors

What does XML stand for?

B) Extensible Markup Language

A specialty code editor is necessary to develop Web application files, like HTML, CSS, and JavaScript files.

B) False

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.

B) False

Android is open-source software, which means that any modifications a developer makes must also be released as open-source software.

B) False

App Inventor can only be used to develop lightweight apps because you don't have to write code to use it.

B) False

C#, Java, and Objective-C have automatic garbage collection enabled by default.

B) False

Core applications on the Android platform are given preference over third-party apps.

B) False

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

B) False

HTML, CSS, and JavaScript are case-sensitive languages.

B) False

If any changes are made to an application, you must close the emulator between each app run.

B) False

In Android: The Random class gives access to a floating-point number between 1 and 100.

B) False

In Java, Class instance variables must be declared at the beginning of the class definition.

B) False

In an app, the Model tier of the MVC design pattern may be just the text on the page.

B) False

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

B) False

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.

B) False

Microsoft uses the community to decide which apps should be removed, instead of using an Apple-like approval process for apps.

B) False

Services are stopped automatically and should not attempt to stop themselves.

B) False

The TimeSpan class constructor takes 4 arguments: hours, minutes, seconds, and milliseconds.

B) False

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.

B) False

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

B) False

Using blocks that fit together guarantee that your app will be error-free.

B) False

You cannot access the Windows Phone App Hub without paying for a subscription.

B) False

Which of the following is NOT a property of Content Providers?

B) Format

Which of the following is the platform language for Android?

B) Java

The block in the associated figure is an example of which type of Built-In blocks? [AND test]

B) Logic

When using the Texting component, where do you find the block to include the automatically included messageText argument?

B) My Blocks

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

B) Non-visible

(2) What is the difference between the CLR and the Dalvik virtual machines?

B) Operating systems they are used on

Which is the correct definition of the term refactoring?

B) Rewriting code to make it better without changing its behavior

Which is not a possible outcome of an app with a memory leak?

B) The app will close itself automatically when it reaches the memory limit.

Which of the following is NOT an example of a best practice?

B) Using inheritance

Testing the graphical user interface (GUI) during the early stages of development is best done using which of the following methods?

B) Using the emulator

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

B) Viewer

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

B) Web Developer

Which of the following is NOT included in the accompanying figure?

B) a UILabel

What is the text displayed by the ResultTextBlock after the execution of the following code? int a = 1; int b = 2; a = b; b = a; ResultTextBlock.Text = "a: " + a + "| b: " + b;

B) a: 2|b: 1

Android Studio: What is inherited in the following code? public class DotSmasherCanvas extends View implements OnTouchListener { int dotX, dotY, score; //Other code here }

B) class View

Which keyword is analogous to the Java package keyword, used to bundle assets for reuse?

B) namespace

Which of the following is NOT a 'start' life cycle event?

B) onStart()

What are the names of the two parts of a CSS declaration?

B) property and value

Which of the following is the correct procedure to initialize a random number generator?

B) random = new Random();

Which of the following is equivalent to score += 1?

B) score = score + 1;

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

B) x

What is the result of the following code? num x = 4 num y = 3 num i = 0 num j = 0 while i < x j = 0 while j < y print i, j j = j + 1 endfor i = i + 1 endfor

C) 0, 0 0, 1 0, 2 1, 0 1, 1 1, 2 2, 0 2, 1 2, 2 3, 0 3, 1 3, 2

What is the file extension for the code file behind every XAML node?

C) .cs

What is the extension used for JavaScript files?

C) .js

Which of the following is NOT one of the three pillars of object- oriented programming?

C) Abstraction

What happens when you select the Show Barcode option from the Package for Phone menu?

C) An image is created that shows a machine-readable URL pointing to the app.

On the iOS platform, where do life cycle events occur?

C) Application delegate

Which of the following is not provided by the Silverlight for Windows Phone plug-in?

C) Bing search support

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

C) Bytecode

How do you access help files in Xcode?

C) Click the Organizer Button at the upper right and then click

Which Android component does NOT have life cycle events?

C) Content Provider

The block in the associated figure is an example of which type of Built-In blocks?

C) Control

The block in the associated figure is an example of which type of Built-In blocks? the "if" block

C) Control

What does DLL stand for?

C) Dynamic Link Library

Which is NOT part of the application life cycle?

C) Exited

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

C) Firebug

Which of the following is not an Android Layout

C) GameLayout

Which company developed the Android platform?

C) Google

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

C) Inside the parentheses

Which of the following is NOT a part of the common development cycle for iOS apps?

C) Instantiating an object of the created UIViewController subclass

The Blocks Editor is what type of application?

C) Java Web Start

Which line in the following code feature includes a syntax error? 0 func sayHello(sender: AnyObject) { 1 data = textField.text 2 let greeting:String = "Hello, " & data 3 label.text = greeting 4 }

C) Line 2

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 }

C) Line 2

Which is the correct argument sent to the onCreateOptionsMenu method to provide your own menu behavior?

C) Menu menu

Which of the following is a platform language for iOS?

C) Objective-C

Which of the following is the LEAST common in game programming?

C) Retrieving data from a database

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

C) TextBox1.Text

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

C) Textbox1.text

Which of the following is NOT true of Web development for mobile?

C) The languages used to create mobile sites are different than their desktop equivalents.

Which answer describes the logic error present in the following code? 0 func moveButton(){ 1 let availableWidth:Int = self.view.bounds.size.width 2 let availableHeight:Int = self.view.bounds.size.height 3 let btnX:Int = random() % (int)(availabeHeight - 60) 4 let btnY:Int = random() % (int)(availabeHeight - 60) 5 Button.frame = CGRect(x: dotX, y: dotY, width: DOT_SIZE, height: DOT_SIZE) 6 }

C) The value of btnX is set to the incorrect value.

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

C) Title

Which term is used when an application on Windows Phone 7 is deactivated because it no longer has the focus?

C) Tombstoned

Which platform has no 'running' life cycle event?

C) Windows Phone 7

Which of the following is a .NET Framework-powered development platform for creating interactive apps for the Web, desktops, and mobile devices?

C) Windows Phone SDK

Used for developing 2D and 3D games for Windows Phone 7, what does XNA stand for?

C) XNA is Not an Acronym

Which of the following is NOT included in the accompanying figure?

C) a NSString

Android Studio: What interface is included in the following code? public class DotSmasherCanvas extends View implements OnTouchListener { int dotX, dotY, score; //Other code here }

C) class OnTouchListener

A(n) ____ is a collection of assets, including header files, images, sounds and libraries for performing a certain task.

C) framework

Given the UML class diagram seen in the accompanying figure, what is/are the class's member method(s)?

C) getArea and getPerimeter

An application calls for keeping track of two numbers. The first is a counter, the second is to keep a running sum of the results of divisions. What are the most efficient selections for the data types of these two numerical variables?

C) int for the first variable, and double for the second variable

In the following onOptionsItemSelected() method, which id is most likely associated with accessing the application's help page? public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.item1: new(); return true; case R.id.item2: open(); return true; case R.id.item3: close(); return true; case R.id.item4: info(); return true; default: return super.onOptionsItemSelected(item); } }

C) item4

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

C) r

What is the correct order for the standard development process?

C) write, compile, run, debug

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

D) 1

Which of the following symbols indicates a closing HTML tag?

D) <\html>

What happens when you select the Download to this Computer the Package for Phone menu?

D) An Android package, or .apk file, is downloaded to the user's computer.

Which of the following is NOT used to create the display shown in the accompanying figure?

D) An NSTimer

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

D) An error

Based on the associated figure, what might the code blocks shown imply about the intent of the application?

D) Calculate the number of gallons from the number of ounces

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

D) Click

Which of the following frameworks/libraries should you add to an application that retrieves and displays your GPS coordinates?

D) CoreLocation.framework

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

D) Hint

Which of the following is a preferred tool for Android development?

D) IBM Eclipse

What is the name given to the code completion feature of Visual Studio 2010?

D) IntelliSense

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

D) Java Native Launch Protocol

What scripting language is jQuery written in?

D) JavaScript

In Android: How are the properties of each component such GUI components stored?

D) Key/value pairs called attributes in XML

While line in the following code does NOT include a syntax error? 0 int a = 1; 1 int b += 2; 2 a = b * a 3 b = Math.Pow(a); 4 ResultTextBlock.Text = "a: " + a + "| b: " + b;

D) Line 4

Which line in the following code does NOT include an error? 0 func foo() { 1 var a:In = 1 2 var b * 2 3 a = b a 4 b = cat(a) 5 scoreLabel.text = "a: " + a + "|b: " + b; 6 }

D) Line 5

(2) What is the difference between the CLR and the Dalvik virtual machines?

D) Location in the platform stack

In Android: Which is the correct argument sent to the onOptionsItemSelected method to make menu items useful?

D) MenuItem item

In Android: The Timer class method schedule uses which of the following units for its delay value?

D) Milliseconds

In an Objective-C method, arguments are specified by being placed within which punctuation mark?

D) None

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

D) Palette

What is the result of the following code? num x = 0 num y = 10 while x < y print y * y x = x + 1 endwhile

D) Prints 100 ten times

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

D) Properties

What library must be imported to use the DispatcherTimer class?

D) System.Windows.Threading

Which of the following is the most fully-featured IDE for Windows Phone 7 development?

D) Visual

Which of the following is the correct extension for an Storyboard file?

D) XIB

What is the text displayed by scoreLabel after the execution of the following code? 0 a = 1; 1 b = 2; 2 a = b; 3 b = a; 4 scoreLabel.text = "a: " + a + "| b: " + b;

D) a: 2|b: 2

The data-role="page"

D) is the page displayed in the browser

Which of the following is the last life cycle method called in the Activity component?

D) onDestroy()

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

D) onPause() and/or onDestroy()

Broadcast Receivers are only valid within the scope of which method?

D) onReceive()

Which of the following is NOT a life cycle method in the Activity component?

D) onResume

What keyword is used to include external packages to a C# class file?

D) using


संबंधित स्टडी सेट्स

Chapter 3: Health, Wellness, and Health Disparities

View Set

Psych Ch 16 (Personality Disorders)

View Set

COM 505 - Exam 2 (Defamation, Libel & Privacy)

View Set