Deck 1: Basics of Android: Hello World
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/23
العب
ملء الشاشة (f)
Deck 1: Basics of Android: Hello World
1
We can access the activity_main.xml resource file from the layout directory using the expression ___________.
R.layout.activity_main
2
The colors.xml file contains ___________ constants.
color
3
The int parameter of the setContentView( int ) method represents:
A) a count.
B) a random integer.
C) a resource.
D) 0 or 1.
A) a count.
B) a random integer.
C) a resource.
D) 0 or 1.
a resource.
4
What hex number represents green?
A) FF0000
B) 00FF00
C) 0000FF
D) 000000
A) FF0000
B) 00FF00
C) 0000FF
D) 000000
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
5
A color has been defined in colors.xml using < color name="myColor">#33FD42< /color>. How do you use it?
A) @color/myColor
B) @color/33FD42
C) color/myColor
D) color/33FD42
A) @color/myColor
B) @color/33FD42
C) color/myColor
D) color/33FD42
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
6
It is possible to run an app inside the emulator in horizontal orientation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
7
Which class do we use to send some output to Logcat?
A) Logcat
B) System
C) Print
D) Log
A) Logcat
B) System
C) Print
D) Log
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
8
It is possible to set up breakpoints throughout the code so that we can debug the app.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
9
In order to test an app on a device, we need to:
A) do nothing.
B) download a driver for the device.
C) disconnect the device from the computer.
D) download a device for the driver.
A) do nothing.
B) download a driver for the device.
C) disconnect the device from the computer.
D) download a device for the driver.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
10
The name of the XML attribute that we use to specify that an app will run in horizontal orientation only is:
A) android:orientation.
B) android:screen.
C) android:screenOrientation.
D) orientation.
A) android:orientation.
B) android:screen.
C) android:screenOrientation.
D) orientation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
11
XML elements can be nested.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which of the following code snippets defines a valid dimension element?
A) < dimens name="my_margin">20dp< /dimens>
B) < dimen name="my_margin">20dp< /dimen>
C) < name dimen="my_margin">16dp< /name>
D) < my_margin name="dimen">16dp< /my_margin>
A) < dimens name="my_margin">20dp< /dimens>
B) < dimen name="my_margin">20dp< /dimen>
C) < name dimen="my_margin">16dp< /name>
D) < my_margin name="dimen">16dp< /my_margin>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
13
Android apps can be distributed via:
A) the App Store.
B) the Android Market.
C) Google Play.
D) the Apple Store.
A) the App Store.
B) the Android Market.
C) Google Play.
D) the Apple Store.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
14
The red, green, and blue values of a gray shade are all equal. Including black and white, how many shades of gray are there?
A) 8
B) 256
C) 16
D) 16.7 million
A) 8
B) 256
C) 16
D) 16.7 million
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
15
The name of the directory where we should place the icon file for the app is:
A) drawable.
B) raw.
C) mipmap.
D) values.
A) drawable.
B) raw.
C) mipmap.
D) values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which of the following defines a valid String element?
A) < strings name="my_name">20dp< /strings>
B) < string name="my_name">20dp< /string>
C) < name string="my_name">16dp< /name>
D) < my_name name="string">16dp< /my_name>
A) < strings name="my_name">20dp< /strings>
B) < string name="my_name">20dp< /string>
C) < name string="my_name">16dp< /name>
D) < my_name name="string">16dp< /my_name>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
17
The AppCompatActivity's direct superclass is:
A) MainActivity.
B) Activity.
C) AppCompat.
D) Main.
A) MainActivity.
B) Activity.
C) AppCompat.
D) Main.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
18
The strings.xml file contains __________________ constants.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
19
AVD stands for __________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
20
It is possible to preview a GUI XML file inside the environment without running the app.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
21
It is possible to filter the output inside Logcat.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
22
An XML element can have only 0 or 1 attribute.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
23
We can test an app on a device only in vertical orientation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck