Information Technology Department Midterm Examination 1 Semester - S.Y. 2016-2017
The document is a midterm examination for a Wireless Mobile Computing course. It contains 38 multiple choice questions testing students' knowledge of key concepts in mobile application development including Android versions, SDK and API terminology, basic Android app components like activities, fragments and layouts. The exam instructions specify it is 90 minutes long and prohibits talking, erasing answers or looking at other students' work.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
128 views4 pages
Information Technology Department Midterm Examination 1 Semester - S.Y. 2016-2017
The document is a midterm examination for a Wireless Mobile Computing course. It contains 38 multiple choice questions testing students' knowledge of key concepts in mobile application development including Android versions, SDK and API terminology, basic Android app components like activities, fragments and layouts. The exam instructions specify it is 90 minutes long and prohibits talking, erasing answers or looking at other students' work.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4
Bulacan State University
COLLEGE OF INFORMATION AND COMMUNICATIONS TECHNOLOGY
Information Technology Department
Midterm Examination Score:
st 1 Semester – S.Y. 2016-2017 Course Code: IT363 Course Title: Wireless Mobile Computing Duration: 1½hr Date: Student No: Student Name: Course, Year & Section:
GENERAL INSTRUCTIONS: Instructor:
1) Follow the instructions carefully. Failure to do so will receive a grade of zero in midterm exam grade. 2) Write everything in non – red ink. 3) You are not allowed to leave your seat unless you are through with the exam. If you have any questions just raise your hand and the instructor or proctor will attend to you. 4) Strictly No Erasure, use the back of your paper as you scratch 5) Talking to or looking at your seatmate (and his/her station) is automatically considered as cheating which is subject to a very serious penalty as stipulated in the student handbook. 6) You have only 90 minutes to finish the exam. I. Multiple Choice. Write the answer described by each statement on the space provided before each number. _____ 1. Provides a rich application framework that allows you to build innovative apps and games for mobile devices in Java language environment. a. Android c. API b. Smartphones d. SDK _____ 2. What year does the first beta version of the SDK by Google. a. 2005 c. 2006 b. 2007 d. 2008 _____ 3. What year does the first commercial version, Android 1.0. a. 2005 c. 2006 b. 2007 d. 2008 _____ 4. API stands for? a. Android Program Intelligent c. Application Program Interface b. Android Program Interface d. Application Program Intelligent _____ 5. SDK stands for? a. Software Development Kit c. Software Design Kit b. Software Device Kit d. Software Dalvik Kit _____ 6. A view group that aligns all children in a single direction, vertically or horizontally. a. Linear Layout c. Relative Layout b. Graphical Layout d. Grid Layout _____ 7. A file format for Android application. a. .API c. APP b. APK d. PPAP _____ 8. An input control that allows the user to type. a. TextView c. EditText b. RadioButton d. Spinner _____ 9. A view group that displays child views in relative positions.
Course Code: IT 363 Page 1|4
a. Linear Layout c. Grid Layout b. Graphical Layout d. Relative Layout _____ 10. The proper way to declare a View in layout to object. a. ObjectType vName=(ObjectType)findviewbyid(r.id.ObjectId); b. ObjectType vName=(ObjectType)findViewById(r.id.ObjectId); c. ObjectType vName=(ObjectType)findviewbyid(R.id.ObjectId); d. ObjectType vName=(ObjectType)findViewById(R.id.ObjectId); _____ 11. A method to retrieve the text information associated with an Object. a. GetText() c. getText() b. Gettext() d. gettext() _____ 13. API level of kitkat? a. 18 c. 20 b. 19 d. 21 _____ 14. Default value of layout_width/height of an Views in layout. a. match parent and wrap content c. pixels b. dp and sp d. pt _____ 15. Image files like .png, .jpg, .gif or XML files are save in? a. drawable/ c. layout/ b. xml/ d. values/ _____ 16. You can save various configuration files here which will be used at run time. a. drawable/ c. layout/ b. xml/ d. values/ _____ 17. XML files that define a user interface layout are save in? a. drawable/ c. layout/ b. xml/ d. values/ _____ 18. How to change the input type of an EditText into a password? a. android:inputType=textPassword c. android:inputType=txtPassword b. android:inputType=txtPassword d. android:inputType=”textPassword” _____ 19. This is the first callback and called when the activity is first created. a. onStart() c. onCreate() b. onRestart() d. onResume() _____ 20. This callback is called when the activity restarts after stopping it. a. onStart() c. onCreate() b. onRestart() d. onResume() _____ 21. This callback is called when the activity becomes visible to the user. a. onStart() c. onCreate() b. onRestart() d. onResume() _____ 22. API level of Nougat ? a. 24-25 c. 22 b. 23-24 d. 21 _____ 23. This method will replace the text of a View with data from either a string variable or with text. a. SetText() c. setText() b. Settext() d. settext() _____ 24. How to change data type of string into int? [ int Num1=5; ]
Course Code: IT 363 Page 2|4
a. Num1.ToString0 c. Num1.ToString() b. Num1.toString d. Num1.toString() _____ 25. How to change data type of int into String? [ String Num1=5; ] a. Integer.parse(Num1); c. integer.parseInt(Num1); b. integer.parse(Num1); d. Integer.parseInt(Num1); _____ 26. Toast.makeText(param1,param2,param3); What is the first parameter of makeText? a. duration c. context b. text d. show() _____ 27. What is the second parameter of makeText? a. duration c. context b. text d. show() _____ 28. What is the third parameter of makeText? a. duration c. context b. text d. show() _____ 29. Describes the fundamental characteristics of the app and defines each of its components. a. AndroidManifest.xml c. Style.xml b. String.xml d. Dimens.xml _____ 30. This would give a default value for the CheckBox? a. android:checked=”true” c. android:checked=”@string/true” b. android:value=”true” d. android:prompt=”@value/trues” _____ 31. Which of the following is not an android version. a. Froyo c. Eclair b. Jellybean d. Choco _____ 32. What kind of listener can be used when the button is pressed? a. OnPressListener() c. OnItemClickListener() b. OnClickListener() d. OnChangeListener() _____ 33. How to display the toast in Activity? a. duration c. context b. text d. show() _____ 34. What kind of listener can be used in listview when item is clicked? a. OnItemSelectedListener() c. OnItemClickListener() b. OnClickListener() d. OnChangeListener() _____ 35. What kind of listener can be used in spinner when the value was changed? a. OnItemSelectedListener() c. OnItemClickListener() b. OnClickListener() d. OnChangeListener() _____ 36. It is suggested to modify the codes in R.java? a. Yes b. No _____ 37. This component represents a single screen with a user interface. Most of the time it is a combination of a backend control and a front end layout. a. Services c. Fragment b.MainActivity.java d. Activity _____ 38. This is the folder where all images can be found. a. drawable c. bin
Course Code: IT 363 Page 3|4
b. res d. src _____ 39. This is the folder where the .apk file can be found. a. drawable c. bin b. res d. src _____ 40. How to set a default value for the Checkbox/RadioButton? a. android:checked=”true” c. android:value=”@string/true” b. android:value=”true” d. android:prompt=”@value/true” _____ 41. In general, what programming language is required to create an android application? a. Javascript c. xml b. Java d. xmlns _____ 42. In general, what language is required to create a Layout for android application? a. Javascript c. xml b. Java d. xmlns _____ 43. Proper syntax for displaying hello in toast. a.Toast.makeText(context,”hello”,Toast.LENGTH_SHORT); b.Toast.makeText(getApplicationContext,”hello”,Toast.LENGTH_SHORT); c.Toast.makeText(context,”hello”,Toast.LENGTH_SHORT).show(); d.Toast.makeText(getApplicationContext,”hello”,Toast.LENGTH_SHORT).show(); _____ 44. This line of code limit the text length of an EditText. a. android:maxlength=”10” c. android:maxlength=10 b. android:maxLength=”10” d. android:maxLength=10 _____ 45. API version of froyo. a. 6 c. 8 b. 7 d. 9 _____ 46. How to set the size of textview? a. android:textSize=”10dip” c. android:textSize=10dip b. android:textSize=”10sp” d. android:textSize=10sp _____ 47. How to set the width of button? a. android:layout_width=”20dip” c. android:layout_width=20dip b. android:layout_width=”20dp” d. android:layout_width=20dp _____ 48. How to set the height of button? a. android:layout_height =”20dip” c. android:layout_height =20dip b. android:layout_height =”20dp” d. android:layout_height =20dp _____ 49. The proper way to instantiate a RadioButton in layout to object. a. RadioButton vName=( RadioButton)findviewbyid(r.id.ObjectId); b. RadioButton vName=( RadioButton)findViewById(r.id.ObjectId); c. RadioButton vName=( RadioButton)findviewbyid(R.id.ObjectId); d. RadioButton vName=( RadioButton)findViewById(R.id.ObjectId); _____ 50. API version of Marshmallow. a. 20 c. 22 b. 21 d. 23