Professional Documents
Culture Documents
Question # 01. Tick/Encircle most appropriate option given against each statement 12 Points
SECTION - I
I. Which android system component exposes hardware capabilities to programmers
A. HAL B. Android Runtime C. Linux Kernel D. Java API
II. ___________ management is not supported by JAVA API
A. Notification B. Activity C. Activity Lifecycle D. Content providers
III. Each app runs in its own process with its own instance of the _________________
A. Java API B. C/C++ library C. Android Runtime D. Fragment
IV. ___________ is an interface to global information about an application environment
A. Context B. Java API C. Fragment D. Service
V. The base class for layouts and view containers is
A. Layout B. ViewGroup C. View D. BaseView
VI. You can use _______ and ________ HTML tags for formatting in text views
A. All HTML tags B. <b>, <i> C. All except <ul> D. <b>, <i>, <u>, <a>
VII. Which of the following is not a valid activity state?
A. Created B. Started C. Resumed D. Invisible
VIII. ________ is called after activity has been stopped, immediately before it is started again
A. onRestart() B. onStop() C. onResume() D. onCreate()
IX. _________ is a UI mode that lets you replace parts of the normal UI interactions temporarily
A. ActionMode B. Action Call back C. Action Layout D. Linear Layout
Suppose, you have a ‘aed.jpg’ image file stored in SD card. The correct way to set this image file
X. data in an intent i is
A. i.setData( B. i.Data(
Uri.fromFile(new File("/sdcard/aed.jpg"))); Uri.fromFile(new File("/sdcard/aed.jpg")));
C. i.setData( D. i.setData(
Uri(new File("/sdcard/aed.jpg"))); Uri.fromFile(new File("aed.jpg")));
XI. An activity A sends data to B in the form of Extras, How can we get the data sent by A in the B
A. Extras extras = intent.getExtras(); B. Bundle bundle = intent.getExtras();
C. Bundle bundle = intent.getExtra(); D. Extras extra = intent.getExtra();
Page 2 of 2
National Textile University, Faisalabad
Mid Exam: Fall-2017 (Subjective)
Name: ___________________________________ Registration No.: ____________
Course Title: Mobile Application Development Course Code: CSE-4075
Class: BSCS Semester: 7th
Date: 23/11/2017 Marks: 18
Time: 65 Minutes Department: Computer Science
NOTE: • Attempt all questions. Each question should be attempted continuously on the answer sheet.
• Attempt all the questions on answer sheet. Do not write anything on question paper other than name
and roll no.
• Use last page of your answer sheet for rough work.
• The paper is sufficiently self-explanatory, queries for sake of queries are strongly discouraged to ask.
SECTION I
Question # 02. Briefly answer the below given questions 04(2*2) Points
i. Android System is based upon a stack with 5 fundamental layers/blocks. Name each layer,
and explain the functionality of each layer. Draw figures if necessary.
ii. What is Recycler View. With the help of examples describe the situation and benefits
according to situation to use a Recycler View.
SECTION II
Layout of MainActivity
Page 2 of 2