MAD Mobile Application development MIDTERM part 2
What does DOM stand for?
Document Object Model
Which of the following is NOT a derivative of C?
JavaScript
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 }
Line 2
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 }
Line 1
How is a random number generated in JavaScript?
Math.random()
If the second argument to a call of setTimeout is 1000, how long will the code wait to execute the instructions given by the first argument?
1 second
The C programming language is considered what type of language?
Procedural
Which of the following is a correct definition for a Rectangle class in Java?
public class Rectangle {
double length;
double width;
public double getArea() {
return length * width;
}
public double getPerimeter() {
return 2 * (length+width);
}
}
Which of the following is the best example of encapsulation?
A Rectangle object displaying its own data onscreen.
Given the inheritance tree in the accompanying figure, which is a list of all subclasses?
UnpoweredVehicle, PoweredVehicle, Bicycle, Skateboard, Motorcycle, Car
The following HTML code is most likely in which tier of the Model-View-Controller design pattern?
View
In the following code, how many Rectangle objects are instantiated?Rectangle rect1 = new Rectangle();
rect1.length = 4.0;
rect1.width = 2.0;
rect1 = new Rectangle(2.0, 1.0);
2
What term is used to identify when an object hands off some functionality to another object?
Delegate
The Agile methodology is a kind of sequential, stage-based approach, which became
True or false?
False
Testing occurs at the end of the agile life cycle.
True or false?
False
An ______________ approach plans on learning from feedback on
the deliveries and sets aside time to use this feedback to
make improvements.
Iterative
During an agile project, planning occurs at which of the following levels.
All of the Above
(apprently)
Testing the graphical user interface (GUI) during the early stages of development is best done using which of the following methods?
Using the emulator
An app that is close to being completed is best tested using which of the following methods?
On physical devices
Which section of the App Inventor workspace lists components available for use in your app in expandable groups?
Palette
What property is used to set the text that will display in an app's top information bar?
Title
What happens to the grayed-out, temporary text displayed in a text box when a user begins to enter information?
It disappears
The Blocks Editor is what type of application?
Java Web Start
Which of the following is NOT represented as a block?
Errors
What is the correct way to retrieve the value from a component namedTextBox1?
TextBox1.Text
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 name for components that are not displayed to the user?
Non-visible
To add a string literal block to an app, on which tab do you find the Textblock?
Built-in
What is the default port number for the emulator?
5554
Which term describes installing an app on a device or emulator?
Deploy
What happens when you select the Show Barcode option from thePackage for Phone menu?
An image is created that shows a machine-readable URL pointing to the app.
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.
The block in the associated figure is an example of which type of Built-In blocks?
Control
To deal with the many business, organization, and technical complexities the development organization faces, the disciplined agile delivery process needs to adapt, or scale.
True or False?
True
The Unified Process (UP) divides the project into iterations focused on delivering
incremental value to stakeholders in a unpredictable manner.
True or False?
False
This practice involves high-level architectural modeling to identify a viable
technical strategy for your solution.
Architecture envisioning
This practice helps define written information for your deliverables throughout the life cycle in parallel to the creation of the rest of the solution.
Documentation
Which of the following Agile models has its roots in manufacturing?
Lean Programming (JIT)