click tick on front of correct answer Required 1.To display a text as result in a TextView we may useRequired to answer. Single choice. textview.setText( ) textview.Text( ) textview.putText( ) textview.ouText( ) 2.setContentView(R.layout.activity_main);Required to answer. Single cho By default part of onStart( ) By default part of MainActivity All of these By default part of onCreate( ) 3.What is fragment life cycle in android?Required to answer. Single choic None of these onCreate() onAttach()->onCreate() −> onCreateView() −> onActivityCreated() −> onStart() −> onResume() onReceive() 4.onDetach() called whenRequired to answer. Single choice. the fragment detach from the activity the Thread detach from the activity the Intent detach from the activity the UI detach from the activity 5.package name like (com.example.dice1) is shown inRequired to answer. Singlle Andriodmenifest.xml Activity_main.xml MainActivity.java All of these 6.Which file name and its extension is not trueRequired to answer. Single choice. all of these AndriodManifest.java activitymain.xml Main_Activity.java 7.Which statement is trueRequired to answer. Single choice. Toast.makeText(this,d1.getData().toString(),Toast.LENGTH_LONG).show(); toast.makeText(this,text.getData().toString(),Toast.LENGTH_LONG).show(); Toast.makeText(this,text.getData().toString(),LENGTH_LONG).show(); Toast.makeText(this,text.getData().toString(),SHORT_LONG).show(); 8.To change the orientation of an emulator to landscape we usesRequired to answer. Single choice. (1 Point) Alt+L Ctrl+Alt+L Ctrl+L Ctrl+Shift+L 9.To set the background color of layout we may useRequired to answer. Single choice. layout.setBackgroundColor(Color.BLUE); layout(setBackgroundColor(Color.BLUE)); setbackgroundcolor(Color.BLUE); setBackgroundColor(Color.BLUE); 10. Called when the current activity is being paused and the previous activity is being resumedRequired to answer. Single choice. onStop() onResume() onRestart() onPause() 11.Integer.toString() statement is used to convertRequired to answer. Single choice. (1 Point) none string to integer Both integer to string 12.which statement is trueRequired to answer. Single choice. setContentView(R.layout.activity_main); setContentView(R.ID.activity_main); setContentView(R.id.activity_main); setContentView(R.layout. main_activity); 13.To change the theme of an android app we may useRequired to answer. Single choice. Andriodmenifest.xml All of these Activity_main.xml MainActivity.java 14.CountDownTimer time=new CountDownTimer(3000,1000); choose wrongRequired to answer. Single choice. None of these time is an object of class CountDownTimer is a java class CountDownTimer is a constructor of class 15.To putExtras or to get a set of names and values to an Intent, we may use object of a classRequired to answer. Single choice. (1 Point) Arguments Extra Data Bundle 16.To manage the activities according the screen size we may useRequired to answer. Single choice. Constructors Fragments Intents Threads 17.To add a image in ImageView we may useRequired to answer. Single choice. Values Mipmap folder Drawable folder Both
click tick on front of correct answer Required 1.To display a text as result in a TextView we may useRequired to answer. Single choice. textview.setText( ) textview.Text( ) textview.putText( ) textview.ouText( ) 2.setContentView(R.layout.activity_main);Required to answer. Single cho By default part of onStart( ) By default part of MainActivity All of these By default part of onCreate( ) 3.What is fragment life cycle in android?Required to answer. Single choic None of these onCreate() onAttach()->onCreate() −> onCreateView() −> onActivityCreated() −> onStart() −> onResume() onReceive() 4.onDetach() called whenRequired to answer. Single choice. the fragment detach from the activity the Thread detach from the activity the Intent detach from the activity the UI detach from the activity 5.package name like (com.example.dice1) is shown inRequired to answer. Singlle Andriodmenifest.xml Activity_main.xml MainActivity.java All of these 6.Which file name and its extension is not trueRequired to answer. Single choice. all of these AndriodManifest.java activitymain.xml Main_Activity.java 7.Which statement is trueRequired to answer. Single choice. Toast.makeText(this,d1.getData().toString(),Toast.LENGTH_LONG).show(); toast.makeText(this,text.getData().toString(),Toast.LENGTH_LONG).show(); Toast.makeText(this,text.getData().toString(),LENGTH_LONG).show(); Toast.makeText(this,text.getData().toString(),SHORT_LONG).show(); 8.To change the orientation of an emulator to landscape we usesRequired to answer. Single choice. (1 Point) Alt+L Ctrl+Alt+L Ctrl+L Ctrl+Shift+L 9.To set the background color of layout we may useRequired to answer. Single choice. layout.setBackgroundColor(Color.BLUE); layout(setBackgroundColor(Color.BLUE)); setbackgroundcolor(Color.BLUE); setBackgroundColor(Color.BLUE); 10. Called when the current activity is being paused and the previous activity is being resumedRequired to answer. Single choice. onStop() onResume() onRestart() onPause() 11.Integer.toString() statement is used to convertRequired to answer. Single choice. (1 Point) none string to integer Both integer to string 12.which statement is trueRequired to answer. Single choice. setContentView(R.layout.activity_main); setContentView(R.ID.activity_main); setContentView(R.id.activity_main); setContentView(R.layout. main_activity); 13.To change the theme of an android app we may useRequired to answer. Single choice. Andriodmenifest.xml All of these Activity_main.xml MainActivity.java 14.CountDownTimer time=new CountDownTimer(3000,1000); choose wrongRequired to answer. Single choice. None of these time is an object of class CountDownTimer is a java class CountDownTimer is a constructor of class 15.To putExtras or to get a set of names and values to an Intent, we may use object of a classRequired to answer. Single choice. (1 Point) Arguments Extra Data Bundle 16.To manage the activities according the screen size we may useRequired to answer. Single choice. Constructors Fragments Intents Threads 17.To add a image in ImageView we may useRequired to answer. Single choice. Values Mipmap folder Drawable folder Both
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
click tick on front of correct answer
Required
1.To display a text as result in a TextView we may useRequired to answer. Single choice.
textview.setText( )
textview.Text( )
textview.putText( )
textview.ouText( )
2.setContentView(R.layout.activity_main);Required to answer. Single cho
By default part of onStart( )
By default part of MainActivity
All of these
By default part of onCreate( )
3.What is fragment life cycle in android?Required to answer. Single choic
None of these
onCreate()
onAttach()->onCreate() −> onCreateView() −> onActivityCreated() −> onStart() −> onResume()
onReceive()
4.onDetach() called whenRequired to answer. Single choice.
the fragment detach from the activity
the Thread detach from the activity
the Intent detach from the activity
the UI detach from the activity
5.package name like (com.example.dice1) is shown inRequired to answer. Singlle
Andriodmenifest.xml
Activity_main.xml
MainActivity.java
All of these
6.Which file name and its extension is not trueRequired to answer. Single choice.
all of these
AndriodManifest.java
activitymain.xml
Main_Activity.java
7.Which statement is trueRequired to answer. Single choice.
Toast.makeText(this,d1.getData().toString(),Toast.LENGTH_LONG).show();
toast.makeText(this,text.getData().toString(),Toast.LENGTH_LONG).show();
Toast.makeText(this,text.getData().toString(),LENGTH_LONG).show();
Toast.makeText(this,text.getData().toString(),SHORT_LONG).show();
8.To change the orientation of an emulator to landscape we usesRequired to answer. Single choice.
(1 Point)
Alt+L
Ctrl+Alt+L
Ctrl+L
Ctrl+Shift+L
9.To set the background color of layout we may useRequired to answer. Single choice.
layout.setBackgroundColor(Color.BLUE);
layout(setBackgroundColor(Color.BLUE));
setbackgroundcolor(Color.BLUE);
setBackgroundColor(Color.BLUE);
10. Called when the current activity is being paused and the previous activity is being resumedRequired to answer. Single choice.
onStop()
onResume()
onRestart()
onPause()
11.Integer.toString() statement is used to convertRequired to answer. Single choice.
(1 Point)
none
string to integer
Both
integer to string
12.which statement is trueRequired to answer. Single choice.
setContentView(R.layout.activity_main);
setContentView(R.ID.activity_main);
setContentView(R.id.activity_main);
setContentView(R.layout. main_activity);
13.To change the theme of an android app we may useRequired to answer. Single choice.
Andriodmenifest.xml
All of these
Activity_main.xml
MainActivity.java
14.CountDownTimer time=new CountDownTimer(3000,1000); choose wrongRequired to answer. Single choice.
None of these
time is an object of class
CountDownTimer is a java class
CountDownTimer is a constructor of class
15.To putExtras or to get a set of names and values to an Intent, we may use object of a classRequired to answer. Single choice.
(1 Point)
Arguments
Extra
Data
Bundle
16.To manage the activities according the screen size we may useRequired to answer. Single choice.
Constructors
Fragments
Intents
Threads
17.To add a image in ImageView we may useRequired to answer. Single choice.
Values
Mipmap folder
Drawable folder
Both
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education