NEW
Font size
WorksheetsAndroid Quiz 02
Total questions: 20
Worksheet time: 44mins
which is the correct camel case for method called getstudentname ?
ما هي الصيغة الصحيحة لكتابة الاجراء
getstudentname
باسلوب
camel case
GetStudentName
Get_student_Name
getStudentName
GETSTUDENTNAME
ListView is a ViewGroup ?
هل الليست فيو تعتبر فيو جروب ؟
Yes
No
To Make LinearLayout take screen width we use attribute ?
لجعل
LinearLayout
تأخذ عرض الشاشة نستخدم الخاصية
android:layout_width = "screen_width"
android:layout_width = "match_parent"
layout_width = "match_parent"
android:layout_width = "wrap_content"
we use layout_weight with RelativeLayout to ....
نحن نستخدم الخاصية
layout_weight
مع
RelativeLayout
من اجل
center content
separate layout with percent
set width for layout
do not used
what is the default value for attribute layout_weight ?
ما هي القيمة الافتراضية للخاصية
layout_weight
1
0
100
1dp
To order elements Vertically inside RelativeLayout we use ..
اذا اردنا ترتيب العناصر بصورة رأسية داخل اداة
RelativeLayout
نستخدم
android:orientation = "horizontal"
android:orientation = "vertical"
orientation = "vertical"
do not used
choose the correct statement to register id for TextView called txtUserName
قم بإختيار العبارة الصحيحة لتسجيل معرف
id
الي اداة النص المسماه
txtUserName
android:id="@id/txtUserName"
android:setId="@id/txtUserName"
android:layout_id="@+id/txtUserName"
android:id="@+id/txtUserName"
what is the attribute that used to set font size for TextView
ما هي الخاصية التي تستخدم لاعداد حجم الخط للكنترول
TextView
android:font-size
android:font_size
android:textsize
android:textSize
what is the font size unit in android ?
ما هي وحدة قياس حجم الخط في الاندرويد ؟
px
sp
dp
inch
we have 2 TextView inside RelativeLayout called txtFirstName and txtLastName , if we need to align txtLastName under txtFirstName we will use ...
android:layout_alignParentBottom="true"
android:layout_alignBottom="@id/txtFirstName"
android:layout_toBottomOf="@id/txtFirstName"
android:layout_alignBottom="@+id/txtFirstName"
android:layout_below="@id/txtFirstName"
choose the correct statement to set inner margin for ImageView
قم باختيار العبارة الصحيحة لاعداد الهامش الداخلي لعنصر
ImageView
android:padding = "12dp"
android:layout_margin = "12dp"
android:layout_margin = "12db"
android:layout_margin = "12sp"
LinearLayout is a View Group that support overlapping Elements ..
True
False
To Config Image Resource for ImageView use ..
لاعداد مصدر الصورة للاداة
ImageView
نستخدم
android:src="@drawable/photo.png"
android:src="@+drawable/Photo"
android:image="@drawable/Photo"
android:src="@drawable/photo"
To Make Comment inside XML File we use ..
لكي نقوم بعمل تعليق داخل ملف اكواد
XML
//Comments Here
/*comments Here*/
/** comments Here */
<!-- comments Here -->
we have Class called Person that contain 2 public variables , so Person is Primitive Data Type
True
False
Int x = 100;
Int y = 200;
int sum = x + y ;
The Sum value is :
تنفيذا للاكواد السابقة تكون قيمة المتغير
Sum
تساوي
100200
300
200100
do not used
String 1MArabCoder = "One Million Arab Coder";
String forEver = "For Ever" ;
String output = 1MArabCoder + " " + forEver ;
The value of variable output is :
One Million Arab Coder For Ever
1MArabCoder forEver
One Million Arab Coder forEver
do not used
Select Error Reasons for next statements (Multi Choose)
int _Salary = 5000 ;
int $price = 200 ;
اختر اسباب الأخطاء في الجمل التالية
cant start variable with UnderScore
cant start variable with $
cant start variable with number
no errors
The PSeudo Code for next statement is ..
String firstName = "My name is Mohammed Salah" ;
Log.v("MainActivity",firstName ) ;
My name is Mohammed Salah
Log the varialbe firstName
firstName
mainActivity
LinearLayout is a viewgroup that support nested layout
yes
no
