wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Android Quiz 05

Total questions: 20

Worksheet time: 3600secs

Name
Class
Date
1.

int[] salarys = new int[3] ;


salarys[0] = "2000";

salarys[1] = "1500";

salarys[2] = "1200";


int rslt = salarys[0] + salarys[2] ;


The value of rslt is :

a)

20001200

b)

3200

c)

3500

d)

i dont think so

2.

String[] names = new String[3] ;


names[0] = "ahmed" ;

names[1] = "ali" ;

names[2] = "kalid" ;

names[3] = "mostafa" ;


int rslt = names.length ;


The Value of rslt is :

a)

3

b)

4

c)

0

d)

i dont think so

3.

we must set initial value to array elements


يجب علينا اعطاء قيم افتراضية لعناصر المصفوفة

a)

True

b)

False

4.

String[] jobs = new String[]{} ;


jobs[0] = "Accountant" ;

jobs[1] = "Developer" ;

jobs[2] = "Designer" ;

jobs[3] = "Coder" ;


what is the length of this array

a)

3

b)

4

c)

unknown

d)

i dont think so

5.

Standard Array like (String[] teams) or (int[] salary) support

المصفوفات القياسية تدعم

a)

Primitive Data Types

b)

Object Data Types

c)

Primitive and Object Data Types

d)

i dont think so

6.

ArrayList like

ArrayList<int> items = new ArrayList<int>()

support ...

قائمة المصفوفات تدعم

a)

Primitive Data Types

b)

Object Data Types

c)

Primitive and Object Data Types

d)

i dont think so

7.

String[] employees = new String[3];


employees[0] = "Rahma";

employees[1] = "Hoda";

employees[2] = "Wareef";


int rslt = employees.size();


The Value of rslt is :


قيمة المتغير rslt

a)

2

b)

3

c)

4

d)

i dont think so

8.

we use ArrayList to save dynamic data , so its not Class

نحن نستخدم قائمة المصفوفات لحفظ البيانات المتغيرة لذلك هي لا تعتبر كلاس

a)

True

b)

False

9.

String[] employees = new String[5];


employees[0] = "Ahmed";

employees[1] = "Said";

employees[2] = "Seif";


String rslt = employees.get(2);


The Value of rslt is


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

a)

Said

b)

said

c)

Seif

d)

seif

e)

i dont think so

10.

String[] movies= new String[10];


can we remove some elements from movies array on RunTime


هل يمكننا حذف بعض العناصر من المصفوفة وقت التشغيل

a)

True

b)

False

11.

String[] movies= new String[5];


can we update some elements Data inside movies array at RunTime


هل يمكننا تعديل بيانات بعض العناصر في المصفوفة وقت التشغيل

a)

True

b)

False

c)

i dont think so

12.

String[] students = new String[20];


students[0] = "Ahmed";

students[1] = "Said";

students[2] = "Seif";

students[3] = "Mona";


what is the Capacity of this array ?

a)

3

b)

4

c)

20

d)

dynamic

e)

i dont think so

13.

What’s the attribute of TextView that displays a text that goes away once you write something?


ما هي الخاصية الخاصة باداة عرض النصوص التي تمكنني من وضع نص مؤقت يختفي عند محاولة الكتابة داخل الاداة

a)

hint

b)

description

c)

emptyText

d)

text

e)

i dont think so

14.

if we need to set icon for our App where can we save it ?

a)

values

b)

mipmap

c)

icons

d)

layout

e)

i dont think so

15.

we use int dataType to represent positive integers only


نحن نستخدم نوع البيانات

int

لتمثيل الاعداد الصحيحة الموجبة فقط

a)

True

b)

False

16.

we must define id attribute for each elements inside layout


يجب علينا تعريف

id

لكل العناصر الموجودة في التخطيط

a)

True

b)

False

17.

can we override any final method from super class to subclass by use (override) keyword

a)

True

b)

False

18.

What of the following are types of intent? [ choose all that apply ]


اي من التالي يعتبر انواع من

intent

a)

Implicit Intent

b)

Explicit Intent

c)

Direct Intent

d)

Indirect Intent

19.

Android uses _________ to manage audio playback on the device.

a)

Audio Focus

b)

Audio Player

c)

Media Player

d)

Media Manager

e)

i dont think so

20.

What Class we use to manage audio focus ?


ما هو الكلاس المستخدم لادارة تركيز الصوت

a)

AudioFocusManager

b)

AudioManager

c)

AudioFocus

d)

MediaManager

e)

Mediaplayer