wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Android Quiz 03

Total questions: 20

Worksheet time: 51mins

Name
Class
Date
1.

firstName is Global Varaible so its Scope is


firstName

هو متغيير عام لذلك مجال الرؤية له

a)

Private

b)

Public

c)

Protected

d)

I do not think so

2.

Student mostafaStudent = new Student("100","Ahmed");

Student ahmedStudent = new Student("200","Mostafa");


String studentName = mostafaStudent.getStudentCode();


The Value of studentName variable is

قيمة متغيير اسم الطالب هي

a)

Mostafa

b)

Ahmed

c)

100

d)

200

3.

if we call Method printEmail then email varaible value will be

عند استدعاء الدالة

printEmail

اذا سيكون قيمة المتغيير

email

a)

null

b)

Empty

c)

oneMillionArabCoder@gmail.com

d)

not effected

e)

I do not think so

4.

We can Store "Hello World" inside String Variable so its Primitive Data Type

a)

True

b)

False

5.

string myName = "Khalid Ali" ;


so myName varialbe is Empty


بتنفيذ الكود السابق تكون قيمة المتغير

myName

فارغة

a)

True

b)

False

c)

I do not think so

6.

String address = "22 Flowers Street \n Nasr City \n Cairo" ;


we use \n to :


نحن نستخدم العلامة

\n

a)

Make Space

b)

Make Backspace

c)

Make NewLine

d)

I do not think so

7.

String firstName = "Ahmed" ;

String lastName = "Ali" ;

String fullName = firstName & " " & lastName


fullName varialbe equal "Ahmed Ali"

a)

True

b)

False

8.

After Execute this Code , the Value of z is

بعد تنفيذ الكود السابق ستكون قيمة المتغير

z

a)

70

b)

10

c)

60

d)

71

e)

I do not think so

9.

After Execute this Block , the value of x is :


بعد تنفيذ الاكواد السابقة سوف تكون قيمة المتغير

x

a)

10

b)

11

c)

60

d)

I do not think so

10.

After Execute this Code , the Value of z is

بعد تنفيذ الكود السابق ستكون قيمة المتغير

z

a)

70

b)

80

c)

81

d)

I do not think so

11.

After Execute this Code , the Value of Z is

بعد تنفيذ الكود السابق ستكون قيمة المتغير

Z

a)

70

b)

72

c)

6010

d)

I do not think so

12.

Sum(10,50);


int rslt = Sum(20,30);


The Value of rslt is

a)

60

b)

50

c)

1050

d)

2030

e)

I do not think so

13.

Student myStudent = new Student("Mohammed" , "Ali");

String fullName = myStudent.getSStudentFullName();


The Value of fullName is


بتنفيذ الكود السابق ستكون قيمة المتغير تساوي

a)

Mohammed Ali

b)

MohammedAli

c)

Ali Mohammed

d)

I do not think so

14.

if we have image called [1studentPhoto.png] inside folder [drawable] so we can access this photo inside java file by

a)

R.drawable.1studentPhoto

b)

R.drawable.1studentPhoto.png

c)

R.drawable.1studentphoto

d)

R.drawable.1studentphoto.png

e)

i dont think so

15.

Every Time When we call object method , the Constructor will be Executed


كل مرة يتم النداء علي اجراء داخل كائن سوف يتم استدعاء المشيد الخاص به

a)

True

b)

False

c)

may be

d)

i dont think so

16.

TextView txtUsserName = findViewById(R.id.txtUserName);

txtUsserName .****("hello world")


By Execute the Previous Codes , we can change text inside txtUsserName by


بتنفيذ الكود السابق نستطيع تغيير النص داخل الاداة

txtUsserName

باستخدام

a)

setText

b)

SetText

c)

Text

d)

text

e)

i dont think so

17.

we have class A and class B , if we need class B inherit class A , we use keyword ....

a)

inherit

b)

Inherit

c)

extends

d)

Extends

e)

i dont think so

18.

we use this codes to send SMS Message

a)

True

b)

False

19.

we use this Codes to Open Google Maps

a)

True

b)

False

20.

i have one App For Emails installed inside my Device , what happen when i execute the previous Codes

a)

System will open Email App

b)

System will let me choose which app to use

c)

System will send the Email

d)

i dont think so