Showing posts with label SDPD. Show all posts
Showing posts with label SDPD. Show all posts

November 01, 2018

Software Development for Portable Devices - Compre Paper Solution

QUESTION 1(10 Marks)
Q1a.Explain the following methods of ContentProvider class [5]
(Note: Full marks is awarded if methods parameters and return type is explained.)

Answer)
i.canonicalize(Uri url):
  • A canonical URI is one that can be transported across devices, backup/restore, and other contexts, and still be able to refer to the same data item. Typically this is implemented by adding query params to the URI allowing the content provider to verify that an incoming canonical URI references the same data as it was originally intended for and, if it doesn't, to find that data (if it exists) in the current environment.
  • Parameters Url: uri: the Uri to canonicalize. this value must never be null
  • Returns : URI Return the canonical representation of url, or null if canonicalization of that Uri is not supported.

June 12, 2018

Software Development for Portable Devices - MCQS



Question
Which of the following statements is true

a. IoT will not impact the health care industry
b. IoT will not impact our lives
c. IoT will not impact the manufacturing industry
d. None of the given options 

The correct answer is: None of the given options

Question 
Which of the following persons coined the term "Internet of Things" for the first time?

a. Vinton Cerf
b. Kevin Ashton 
c. Ray Tomlinson
d. Shiva Ayyadurai

The correct answer is: Kevin Ashton

Question 
In which of the following year was the term Internet of Things first coined?

a. 1997
b. 1999 
c. 2001
d. 2000

The correct answer is: 1999

Question 
GSM stands for

a. Global system for maintenance
b. Global system for memory
c. Global system for management
d. Global System for Mobile 

The correct answer is: Global System for Mobile

Question 
Which of the following is a faster version of GSM wireless service, designed to deliver data at rates up to 384 Kbps and enable the delivery of multimedia and other broadband applications to mobile phone and computer users?

a. EDGE 
b. BREW
c. ESMR
d. ETRN

The correct answer is: EDGE

Question 
During the initialization of an android app Activity, _________ might be used to set the layout resources to define the UI of your Activity.

Select one:
a. setContentView(int layoutResID)
b. addContentView(View view, ViewGroup.LayoutParams params)
c. getLayoutInflater()
d. startActivity(Intent intent)

The correct answer is: setContentView(int layoutResID)

Question 
_________ is a security protocol designed to provide a wireless LAN with a level of security and privacy comparable to what is usually expected of a wired LAN.

a. RMON
b. WEP 
c. LDAP
d. 802.11x

The correct answer is: WEP

Question
While specifying the margins we use ‘dp’ as measuring units, what is the meaning of ‘dp’ ?

Select one:
a. dots per screen
b. dots per pixel
c. density pixel
d. dots per inch

The correct answer is: density pixel

Question
What is the mechanism to move values from one screen to another
Select one:
a. Intent
b. Toast
c. Broadcast

The correct answer is: Intent

Question 
Which of the following is a language that allows the  portions of Web pages to be presented on cellular telephones and personal digital assistants (PDAs) via wireless access?

a. Both of the given options. 
b. HDML
c. Neither of the given options.
d. Wireless Markup Language

The correct answer is: Both of the given options.

Question 
By which of the following name(s) was the Internet of Things also known as earlier?

a. All of the given options 
b. Pervasive Computing
c. Ubicomp
d. Ambient Intelligence

The correct answer is: All of the given options

Question 
Bluetooth network stack, which allows a device to __________ exchange data with other Bluetooth devices.

a. Wired & Wireless
b. None of the given options
c. Wired
d. Wirelessly 

The correct answer is: Wirelessly

Question
What is the commonly used layout
Select one:
a. Linear layout
b. Constrained Layout
c. Relative Layout

d. Frame layout

The correct answer is: Linear layout

Question 
A device which detects or measures physical property is

a. thermistor
b. transducer
c. sensor 
d. transistor

The correct answer is: sensor

Question
Operating system available in Raspberry Pi 1 is?
Select one:
a. Unix.
b. Raspbian.
c. Android.

d. RaspOS.

The correct answer is: Raspbian

Question 
Which of these is not an Application Specific System

a. Handheld Oscilloscope
b. Portable ECG Machine
c. Raspberry Pi 
d. Automotive Controller

The correct answer is: Automotive Controller

Question 
Which of this is not a typical health care application?

a. Portable ECG monitor
b. Automotive diagnostics 
c. Blood pressure monitor
d. Blood glucose monitr

The correct answer is: Automotive diagnostics

Question 
Which of the following is currently the most common deployment of the IOT?

a. Home Automation Devices
b. Sensor Networks
c. Internet Connected Animals
d. Smart Metering 

The correct answer is: Smart Metering

Question 
What is the size of it?

a. All of the given options
b. Credit Card 
c. Hand Palm
d. Average Glass

The correct answer is: Credit Card

Question 
Sensors can be used in this areas

a. All of the given options 
b. Mobile Phones
c. Health Care
d. Gaming

The correct answer is: All of the given options

Question 
What are some of the major architectural differences exist between 3G and 4G?

a. The circuit switching elements are removed in 4G
b. The RNC acts as a BS in a cluster type RAN Configuration
c. All the given options 
d. A VOIP gateway used to connect to the PSTN and ISDN networks

The correct answer is: All the given options

Question 
Once installed on a device, each Android application lives in_______?

a. external memory
b. None of the given options
c. device memory
d. security sandbox 

The correct answer is: security sandbox

Question
Which permissions should not be added to Android Manifest file to access Google Maps API?
Select one:
a. Com.google.android.providers.gsf.permission.READ_GSERVICES
b. All of the mentioned options
c. Android.permission.WRITE_EXTERNAL_STORAGE
d. Android.permission.INTERNET

The correct answer is: 
Com.google.android.providers.gsf.permission.READ_GSERVICES

Question 
Which of these is not an Application Specific System

a. Automotive Controller
b. Portable ECG Machine
c. Raspberry Pi 
d. Handheld Oscilloscope

The correct answer is: Automotive Controller

Question 
This is the handling of voice, fax, and regular  messages as objects in a single mailbox that a user can access either with a regular e-mail client or by telephone.

a. UMTS
b. Short Message Service
c. unified messaging 
d. Short messaging

The correct answer is: unified messaging

Question 
This is an industry specification that describes how mobile phones, computers, and PDAs can easily interconnect with each other using a short-range wireless connection.

a. D-AMPS
b. EMI
c. Bluetooth 
d. IrDA

The correct answer is: Bluetooth

Question 
What is SoC

a. Single on Chip
b. System on Chip 
c. Semiconductor chip
d. System on multiple chips

The correct answer is: System on Chip

Question 
Developed by International Telecommunication Union (ITU), ______ is a code-division multiple access (CDMA) version of the IMT-2000 standard.

a. CDMA2000 
b. CDMA
c. WCDMA
d. CMYK

The correct answer is: CDMA2000

Question 
IoT technologies can help in smart crime detection and reducing the number of crimes.

a. True 
b. Maybe
c. False
d. May not Be

The correct answer is: True

Question 
This is a specification for a set of communication protocols to standardize the way that wireless devices can be used for Internet access.

a. VSAT
b. WAX
c. TETRA
d. WAP 

The correct answer is: WAP

Question 
The imapact of IoT technologies is only on objects

a. True
b. False 
c. Maybe
d. May not Be

The correct answer is: False

Question
In android mini-activities are also known as.
a. Activity
b. Fragments
c. Adapter 
d. None of the given options.

The correct answer is: Fragments

Question
Native Applications are developed using _____ of device.
a. None of the given options
b. Accessories
c. JDK
d. SDK 

The correct answer is: SDK

Question
What are the layouts available in android?
a. Frame Layout
b. All of above 
c. Linear Layout
d. Table Layout

The correct answer is: All of above

Question
What Eclipse plugin is requireD) to develop AndroiD) application?
a. WeB) Development Tools
b. AndroiD) Software Development Kit
c. J2EE
d. AndroiD) Development Tools 

The correct answer is: AndroiD) Development Tools

Question
Which are not the mobile OS?
a. Symbian
b. IOS
c. Android
d. Windows CE 

The correct answer is: Windows CE

Question
What resource directory qualifier do we use for creating layout-large?
a. Orientation 
b. Size
c. UI Mode
d. Ratio

The correct answer is: Ratio

Question
Which of the following is not a valiD) AndroiD) resource file name?
a. mylayout1.xml
b. my_layout.xml
c. mylayout.xml
d. myLayout.xml 

The correct answer is: myLayout.xml

Question
Below is not Mobile App Development Models
a. Waterfall
b. Agile
c. Mobile First 
d. V Model

The correct answer is: V Model

Question
The ability of two or more systems or components to exchange information anD) use it is called
a. Portability
b. Agility
c. Flexibility
d. Interoperability 

The correct answer is: Interoperability

Question
Which of these are not one of the three main components of the APK?
a. Native Libraries
b. Dalvik Executable
c. Webkit 
d. Resources

The correct answer is: Webkit

Question
Which framework is used send notification to users?
a. Activity Manger
b. Notification Manager 
c. BroadCast Receiver
d. Window Manger

The correct answer is: Notification Manager

Question
Android is
a. Multitasking
b. SingleTasking
c. Both the given options 
d. None of given options

The correct answer is: Multitasking

Question
Below is not mobile operating system
a. Windows Vista 
b. iOS
c. Android
d. Symbian OS

The correct answer is: Windows Vista

Question
which of these is not defineD) as a process state?
a. Foreground
b. Visible
c. Non-visible 
d. Background

The correct answer is: Non-visible

Question
A Layout that arranges its children in a single column or a single row.
a. Table Layout
b. Relative layout
c. None of the given options
d. Linear Layout 

The correct answer is: Linear Layout

Question
Which among the following is a compiler generateD) file anD) references all the resources in your app
a. res
b. bin
c. R.JAVA 
d. src

The correct answer is: R.JAVA

Question
OHA means
a. Open Handset Alliance 
b. Open Handphone Allocation
c. None of given options
d. Open Handphone allowance

The correct answer is: Open Handset Alliance

Question
BVS010 In which file, all string constant should be stored in android?
a. None of the given options.
b. strings.xml 
c. Bin
d. AndroidManifest.xml

The correct answer is: strings.xml

Question
Choose the  options regarding activity in android.
a. Both the given options are . 
b. Activity is a class.
c. None of the given options.
d. When you create an android application your activity (class) is, by default inherited from Activity class.

The correct answer is: Both the given options are .

Question
Virtual applications
a. runs applications on local machine
b. None of the given options
c. support offline mode
d. connect remotely to PC to access data 

The correct answer is: connect remotely to PC to access data

Question
What is DDMS in android?
a. Dalvik monitoring services
b. Device memory server
c. Dalvik memory server
d. Dalvik Debug Monitoring Services 

The correct answer is: Dalvik Debug Monitoring Services

Question
What is the full form of DDMS?
a. Direct Debug Monitoring Service
b. None of the given options.
c. Dalvik Design Monitoring Service
d. Dalvik Debug Monitoring Service 

The correct answer is: Dalvik Debug Monitoring Service

Question
Although most people’s first thought when they think of Android is Google, Android is not actually owned by Google. Who owns the Android platform?
a. Oracle Technology
b. The above statement is and Android is owned by Google
c. Open Handset Alliance 
d. Dalvik

The correct answer is: Open Handset Alliance

Question
In which file, permissions are set in Android?
a. src
b. bin
c. AndroidManifest.xml 
d. None of the given options.

The correct answer is: AndroidManifest.xml

Question
How will you reference abox control in java file, that is available in XML file and the ID is txtName.
a. EditText txtEmpName; txtEmpName=findViewById(R.id.txtName);
b. EditText txtEmpName; txtEmpName=(EditText)findViewById(txtName);
c. EditText txtEmpName; txtEmpName=(EditText)findViewById(R.id.txtName); 
d. None of the given options.

The correct answer is: EditText txtEmpName; txtEmpName=(EditText)findViewById(R.id.txtName);

Question
Which among the following doesn’t have a visual user interface?
a. Activity
b. Service 
c. Application
d. Mobile app

The correct answer is: Service

Question
Android is licensed under which open source licensing license?
a. OSS
b. Gnu’s GPL
c. Apache/MIT 
d. Sourceforge

The correct answer is: Apache/MIT

Question
What are storage options available in android?
a. ContentProvider
b. SharedPreferences
c. All of the given options. 
d. SQLiteDatabase

The correct answer is: All of the given options.

Question
Android is open source true or false?
a. True 
b. False

The correct answer is: True

Question
ExpanD) AAPT
a. AdvanceD) AideD) Programming Techniques.
b. Andromida Access Programming Techniques
c. AndroiD) Asset Packaging Tool 
d. AndroiD) Access Protocol Tools

The correct answer is: AndroiD) Asset Packaging Tool

Question
What Layout should you use in your XML to hold your game view?
a. FrameLayout 
b. TableLayout
c. LinearLayout
d. RelativeLayout

The correct answer is: TableLayout

Question
Symbian OS programming language
a. embedded C
b. C ++ 
c. Objective C
d. Java

The correct answer is: C ++

Question
Which file specifies the minimum requireD) AndroiD) SDK version your application supports?
a. R.java
b. main.xml
c. AndroidManifest.xml 
d. strings.xml

The correct answer is: AndroidManifest.xml

Question
What was the first phone released that ran the Android OS?
a. Motorola Droid
b. HTC Hero
c. T-Mobile G1 
d. Google gPhone

The correct answer is: T-Mobile G1

Question
Suppose that there are two activities in an application named ActivityOne and ActivityTwo. You want to invoke ActivityTwo from ActivityOne. What code you will write?
a. Intent intent=new Intent (this, ActivityTwo.class); startActivity(intent);
b. Both the given options are . 
c. startActivity(new Intent(this, ActivityTwo.class));
d. None of the given options.

The correct answer is: Both the given options are .

Question
SharedPreferences stores the data in which format?
a. DOC
b. TXT
c. None of the given options.
d. XML 

The correct answer is: XML

Question
What is the name of the program that converts Java byte code into Dalvik byte code?
a. Android Interpretive Compiler (AIC)
b. Dex compiler 
c. Mobile Interpretive Compiler (MIC)
d. Dalvik Converter

The correct answer is: Dex compiler

Question
While developing Android applications, developers can test their apps on...
a. Third-party Emulators (Youwave, etc.)
b. Physical Android phone
c. Emulator included in Android SDK
d. All three options will work. 

The correct answer is: All three options will work.

Question
What is an activity in Android?
a. Manage the Application content
b. None of the above
c. Screen UI
d. Activity performs the actions on the screen 

The correct answer is: Activity performs the actions on the screen

Question
Which virtual machine is used for android ----------.
a. Dalvik Virtual Machine 
b. Java Virtual Machine
c. Dex virtual Machine
d. Android Virtual Machine

The correct answer is: Dalvik Virtual Machine

Question
To write files on the external storage, which permission you will write in AndroidManifest.xml file
a. WRITE_STORAGE
b. None of the given options.
c. WRITE_EXTERNAL_STORAGE 
d. WRITE_EXTERNAL_DATA

The correct answer is: WRITE_EXTERNAL_STORAGE

Question
Which file is copieD) to androiD) device to run the application.
a. R file
b. Manifest
c. .dex file
d. .apk file 

The correct answer is: .apk file

Question
Data files cannot store file in below location
a. SD Card
b. Remote directory 
c. None of given options
d. Local directory

The correct answer is: None of given options

Question
What is the permission for using the camera?
a. android.permission.USE_CAMERA
b. None of the given options.
c. android.permission.hardware.CAMERA
d. android.permission.CAMERA 

The correct answer is: android.permission.CAMERA

Question
What was Google’s main business motivation for supporting Android?
a. To allow them to advertise more 
b. To corner the mobile device application market for licensing purposes
c. To level the playing field for mobile devices
d. To directly compete with the iPhone

The correct answer is: To allow them to advertise more

Question
Android Runtime for execution is
a. Dalvik JVM
b. Oracle VM
c. Sam VM
d. Java Virtual Machine 

The correct answer is: Dalvik JVM

Question
Name the base sensor normally useD) by a step counter application in your phone.
a. Accelerator 
b. Gyroscope
c. Barometer
d. Proximity

The correct answer is: Accelerator

Question
What is a  statement about an XML layout file?
a. A file that contains all application permission information
b. A layout PNG image file
c. A file that contains a single activity widget.
d. A file useD) to draw the content of an Activity 

The correct answer is: A file useD) to draw the content of an Activity

Question
An activity can be thought of as corresponding to what? |
a. A Java project
b. An object field
c. A method call
d. A Java class 

The correct answer is: A Java class

Question
Which of the following are not a component of an APK file?
a. Resources
b. Native Libraries
c. All of these are components of the APK 
d. Dalvik executable


The correct answer is: All of these are components of the APK