
Android 2
Authored by Hanan Elsaid
Computers
1st - 7th Grade
Used 10+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q1) The activity life cycle does not contain.................
onStart()
onCreat()
onAttach()
onPause()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q2) If you need to pass data back from an activity, Which method you should use?
startActivity()
startActivityForResult()
ActivityForResult()
None of the above.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q3) If you want to navigate from one activity to another then android provides you which class?
Object
startActivity
Intent
None of the above.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q4) The types of intents in android is\are
A) Explicit intents
B) Implicit intents
C) Start intents
D) Option A and B are correct.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q5) Suppose that there are two activities in an application named FirstActivity and SecondActivity. You want to send website name from ActivityOne to ActivityTwo. What code you will write? Suppose that website name is “CareerRide.com”
Intent intent=new Intent (this, SecondActivity.class);
intent.putExtra("name", “CareerRide.com”);
startActivity(intent);
Intent intent=new Intent (this, SecondActivity.class);
intent.putExtra( “CareerRide.com”);
startActivity(intent);
Intent intent=new Intent ();
intent.putExtra("name", “CareerRide.com”);
startActivity(intent);
None of the above.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Q6) How will you get the data in secondActivity? Refer question Q5
Intent intent=new Intent;
String str= intent.getStringExtra("name");
Toast.makeText(this, str , Toast.LENGTH_LONG).show();
Intent intent=getIntent();
String str= intent.getStringExtra("name");
Toast.makeText(this, str , Toast.LENGTH_LONG).show();
Intent intent=getIntent();
String str= intent.getText("name");
Toast.makeText(this, str , Toast.LENGTH_LONG).show();
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
...........محلها intent ال
العين
الاذن
القلب
الرجل
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
GKA CS4 - Using Google Search - July 4th Trivia
Quiz
•
4th Grade
10 questions
Տառաշարի պարամետրերի սահմանումը /6-րդ դաս/
Quiz
•
6th Grade
10 questions
Python-Partie1
Quiz
•
1st Grade
10 questions
Ms word 2007
Quiz
•
2nd Grade
10 questions
6-7 2.dön 1.yazılı hazırlık
Quiz
•
7th Grade
10 questions
Bài 1,2,3 lớp 4
Quiz
•
4th Grade
10 questions
ICT 5 EPP
Quiz
•
5th - 6th Grade
10 questions
Lego Spike - Challenge 1 Quiz
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade