Test 3 Flashcards

1
Q

Open-source tools, like App Inventor, are free to buy and use. True / Flase

A

True

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

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

A

True

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

The first device to be considered a smartphone was the Apple iPhone. True/ False

A

False

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

The app marketplace launched with the first-generation iPhone. True/ False

A

False

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

An array in Java can have array members of different data types. True/ False

A

False

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

Smartphones have always had touchscreens. True/False

A

False

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

Which of the following is NOT a consideration for choosing a platform for your apps?
a. How large is your market?

b. Do you have a device that works with this platform?

c. What are the marketing trends for your proposed platform?

d. What programming language is used for the proposed platform?

A

b. Do you have a device that works with this platform?

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

Which of the following is the platform language for Android?
a. C#
b.Java
c. Objective-C
d. PHP

A

b.Java

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

Which of the following is the platform language for iOS?
a. C#
b. Java
c. Objective-C
d. PHP

A

c. Objective-C

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

Which company developed the iOS platform?
a. Apple c. Google
b. Facebook d. Microsoft

A

a.apple

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

Which now dissolved company led the smartphone industry before the advent of the iPhone?
a. Compaq c. Palm
b. Gateway d. BellSouth

A

c. Palm

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

What is the correct order for the standard development process of an app?
a. write, debug, compile, run
c. write, compile, run, debug
b. write, compile, debug, run
d. write, debug, run, compile

A

c. write, compile, run, debug

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

Which company developed the andriod platform?
a. Apple c. Google
b. Facebook d. Microsoft

A

C.Google

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

How much RAM did the first smartphone offer?
a. 1 MB c. 256 MB
b. 128 MB d. 512 MB

A

b. 128 MB

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

In the pseudocode statement num x = 1, which part is a literal?
a. num x c. =
b. x d. num

A

d. num

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

What is the output of the following pseudocode:

if 3 < 4 then
print “Hello”
else
print “Goodbye”
endif

a. The string, “Hello” c. Nothing
b. The string, “Goodbye” d. an error

A

a. The string, “Hello”

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

What is the proper placement of parameters in a function or method definition?
a. Before the function name
b. After the function name but before the parentheses
c. Inside the parentheses
d. After the parentheses

A

c. Inside the parentheses

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q
  1. In an array of length n, what is the index of the last element?
    a. n - 1 c. n + 1
    b. n d. n + 2
A

a. n - 1

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

What is the output of running the following code:
string name = “Mark”
name[3] = ‘c’
print name
a. Mark c. Nothing
b. Mack d. An error

A

b. Mack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q
  1. 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

A

0, 0
0, 1
0, 2
1, 0
1, 1
1, 2
2, 0
2, 1
2, 2
3, 0
3, 1
3, 2

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

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. True/False

A

True

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

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

A

False

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

What is the result of the following code:
num x = 0
num y = 10

while x < y
print y * y
x = x + 1
endwhile
a. Prints ‘0’ ten times
b. Prints the square of every number 0 through 9 (i.e. 0, 1, 4, 9, 16, etc.)
c. Prints 100
d. Prints 100 ten times

A

d. Prints 100 ten times

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

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).
b. None; it does not run.
c. Prints a specific set of numbers.
d. Prints a random set of numbers.

A

c. Prints a specific set of numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q
  1. 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. True/ False
A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q
  1. For the most part, the OS calls the code you supply for each life cycle event automatically. True/False
A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q
  1. What is the output of running the following code:
    string name = “Mark”
    print name[2]
    a. Mark c. r
    b. a d. An error
A

c. r

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q
  1. 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/ False
A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q
  1. In the Android app life cycle, a main( ) method is executed each time your app is started. True / False
A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q
  1. Content providers are the only way to share data between apps. True/False
A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q
  1. The iOS life cycle is simpler than Android’s because an iOS app has a single entry point. True/False
A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q
  1. Java programs are compiled into which format to be run on the virtual machine?
    a. ASCII c. Bytecode
    b. Binary d. Dvorak
A

c. Bytecode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q
  1. Which is NOT part of the application life cycle?
    a. Started c. Exited
    b. Being Destroyed d. Running
A

c. Exited

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q
  1. Which of the following is NOT a life cycle method in the Activity component?
    a. onInit( ) c. onRestart( )
    b. onCreate( ) d. onResume( )
A

a. onInit( )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q
  1. Which of the following is the last life cycle method called in the Activity component?
    a. onStart( ) c. onStop( )
    b. onPause( ) d. onDestroy( )
A

onDestroy( )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q
  1. 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

a. onCreate( )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q
  1. When an application interacts with data, which methods should be used?
    a. onStart( ) and/or onPause( )
    c. onStart( ) and onDestroy( )
    b. onPause( ) and/or onResume( )
    d. onPause( ) and/or onDestroy( )
A

d. onPause( ) and/or onDestroy( )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q
  1. 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
A

b. Format output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q
  1. Android is open-source software, which means that any modifications a developer makes must also be released as open-source software. True/ False
A

False

40
Q
  1. All software of the Android architecture is free. True/ False
A

False

41
Q
  1. App Inventor can only be used to develop lightweight apps because you don’t have to write code to use it. True / False
A

True

42
Q
  1. 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. True/ False
A

False

43
Q
  1. When using the App Inventor, app functionality is primarily developed within the Block Editor. True/False
A

True

44
Q
  1. When using the App Inventor, using blocks that fit together guarantees that your app will be error-free. True/False
A

False

45
Q
  1. When retrieving values from components, App Inventor creates code that uses the
    getter method to access the value.
    True/False
A

True

46
Q
  1. 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. True/ False
A

True

47
Q
  1. For security, Android applications are not able to access the existing messaging function of the phone. True/False
A

False

48
Q
  1. To keep an Android application running, you must keep the app’s screen visible. True/ False
A

False

49
Q
  1. App Inventor apps are not allowed on the Android Market. True/ False
A

True

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

c. On physical devices

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

b. Using the emulator

52
Q
  1. Which section of the App Inventor workspace lists components available for use in your app in expandable groups?
    a. Toolbar c. Components
    b. Viewer d. Palette
A

d. Palette

53
Q
  1. Which section of the App Inventor workspace represents an Android phone’s screen?
    a. Toolbar c. Components
    b. Viewer d. Palette
A

b. Viewer

54
Q
  1. Which section of the App Inventor workspace allows the developer to modify certain aspects of components?
    a. Toolbar c. Components
    b. Media d. Properties
A

d. Properties

55
Q
  1. What property is used to set the text that will display in an app’s top information bar?
    a. Label c. Title
    b. Text d. TopText
A

c. Title

56
Q
  1. What property is used to set the text displayed temporarily in a text box before a user enters their own information?
    a. Label c. HoverText
    b. Tip d. Hint
A

d. Hint

57
Q
  1. When using the App Inventor, the Blocks Editor is what type of application?
    a. JavaScript c. Java Web Start
    b. Java d. Eclipse Add-on
A

c. Java Web Start

58
Q
  1. What happens to the grayed-out, temporary text displayed in a text box when a user begins to enter information?
    a. It disappears.
    b. It is highlighted on click.
    c. It stays until manually deleted.
    d. It is replaced one character at a time while the
A

a. It disappears.

59
Q
  1. What does JNLP (the type of file a Java Web Start application is stored in) stand for?
    a. Java New Language Processor
    b. Java NAT Layers Protocol
    c. Java Native Language Processor
    d. Java Network Launch Protocol
A

d. Java Network Launch Protocol

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

b. Errors

61
Q
  1. For the MVC design pattern, what does MVC stand for?
    a. Model-View-Controller c. Modulate-Validate-Code
    b. Main-Vice-Controller d. Main-View-Code
A

a. Model-View-Controller

62
Q
  1. Which keyword is used by App Inventor to combine string literals?
    a. Concatenate c. Combine
    b. Concat d. Join
A

d. Join

63
Q
  1. What is the correct way to retrieve the value from a component named TextBox1?
    a. TextBox1.Value
    b. TextBox1.getValue()
    c. TextBox1.Text
    d.TextBox1.getText()
A

c. TextBox1.Text

64
Q
  1. 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.

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

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

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

A

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

65
Q
  1. Tapping the screen registers what event in the Android SDK and App Inventor?
    a. Tap c. Touch
    b. Press d. Click
A

d. Click

66
Q
  1. What is the name for components that are not displayed to the user?
    a. Hidden c. Spooled
    b. Non-visible d. Background
A

b. Non-visible

67
Q
  1. When using the App Inventor and accessing the Texting component, where do you find the block to include the automatically included messageText argument?
    a. Built-in c. Advanced
    b. My Blocks d. Components
A

b. My Blocks

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

a. Built-in c. Advanced
b. My Blocks d. Components

A

a. Built-in

69
Q
  1. What is the default port number for the emulator?
    a. 80 c. 84
    b. 5554 d. 5556
A

b. 5554

70
Q
  1. Which term describes installing an app on a device or emulator?
    a. Install c. Deploy
    b. Place d. Implant
A

c. Deploy

71
Q
  1. When using the App Inventor, what happens when you select the Download to this Computer option from the Package for Phone menu?

a. The Java source files are downloaded to the user’s computer.

b. The generated binary files are downloaded to the user’s computer.

c. A Java archive file, or .jar file, is downloaded to the user’s computer.

d. An Android package, or .apk file, is downloaded to the user’s computer.

A

d. An Android package, or .apk file, is downloaded to the user’s computer.

72
Q
  1. When using the App Inventor, what occurs when the Show Barcode option is selected from the Package for Phone menu?
    a. A label is created and printed.

b. The app is converted to JavaScript.

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

d. Construction instructions for a UPC code are created in XML format.

A

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

73
Q
  1. Assuming the value of TextBox1 will be set to the value of the variable temp. Which of the following sets of code will NOT set Label1.Text to the cube of the Text value of TextBox1?
A
74
Q
  1. Based on the following image, what might the code blocks shown imply about the intent of the application?
    a. Count dozens of eggs
    b. Determine the number of hours from the number of minutes
    c. Calculate what power of two the number is
    d. Calculate the number of gallons from the number of ounces
A

d. Calculate the number of gallons from the number of ounces

75
Q
  1. The block in the following image is an example of which type of Built-In blocks?
    a. Rational c. Control
    b. Logic d. None of the above
A

c. Control

76
Q
  1. The block in the following image is an example of which type of Built-In blocks?
    a. Join c. Control
    b. Logic d. None of the above.
A

b. Logic

77
Q
  1. 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.
A

application framework

78
Q
  1. The _________________ component of the App Inventor is used to upload custom audio or video.
A

media pane

79
Q
  1. The ____________________ ____________ component of the App Inventor allows you to view, rename, or delete the components of your app.
A

components pane

80
Q
  1. 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/False
A

True

81
Q
  1. You should test apps on as many emulators as possible. True/ False
A

True

82
Q
  1. What is the definition of a Web Application?
    a. A single resource file on a publicly accessible server that provides some sort
    of functionality.
    b. A collection of resources on a publicly accessible server that provides some
    sort of functionality.
    c. A single resource file on a private server that provides some sort of functionality.
    d. A collection of resources on a private server that provides some sort of functionality.
A

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

83
Q
  1. JavaScript does not support class-based inheritance. True /False
A

True

84
Q
  1. JavaScript does not support prototype-based inheritance. True/False
A

False

85
Q
  1. 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.
A

c. Languages used to create mobile sites are different than their desktop equivalents.

86
Q
  1. How do you implement a separate stylesheet for mobile devices?

a. In the HTML declaration, add media=”handheld” to indicate that a specific
style sheet should be used for handheld or small devices.

b. In the HTML declaration, add media=”mobile” to indicate that a specific style
sheet should be used for handheld or small devices.

c. In the CSS stylesheet rules, add media=”handheld” to indicate that a specific
style sheet should be used for handheld or small devices.

d. In the CSS stylesheet rules, add media=”mobile” to indicate that a specific
style sheet should be used for handheld or small devices.

A

a. In the HTML declaration, add media=”handheld” to indicate that a specific style sheet should be used for handheld or small devices.

87
Q
  1. Which of the following is NOT a server-side technology?
    a. PHP c. JavaScript
    b. JSP d. ASP
A

c. JavaScript

88
Q
  1. What does FTP stand for?
    a. File Transmission Process
    c. Fast Transmission Protocol
    b. Fast Transfer Process
    d. File Transfer Protocol
A

d. File Transfer Protocol

89
Q
  1. 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 }
    a. Line 0 c. Line 2
    b. Line 1 d. No line contains an error
A

c. Line 2

90
Q
  1. What is the name of the JavaScript debugger add-on for Firefox?
    a. Webkit c. Firebug
    b. Web Developer d. Filezilla
A

c. Firebug

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

a. Webkit c. Firebug
b. Web Developer d. Filezilla

A

b. Web Developer

92
Q
  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 }
    a. Line 1 c. Line 3
    b. Line 2 d. Line 4
A

a. Line 1

93
Q
  1. iOS and Android devices use which browser engine?
    a. Rootkit
    b. Konqkit
    c. Webkit
    d. JSKit
A

c. Webkit

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

b. Objective-C

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

a. Compile

96
Q
  1. 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.
A

d. It’s an object-based language and a derivative of the C language.