0% found this document useful (0 votes)
227 views18 pages

MAD Question Paper

MAD questions
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
227 views18 pages

MAD Question Paper

MAD questions
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 18
Mavgh / April 2023 PG Examinations usN [_] 20MCA32 RV COLLEGE OF ENGINEERING” (An Attonomios Institution affiiated to VEU Belngav TIL Semester-Master of Computer Applications MODERN APPLICATION DEVELOPMENT Time: 03 Hours ‘Maximum Marks: 100 Instructions to candidates: 1. Each unit consists of two questions of 20 marks cach. 2. Answer FIVE full questions selecting one from each unit. UNIT-1 a With a neat diagram explain Android system platform architecture and its layers. b | List and explain the key building blocks of an Android application. c Write about the Android studio /DE used for developing android based mobile apps with illustrations. OR a With a neat diagram explain logical representation of an android app. b List and explain the activity lifecycle in Android application. c Write about the different layout used in developing android based mobile apps with illustratior 08 UNIT-2 a Explain the different types of intents in the android activity. 08 b With an example explain the event registration and handling process in android app. 04 c Device a program to demonstrate the passing of values between the activities in which one activity accepts the name and address and another activity displays the same. 08 OR a Explain the common listener objects used in android based event handling process. 08 b With an example explain the activity class in android app. 04 c Demonstrate fragment in android program for replacing one fragment with another fragment in a single activity. 08 UNIT-3 a Explain the most common errors which occur during debugging in android programming. 05 b Infer the steps for creating and monitoring Geo fencing in android application. 05: c | Devise a program to receive the latitude and longitude coordinates of a mobile device with proper process of permissions and capture the details. 10 OR Explain the implementation of U/ threads in android application, 6 a + 1 . b List and explain the types of testing used in android app 05 5 development. ¢ | Design an android app to accept the name as ; “V7U" and message 4% ©" RV COLLEGE OF ENGINEERING” to store in SQLite data hase with it) steps. — ~ — — UNIT-4 7a | With a neat diagram explain the service worker life eyele methods and | working. 5 b _| List and explain the different audits available in lighthouse, 0s c Design and develop a program for inventory web site with the following: i) Manifest file(with at least 10 attributes) ii) Index page with proper imports and html tags. 10 b oR 8 a ___| With a neat diagram explain the service worker architecture. 0s b | Differentiate an android based mobile app with a progressive web application. 0s c | Design and develop a program with proper code in service worker lifecycle methods to cache files and fetch during the time of offline, (files to be cached are-'pirates.htm?’, ‘/styles/j css’, ‘/styles/ pirates.ti?, ‘/images/i-love-pirates. jpg’, ‘pit 12.png’) 10 UNIT-5 9 a Illustrate with an example the architecture of caching the App shell in progressive wed app. 06 b __| Draw and explain the push notification architecture to show the steps performed. 06 @ c |Demonstrate web notifications for displaying the “welcome message” during the time of page load following to be demonstrated: i) Permission for web notification ii) Enable notification when service worker installs, 08 oR 10 a Illustrates the steps to convert the normal web app to a PWA app long with manifest. 06 b | Explain the measuring app shell performance with an example. 06 c Demonstrate push notification for displaying the “news update”: Following to be shown: i) Permission for push notification, ii) __ Sync of key and send push notification. 08 tro) SCHEME AND SOLUTION Vrogramme: MCA Course Code with Title: 20MCA32-MODERN APPLICATION DILVISLOPMENT. Q. Marks UNIT- ‘heat diogiam explain Andron form Architecture and i) i pinata | seer Cao presi [_ Cea) Geer) Greet I = : eralical explanation sh contain with the below points ‘An O8 does threo things: + Manages hardware on behalf of applications. « Provides services to ‘applications like networking, security, memory management, and so forth. « applications, time, bb | List and expinin the Key building blocks of an Andrord Applications foln: Manages execution of this is the part that allows us to run multiple applications (seemingly) almost at the same Activity: An Activity is where we put together things thatthe user can see. t's a focused thing ‘hat a user can do, Yor example, an Activity can be made to a user ean view a single email ot maybe fll ‘up a form, In Figure 5-1, inside the Activity, thers are Views and Fragments. Views are classes that draw ‘content to the screen; some examples of View object are Buttons and TextViews. A Fragment is similar {oan Activity in a way that it's alzo.a composition unit but a smaller one. Like Activities, they also hold View objects, . Services, With Services, we can run program logic behind the ecenes, without freezing the user interface. Services run inthe background; they can be very useful when your app is supposed to dawnload a fle u fiom the Web or maybe play musi. BrondeastHecelvers: With BroadcastReceivers, out app can listen to messages from other spplications or from the Android Runtime itself sample usecase for this might be if you want to display a warming b message when the battery dips to below 10%, ContentProviders: lets you write apps that can share data to other apps without exposing the 1 Lunderbellies of your apps? SQL structure. I manages access to some sort of central data repository. The details of database access are completely hidden from other app. An example ofa prebuilt application that in ContenProvide i the “Contacts” app in Android. ©, | Waite about the Android Studio IDE used Yor developing Android based mobile appa with Uartations soln: ‘ 1) Main menu bar, You can navigate Android Studio in various ways. Often, there's more thea one ‘way t0 doa tas, but the primary navigation is dane inthe main menu bar. I'you're on Linx or ‘Windows, the main menu bar sits directly atthe top of the IDE; if you're on macOS, the main ‘menu bari disconnected from the IDE (whichis how all macOS software works), 2). Navigation bar, This bar lets you navigate the project files. I's a horizontally arranged collection ‘of chevtons that resembles some sort of breadcrumb navigation, You can open your project files cither through the navigation bar ofthe Project tool window. Toolbar. This lets you do a wide range of actions (e.g, save files, run the app, open the AVD ‘manager, open the SDK manager, undo, redo actions, etc ‘Main editor window. This is the most prominent window and has the most screen real estate. ‘The editor window is where you can create and modify project files. It changes its appearance ‘depending on what you are editing. Ifyou're working on a program source fie, this window will show just the source files. When you are editing layout files, you may see either the raw XML file ora visual rendering ofthe layout. '5)_ Project too! window. This window shows the contents ofthe project folders; you'll be abe to see ‘and Launch all your project assets (source code, XML files, graphics, etc.) from here, 6). Tool window bar. The too! window ber runs along the perimeter of the IDE window. It contains the individual buttons you need to activate specific tool windows, for example, TODO, Logeat, Project window, Connected Devices, and so on. * Show/hide tool window. It shows (or hides) the tool window bar. I's a toggle. Tool window. You will find tool windows on the side bottom of Android Studio workspace. ‘They're secondary windows that let you lock at the project from different perspectives. They also let you access the typical tools you need for development tasks, for example, debugging, integration with version control, looking atthe build logs, inspecting Logeat dumps, looking at ‘TODO items, and so on. Here are a couple of things you can do with the tool windows: ‘a. + You can expand or collapse them by clicking the tool's name in the tool window bar. ‘You can also drag, pin, unpin, attach, and detach the tool windows. b. + Youcan rearrange the tool windows, but if you feel you need to restore the tool ‘window to the default layout, you can do so from the main menu bar, click Window > Restore Default Layout. Also, if you want to customize the “Default Layout,” you rearrange the windows to your liking; then, from the main menu bar, click Window > Store Current Layout as Default. ‘OR 2a. With a neat diagram explain Logical representation of an Android app soln: Explanation: __ Activities, _ Services, 44327 ® for exampl Intent intent = new Intent; intent setAction(Intent ACTION_VIEW); intent.setData(Uri parse("https://apress.com")); startActivity(intent); ‘With an example explain the event registration and handling process in android app soln: Registering a listener means you tell the Android framework which method to call when the user interacts with the View object. Figure 7-2 shows an annotated code for registering a listener objec. Sgoverriae: Public vedd onClick(View view) ¢ i ‘System owesprinetn( Heuer) i jow View onctickListener OC Figure 7-2. Annotated event registration and handling Device a program to demonstrate the passing of values between the actvit ‘accepts the name and address and another activity displays the same. Sol: for example program: Design of activity and xm! file based on view: -