Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

andriod exam ,plz plz sol faster Q1 .Suppose you have a button and an imageview, and when you press the button, a picture will be

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

andriod exam ,plz plz sol faster

Q1 .Suppose you have a button and an imageview, and when you press the button, a picture will be loaded from the drawable folder on to the image View, to do that you need to write ;imageview.setImageResource(src.drawable.picture) ;imageview.setImageResource(getResources().drawable.picture) ;imageview.setImageResource(getResources().picture) imageview.setImageResource(R.drawable.picture) Q2. Which one of the following attributes is not used for arranging the content inside ?the view layout_width layout_height layout_gravity layout_padding ..Q3. Method...........is called whenever the SeekBar's thumb position changes onThumbPositionChanged on ProgressChanged onSeekBarChanged OnValueChange Q4. To center the text in the TextView if it wraps to multiple lines, you can set its property to center weight alignment positioning gravity Q5. Which one of the following attributes is not used for arranging the content inside ?the view layout_width layout_height layout_gravity layout_padding 09.Which XML attribute can you use to set the name of your click method within your ?Activity class and then implement it ToggleButton onClick Tokenizer Input Filter ?Q10. Which configuration file holds the permission to use the internet Java source file Manifest file Layout file Property file Q11. Which of the following files has the correct name for a layout design file of an ?.activity in an android App MainActivity.java Activity_main.xml Gradle.sql Style.xml Q12. Class Activity's..................method takes an int constant representing a specific .view's ID and returns a reference to the view findViewByld findid .None of the above findView Q13. What are five types of layouts built into the Android SDK ?framework GridLayout, SpacedLayout, DrawableLayout, FrameLayout, FloatLayout LinearLayout, Relative Layout, FrameLayout, TableLayout Grid Layout Fixed Layout LinearLayout, DrawableLayout, HorizontalLayout, RelativeLayout FrameworkLayout, Fixed Layout, Grid Layout, MarginalLayout, TableLayout .Q15.An explicit Intent launches a specified Activity True False Q16. You'll use an anonymous inner class to implement the ................ interface (from .package android.widget) to respond to the user moving the SeekBar'sthumb .None of the above SeekBar.OnSeekBarChangeListener SeekBar.OnChangelistener SeekBar.Changelistener 2018. What is the name of the class used by Intent to store the camera picture Extra Bundle Parcelable DataStore Q19. Which of the following is not a data type that is supported as preference-setting ?values Object values Boolean values Long values Float values Q20. Which of these ArrayList methods appends an item to the end of an ArrayList ?collection object concatenate add insert append 2021. Which of the following statements is NOT correct about Android fragments You can add/remove fragments to and an activity dynamically; i.e. while the activity is .running The life-cycle of a fragment is totally independent of the activity hosting it .Fragments have their own life-cycle .Multiple fragments can be combined in a single activity Q22. Which of the following attributes sets Edit Text widget control to only allow numbers to be entered "android:inputChars="number "android:inputType="text "android:inputChars="text "android:inputType="number 2023. Which one of the following permissions do Android applications have by default Receive data from the Internet Modify or delete the contents of your USB storage None View network state .224.The ............. method is called whenever the text in the Edit Text view is modified onNewValue watchedTextChanged onTextChanged onEditTextChanged .Q26.SharedPreferences object stores as key-value pairs False True Q27. In addition to using Android 6.0's new permissions model in which the app asks the user to grant permissions dynamically, each app also must specify any permissions it .. uses in class MainActivity strings.xml Android Manifest.xml permissions.xml Q28. Which EditText widget attribute sets gray text, which will disappear when the user ?begins typing in the widget android:hint android:tempText android:prompt android:grayText Q29When the user clicks on an item in a list view, the code is meant to display Toast of ?that item. Does the code do what it's meant to The code is correct Data source is not defined ;The code is missing : language.setAdapter(adapter) The code is missing: adapter.notifyDataSetChanged Q30. During an Activity life-cycle, what is the first callback method invoked by the ?system ()onStop ()onCreate()D.onRestore()onStart ?Q31.For what is a Bundle object usually used .pass data from an activity to a database immediately before that activity is destroyed to create Java objects from the widgets in an activity can hold all types of values and can pass them between activities and fragments .to pass data in the layout to a new activity Q32.To center the text in the TextView, set its alignment property to center as follow TextView> "android:textAlignment="center False True Q33.A stopped activity is visible on the screen and is likely to be killed by the system .when its memory needed True False Q34.If the listView items are modified (add, delete), which method you will use to tells the ListView that the data has been modified; and to show the new data, then the .List View must be redrawn (adapter.notifyDataSetChanged () adapter.apply ()adapter.commit (adapter.show Q35. Which file specifies the minimum required Android SDK version your application ?supports main.xml R.java strings.xml build.gradle Q36. Why are application Sharedpreferences described as a set of data values that are ?stored Persistently The application data cannot be erased The application can be started and stopped without losing the data The application data can only be erased in certain lifecycle events The application data can be lost if you close the application ?Q37.For what purpose is a fragment commonly used To allow application components such as activities and services to communicate with one another To avoid app crashes due to memory leaks To combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities To measure the amount of battery usage Q38. One of the Drawbacks of the Frequency Division Multiplexing (FDM) is when the number of users is large and traffic is constant Flase True :939. The author of course text book none of the mentioned Silberschatz ANDREW S. TANENBAUM William Stallings

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

How does the concept of hegemony relate to culture?

Answered: 1 week ago