Content Knowledge Assessment Advanced Android Applications 2013 Test your knowledge of the Android SDK. To the best of your ability, please answer the following questions. It is okay if you are not confident in your responses. This camp is designed to improve your understanding of key concepts in computing. Please circle the letter next to the answer you think is best. If you do not know, please indicate “I don’t know.” Student Number:_________________________________________ 1. The following code is an example of: A. Field declaration for a Button object named “Button 1”. B. XML for display of a Button Object. C. Method assigning playSound01 to button01 D. Constructor for Button Object assigning the value 100dp to the fields layout_width and layout_height. E. I don’t know. 2. What is the data type of aslPics[10] in the code below? A. An image data type displaying the letter ‘k’. B. Instance of the Android R.drawable object. C. An integer corresponding to R.drawable.k D. An image data type displaying the letter ‘j’. E. I don’t know. 3. In an Android Activity Class, which method usually plays the role of the constructor? A. The SensorEventListener() method. B. The OnClickListener() method. C. The onMenuOptions() method. D. The onCreate() method. E. I don’t know. 4. The following is an example of: A. B. C. D. E. Conditional Statement. Constructor. Iteration. Index Variable. I don’t know. 5. The following layout is best constructed with: A. <RelativeLayout /> B. <TableLayout /> C. <LinearLayout /> D. <TableRow /> E. I don’t know. 6. Consider the following code: Which of the following is true? A. B. C. D. E. input is a public field within the enterText instance of EditText. enterText.getText() will return a String object. enterText is a public field. getText() is a public method of the class EditText. I don’t know. 7. The following is an example of: A. B. C. D. E. An Array of integers. An Array of sound objects. A conditional Execution. Defining a Function. I don’t know. 8. Consider the following code: What is ‘isLooping’? A. B. C. D. E. A public field of setLoopMode(). A conditional statement. A public field of the buttonLoop object. A boolean data type. I don’t know. 9. Which of the following would accomplish holding an Android App’s screen orientation in the Landscape position? A. Putting the code android:screenOrientation="landscape" in the AndroidManifest.xml file. B. Putting the code android:screenOrientation="landscape" in the strings.xml file. C. Putting the code android:screenOrientation="landscape" in the layout.xml file. D. Putting the code android:screenOrientation="landscape" in the resources.xml file. E. I don’t know. 10. Consider the following code: What purpose does this code have within an Android App? A. B. C. D. E. Declares instance and function of seekBar object. Defines v as an instance of View. Defines the Line Width for doodleView. Defines the Listener for the setLineWidthButton click action. I don’t know.