0% found this document useful (0 votes)
158 views2 pages

CS-407 Mobile Application Development

This document outlines the final exam for the Mobile Application Development course at the University of Gujrat. The exam consists of 20 multiple choice questions covering topics like services, calling web services, notifications, SQLite database, storage, AsyncTask, callbacks, motion sensors, and SMS manager. Students are asked to write code examples for tasks like creating database tables, inserting and retrieving data, reading and writing files, implementing AsyncTask, using callbacks, reading sensor values, and sending SMS messages. The exam is 3.5 hours long and worth a total of 50 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
158 views2 pages

CS-407 Mobile Application Development

This document outlines the final exam for the Mobile Application Development course at the University of Gujrat. The exam consists of 20 multiple choice questions covering topics like services, calling web services, notifications, SQLite database, storage, AsyncTask, callbacks, motion sensors, and SMS manager. Students are asked to write code examples for tasks like creating database tables, inserting and retrieving data, reading and writing files, implementing AsyncTask, using callbacks, reading sensor values, and sending SMS messages. The exam is 3.5 hours long and worth a total of 50 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CS-407 Mobile Application Development

Department of Computer Science,


University of Gujrat

Haifz Hayat Campus, GT Road Campus, Muragzar Campus

Final-Term Exam (Spring 2021)

Total Marks: 50 Time Allowed: 3.5 hours

Roll No: _____________Name: __________________________________Section: _____________

SERVICES
Q No. 1. How Service and Activity are related to each other? (2)
Q No. 2. Briefly describe the life cycle of android service and its types? (3)

CALLING WEB SERVICES


Q No. 3. Explain how the REST services are different from simple HTTP request? (2)
Q No. 4. Briefly describe how android provides us way to deal with web services using REST? (3)

NOTIFICATIONS AND BROADCAST


Q No. 5. How a Notification Manager and Broadcast Receiver works under android? (2)
Q No. 6. Briefly describe each with a code example? (3)

SQLITE DATABASE :
Using last digit of your roll number select the class to implement the details activity to input data from
user.

Digit ClassName (attributes)


0 Degree(Title, Years, Type, Department )
1 Hall (Name, Width, Length, SittingCapacity)
2 Department (DeptID, Name, Type, Phone)
3 ChangeProjTitleApp(StudentID, FYPID, NewTitle, PrvTitle )
4 Slip (No, RegistrationNo, StudentName, ExamType )
5 Course (Name, PrereqCouseID, CreditHrs, Type )
6 Section (ID, Name, Year, DegreeTitle)
7 Student (Name, DOB, Mobile, CNIC)
8 Transaction (ID, Amount, DateTime, Type)
9 Registration (StudentID, RouteName, Date, IsSpecial)

Design DBHelper Class with following functionalities


Q No. 7. Add Table Create and Update functions (2)
Q No. 8. Write function to insert new values and retrieve list of values from table. (3)
Q No. 9.Write a custom adapter class to manage object-list of your class (3)
Q No. 10. Create a list of items using recycler-view and its adapter. (2)
STORAGE READ AND WRITE
Write two function to read and write your class object as an array in a file with JSON format ?
Q No. 11. Reading function (3)
Q No. 12. Write function (2)

ASYNC TASK
Q No. 13. Explain AsyncTask , its purpose and some important functions. (3)
Q No. 14. AsyncTask example Code (2)

CALL BACKS
Q No. 15. Describe the call back in Android (2)
Q No. 16. Show how they are implemented with a suitable example. (3)

MOTION SENSOR
Q No. 17. Which component of android is responsible to deal with sensors? Provide a coding example
to read the sensor values. ( Select your sensor from following table by taking mod of your roll number
with 5 )
(5)

Roll % 5 Sensor Type


0 Magnetometer
1 Light Sensor
2 Gyroscope
3 Accelerometer
4 Humidity Sensor

SMS MANAGER
Q No. 18. Write code to send a SMS to a user (Only Single Function) (2)
Q No. 19. Design an appropriate GUI for user, what type of permissions are required (XML only) (2)
Q No. 20. Explain functionality of SMSManager in comparison with implicit intent to send SMS? (1)
(only Write XML and Function that will send the SMS no need to write whole activity)

You might also like