0% found this document useful (0 votes)
117 views4 pages

Unit 4 MCQ Mad (22619)

Uploaded by

tejasborseee
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)
117 views4 pages

Unit 4 MCQ Mad (22619)

Uploaded by

tejasborseee
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

JSPM’s

JAYAWANTRAO SAWANT POLYTECHNIC,


Handewadi Road, Hadapsar, Pune-28
Department of Computer Engineering
Academic Year 2019-20
UNIT WISE QUESTION BANK (MCQ)

Subject: Mobile Application Development Subject Code: 22617


Course & Code: CO6I Class: TYCO
Semester: VI Name of the Faculty: Mr.
Nivalkar N.P.
Date:
CO4: Use User Interface Components for android application development

UNIT 4: Designing User Interface with View (12 Marks)

Q.No

Creating a UI (User Interface) in Android requires careful use of...


A. Java and SQL
B. XML and Java
1.
C. XML and C++
D. Dreamweaver

Ans: B
Space outside the widgets can be customized using
A. Padding
B. Height
2.
C. Weight
D. Margins
Ans: D

What is contained within the manifest xml file?


A. The permissions the app requires
B. The list of strings used in the app
3.
C. The source code
D. All other choices

Ans: A

4. How many orientations does android support?


A-4
B - 10
C-2
D - None of the above

Ans: A

APK stands for ?

a.Android power key


b.Android packaging kit
5.
c.Android packaging key
d.Android pin key

Answer:c

What is the parent class of all Activity widgets?

A. ViewGroup
6. B. Layout
C. View
D. Widget

Ans: C

You can create a custom view by extending class Activity.


7.
A. True
B. False

Ans: B

Which of following is incorrect about the Toast class?

A. You cannot set a custom layout for a Toast


8. B. A Toast can only create by an Activity class
C. There is no need to close or hide a Toast, since it closes automatically.
D. A Toast is displayed for only one of the following periods:
Toast.LENGHT_SHORT or Toast.LENGTH_LONG

Ans: B

You can create a custom view by extending class:

9.
A. android.widget.View
B. android.widget.LinearLayout
C. android.view.View
D. android.content.Context

Ans: C

Which of the following is a Java call-back method invoked when a view is clicked?

a. Detector
10. b. OnTapListener
c. OnClickDetector
d. OnClickListener

Answer: D

Which is the correct explanation of ListView?

a. It is necessary to use ListView as a set with ListActivity.


11. b. You cannot use a ListView when there is no information to be displayed.
c. When displaying a list of Strings using an ArrayAdapter class in ListView, you must save
the value in an ArrayList..
d. ListView has a function to display a list of uniquely defined Views other than TextView.

Answer: D

App Widgets are can be place on the home screen by the user to check for updates are available?
12.
A. True
B. False
Ans: A

Which of the following is Dialog classes in android?

A. AlertDialog
13. B. ProgressDialog
C. DatePickerDialog
D. All of the above
Ans: D

A Type of service provided by android that shows messages and alert to user is

A. Content Providers
14. B. View system
C. Notification Manager
D. Activity Manager

Ans: C

15. Android calculates pixel density of mobile (currently using the app) using unit of measurement
A. CP
B. SP
C. DP
D. GP

Ans: C

Space between edge of widget content of widget can be customized using

A. Margins
B. Height
C. Padding
16.
D. Weight

Ans: C

Button option can be choose from the palette category

A. textfields
17. B. containers
C. widgets
D. layouts

Ans: C

In android UI ,<code>onClick</code> is actually a

A. class
18. B. button
C. property
D. function

Ans: C

The method that is used to handle what happens after clicking a button is

A. OnCreate
19. B. onSelect
C. onClick
D. onDo

Ans: C

The class that shows the toast-shaped message for the user is

A. Log class
20. B. Make Test class
C. Show class
D. Toast class

Ans: D

You might also like