0% found this document useful (0 votes)
7 views11 pages

Set 1

Uploaded by

PRADEEP KUMAR S
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)
7 views11 pages

Set 1

Uploaded by

PRADEEP KUMAR S
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/ 11

3 Students can attempt answering any two out of three subsections in each secion

Q No. Questions

SECTION A COURSE OUTCOME 1 MAXIMUM. 20 MARKS


A1 Consider the diagram for loading data in the app and also give the permission to the different type of
operations like read, edit, customized the features of app by the users

Gtart

Read
failed succeeded
Attempt to read from
network data source

Update the local data


Should try again? SOurce
Yes

No Done

Fig. A1.1 Data implementation process


() Complete the workflow of the app permission to the user
aeoe e d

Fig. A1.2 App workflow


(5 Marks-(uC 21)
Identity the name of the permission type given below:
Accessing the input setting alarms
Accessing the camera, contacts, location, sms& storage
System alert window, Write setting
(3 Marks-[UIC 1)
() Complete thecode to get the camera permission.
cuser-permission android: name = (2 Marks -ApiC, 2)
A2 The android manifest file is a critical component of android app development It serves as a blueprint
that defines various aspects of the app behavior, requirement and interactions with the android
operating system and other application L
Match the following

Element (A) Component (B) Uses (C)


1.Manifest 1. Activity, receiver, Recelver name and intent
fiter
service 2. Service narne's and
2. Service 2 Content provider
3. Root intents of the
3.Receiver
respond component
4 Broad cast receiver Package name, version
4 Provider
name &code
SIntent-fiter 5. Service 5 Providersts name authorities
r attributes
Table. A21 Android Manifest components (5 Marks - (UC, 21
Complete the structure of the android manifest fle given below
Cmanifest
cappication
<activity Androidt name
<lactvtya
3 Marks -JAp/P 2)
yes or no and
&posable to update he android manilest ie ater pubishing the app?State
2MakaIIAnC 2)

The simplest example ofa mutlve appicabon tion A ubit


A3 oeonfgure the appication or to
p h h e pria The Stpcks application that ships with iPhone s a
Ooodexample If you click the itie icon in the lower-right corne, the view fips over to let you configure
the ist of stocks fracked by the applcation
Page 2 of 1
Fig. A3.1 Example for Multi view application control to
ldentily the name of the controler that keeps track of how deep you go and gvey
let you make your way back to the previous view and find the positon or ne arks1C 21
Sketch e output of the different views of the mobile for the following conditiona blue view with a
When you first launch the View Switcher application, you will see
button and a toolbar with its own button.
the blue view flips over to reveal the yellow
2. When you press the Switch View button,
View (4 Marks -[Ap/C, 2)

() ldentify the name of the property used in font style


provide automatic spelling assistance
Controls if the field should automatically
Controls if the field should capitalize the first letter of entered text
Configures the field to accept only certain digits
Controls if the field is for single-line input or multiple-line input
4 Marks -[UIC, 2)
COURSE OUTCOME 2 MAXIMUM: 20 MARKS
SECTION B
company. This company develops the app for ganes
Lalith is an employee of an app development
consists of the following steps in developing the car game
app for
Consider the lifecycle diagram which
children
ACTIVITY
LAUNCHED

ACTIVITY KILLED ACTIVITY


RUNNING

ACTVITY
SHUTDOWN

Fig. B1.1 Lifecycle of Android

Page 3 of 11
() ldentity the name of the four states of Android lifecycle events
Process Name of the event
The activity started by the user and running
foreground
started
d yby ue User, s running. ?
or something
is overlaying part of the screen
The activity started by the user, is running
but is hidden by other activities that have
been launched or switched
Either the activity was never started
Table. B1.1 Events of Android Lifecyle
(4 Marks-[Uc 2)
() llustratethe three situations of On Create () method linthe Activity sub classes
1. Activity started.
Activity running.
3. Activity based on resources
(6 Marks -[UC, 2)
82 Consider the diagram for fiow of intents in Androld systern. This Android system contains wo activity.
which contains Activity A and Activity B. Activity Astart the process when Activity Bis ready to start
the process

ntent

tartActivity) onCate

Actiity A Activity B

Fig. B2.1 Flow of Intents in Android


Choose the correct must
statements to identify whether the given activity is eligibilefor intents
1. The activity support the stated MIME type
2. There are more action and more components to the context with Android intents
3. The activity must support all of the categories naned in the intent
4. The activity must support the specified action.
5. A Bundle of other information you want to pass along to the receiver with the
6. Android would know to find and open an activity capable of viewing that resource.
(3 Marks -[uIC 2)
sctivity android:nameTourViewActivity'>
)
cintent-filter
<action android names"android,intent.action. VIEW >
<category android namew"android. intent. category.DEFAULT
<data androidmimeType="'vnd.android.cursor. itemvnd.commonsware tour >
intent-filter

Conslder the tourintent.


app coding gven above and identity the location of the intent is launched and
the activity of the
(4 Marks -Ap/C, 2)
if you get intent Xand the database hasY, then launch activity M, if the database does not have
a Y, then launch activity N, Consider these situations and give the name and method of the
interface to implement the intent in Android.
(3 Marks- (ApP. 2])
B3 Scenario 1: want to spawn an activity to collect authentication information for some web service you
Supposeyou
are connecting tomaybe you need to authenticate with Open iD (htp//openid.net) in order to use a
service (http://oauth.net).
Scenario2 selects to view an
On the other hand, imagine an e-mail application In Androld. When theto user
attachment, neither you nor the user necessarily, expect the main activity know when the User has
finished viewing that attachment
0)Consider the hwo scenarios and justify the answer with reason
Scenario 1 is child activity
Scenario2 is peer activity
(0) Choose the activity to (4 Marks -(UC, 2
onActhe mple call through the ntent
sut)
setResult)
startActivity)
actionpick()
startActivityForResult()
HelpActivity
(H) Sketch the output for the given process (2 Marks-[UC, 21
The LaunchDemo sample application, with alocation filed
The map launched by LaunchDemo, showing the Lincoln Memorial in Washington DC
(4 Marks-Ap/C 21)
SECTIONC COURSE OUTCOME MAXIMUM: 20 MARKS
C1 The ASP NET Web API is an extensible framework for building HTTP based services
accessed in different platforms such as that can be
mobile
application with the mobile application through web API. etc. consider the beiow diagram for web

We A y n
Agcstio

Fig. C1.1 Web API


ldentify the HTTP status code for the client request
Client request HTTP code
1. Request was successtul and the response
includes the request data
2. Request was successful and the server has
created new resource
3. The server cannot find the resource or end point
4. The server encountered an unexpected issue
The server is not ready to handie the request
Table. C1.1 HTTP status
(5 Marks-[UC 2)
Complete the table with respect to REST and SOAP APL.
SOAP REST
SOAP stands for REST stands for
R
SOADAML Dased protocnl REST IS an
enforces message format REST enforce message as XML or JSON
4. SOAP performance is low REST Derformance is
Table, C1.2SOAP and REST API
(5 Marks -uUC, 2)
c2 Consider the simple WI- Fi networks This exanple connects to a W-Fi sccess poirt with WEP
encryption, glven an SSID and the password

Internet

Prry Sere

UAge
Bedret tvw
Fig. C2.1
Wi-FIMana
Aterthe sCan,
activates a se Exampiono the Start scan 0 method
Wi-FiManager calls the SCAN RESULTS AVAILABLE_
ACTION ntent ldentify
the methods after executing the below statenents
Android. Permission. ACCESS_WIFI_STATE IS hecessary or c a n WLEIMar
Android Permission CHANGE_WIF_STATE B
neessayMarks -Ap/C. 21)
(0) Accerlometer is a device, which used for adjusting the sensitivity of threshold value. This device
has two possible outputs that is the threshold value is static or not By using this, choose the
threshold value and method for adapting environment.
On sensor
1or 0, On Sensor)
1 and. 0 On view)
(2 Marks-[UIC, 2)
public booleanConnectToNetworkWPA(String networkSSID, String password)
WifiConfigurationconf =new WifiConfiguration(0:
cont SSiID"+ networkSSID 1
conf.preSharedKey=password 1

Consider the above code and predict whether the output of network and password are valid and
invalid
(4 Marks -[An/C, 2)
(w)Choose the different types of sensors
Motion Sensors
Personal Sensors
Environmental Sensor
V Valuable sensors
Position Sensors
(2 Marks-[UIC, 2)
C3 Multthreading is a fundamental aspect of computer programming and it increases the logical
complexity of the code Dart using muitithreading functionality for synchronization problems does not
share memory. Therefore, the data is not lsolated. In the asynchronous problems, the coding part too
easy comparedto the testing process of Dart in Java or C#
) Identify the name of thefestng process given below
Testing name
Kind af tests made on smail pleces of Dart code such as
classes or functions
Kind of tests made on Flutter widgets
Kind of tests in which different parts of the code are
eombined and tested
togeehe.C31 Testing (3 Marks- [UIC, 21)

Page 6 ofi1
The official Flutter plugin for both Android Studio and VSCode
supDOrts unit festing s0 that yoU
can run tests in a more frendly way. Unit testing in Androidis given below

Go on Run >Edit Contigurations


Click on the + button on the left and select "Dart Test
(or"Flutter Tes).
Give it a meaningtul description and be sure that in Test scope the All in file opionis
Seected
e test file we have iust create
llustrate the process of unit testino in WSCck OR
(4 Marks-[UIC, 2)
(i)Parse the different error that can be written n the try catch block of exception using thrcoW
command.
(3 Marks-(UG, 2)
SECTION D COURSE OUTCOME 4 MAXIMUM: 20 MARKS
Consider the scenario for InternetWeather sarnple project This implements an activity that retrieves
weather data for your current location from the National Weather Service. Note that the weather report
That data is converted into an HTML Caoe
which is poured intoaA ne nted States
OnResume) method is used to search the current location. if the user informed, we are now in
the current location and when we move a signiicant distance (10 kilometers), ldentfy the name
of the method used by National weather service, when a location is available either at the start
or based on movement
3 Marks- (UIC, 2])
public booleanConnectToNetworkWEP(String networkSSID, String password)
try
WifiConfigurationcont= new WifiConfiguration():
ContssiEnenifManaoer =(VwifManager)
this getApplication Context) getSystemService( Context WIFI SERVICE),
intnetworkld = wifilManager. addNetwork(conf):
if (networkid -1X
conf. wepKeys[0] = password,
networkld =wifiManager.addNetwork(conf)

break

return true:
Jcatch (Exception ex)
System.out printin(Arrays. toString(ex.getStackTrace();:
return false;

Complete the code for the Wi -Fl connected status.


(4 Marks-[ApiC, 2)
()Choose the correct XML parsers to accept the response in flutter.
W2c DOM parser
HTML
XML
XML pul parser
V. JSON
SAX parser
(3 Marks-[UIC, 2)
D2 Consider the scenario for creating your own libraries for android applications. Create a new library file
in Jit pack for new library package
3

Fig. D31lmpiementaea of content provide


I0ldentity the three parameters of content provider constant alvern below
ConstantsCursoramanagedQuery(Provider.Constants CONTENT URI,PROJECTION, nul, null
ldentity whether the below parameters of simple cursor adapter are valid or 2 Marks-(U/C, 2)
not
Simple cursor adapter Valid Invalid
Th
eruontext) creating the adapter, in this
2 The dent1fler for a layout to be used for
rendering the list
entries
ecursor (constants Cursor)
configurina the le he cursor and use for
5 The corresponding ldentifiers of Text View widgets in the list
entry

6ayouSimnle cursor adapter compconems


able Simple
(6 Marks -[UIC, 2)
() llustrate the process of inserting the data in content provider by foliowing the options given
below.
Insert()
bulk Insert()
(2 Marks-[U/C 2)
SECTION E COURSE OUTCOMES MAXIMUM 20 MARKS
The Flutter packages are mostiy writen in C++ and it is aways packaged in the binary produced by
the futter buid tool. It is a portable runtime for hosting Flutter application, which includes core libraries
or newoKlO, tie, animatons and graphics. The engine of the Flutter is exposed to the developer via
(0) Rearrange the steps in the communicatlon flowof Flutter in Dart
1 One ar more platform-specific APis are called, using the native programming language
Response is sent back to the client (Flutter) which processes the result
RCeiyed
Futter sencis a nessaoe tothei0S or Andtoid oart of the apo using amethodchannet
(4 Marks-[UIC, 2)
Consider the simple function of Dart code given below.
Ypeoetsum_ch PFintsz Function(FFLInt32 a, FFLInt32 b);
Rewrite C+ code for the above dart code.
3Marks-(uIC, 21)
(it Considerthe belowcoding and identity the changes and effects in Flutter
Widget build(BuildContext context) ( Widget build(BuildContext context)
return Container return Containert
decoration BoxDecoration(), decoration: BoxDecoration(),.
child SomeText( child SomeText(
text "Hello" text "Hello world"

ckaos
E2 Creatinga single library paCKage ot e o fi and consistenoy with other
people's work Consider the example of library package of an app

Page 9ofi1
E21 Andrgid Sbra
ldernty the heart of Androit pacikage ne it ther ties frumth gvenFyE21
MatuS.I
Cansder oionm
port hecoding br ibrary tunctons in e package
pot soe
Rearte he above cooe usng impot stateets as glvenbelow
imootet

Consioer the coding for ibrary tunctions nthe package


epot seoiooem

Modity the ghven codingto Dart package with no Fter deperdencen To m


auny w
Consider the diagram for hutr county it you want o get volved in he comunty,
mions of developer around h onine courses and stay in touch wth many
lers a Discord. Twiter or Reddt

FIútièr:
Gmmynit÷
FigB4Rutter community
name for the ncbons gven bew
dertity the package
Flutter functions
Package name

L1 Oat or Dart and Fute


Natve way to conmunicate wh Web
n tor scrolable con
6 Schede ckground tasks on
and o5 Tabie ELIFutter hunctions and packages
(5 Marks-lUG
in futter as given below
(Consider the Code for Creating a new prpiect
Butorchannal dev
dter confg enabie-macos desaog
5lutter contio dodektop
5 futter co
Page 10 of 11
the ascending order of the 0S to develop the futter app from the coding
(0 Marks-[UC 21
Choose
to support the Fitter project running from the root diectory?7 if yes,
Is tpossbie for desktop 0S
justity wth reason 2Marks-UC 21
*End of Question Paper

Approved By
Verified By

You might also like