0% found this document useful (0 votes)
8 views5 pages

Mid-Term Practice

The document contains questions about Java, XML, and Android UI layouts. It asks about Java's compiler language, XML tags and attributes, and using views and view groups in Android layouts.

Uploaded by

Zyad Mâğdy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views5 pages

Mid-Term Practice

The document contains questions about Java, XML, and Android UI layouts. It asks about Java's compiler language, XML tags and attributes, and using views and view groups in Android layouts.

Uploaded by

Zyad Mâğdy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Answer the following questions:

1. Nowadays, Java’s compiler is written in


( c++, c, Java, Python)

2. At first, Java’s compiler was written in


( c with some c++ libraries, binary, Java, Python)

3. _____ refers to the aesthetic elements by which people interact


with a product, while _____ is about the experience a user has
with a product or service.

4. _____ is independent of any programming language and is a


common API output in a wide variety of applications.
(Java, SQL, JSON, XML)

5. The JRE is written in


(Java, c, XML, JSON)

6. Oracle company has


(Java, Oracle database, MySQL, all of the previous)

7. Self-hosting means _____

8. Java’s compiler is self-hosting


(True, False)

9. XML stands for


(extensive markup language – Xavier markup language – x
marked language)
10. What does the layouts called
(views – class – classGroup)

11. What is the attribute for resizing the image into the view
bands
(background – layout_width - ScaleType)

12. Explain the following code’s effect on the android UI -


assume the root element is <LinearLayout>-
13. <ImageView
14. android:layout_width="30sp"
15. android:layout_height="50sp"
16. android:src="@drawable/test_img"
17. />
18.
19.
20. <TextView
21. android:layout_width="wrap_content"
22. android:layout_height="60sp"
23. android:text="Obour programming club
(OPC)"
24. />

13. What is the best way to allow users to enter date as an input
(using Date Picker, using TextView, using EditText )

14. Can view Groups contain other view Groups


(true, false)
15. A view that is used to create a widget which is helpful in
getting into or reaching content
(Button, TextView, ImageView)

16. What is the part represented by “?????” called.


<BEST-CLUB ?????? = "OPC"> </BEST-CLUB>

17. What is the part represented by “?????” called.

<??????? club-name = "OPC"> </BEST-CLUB>

18. What is the part represented by “?????” called.


<BEST-CLUB club-name = "OPC"> </??????>

19. What is wrong in the following code.


<facebook-page Link="www.facebook.com/ObourPC">
2345 - can we write numbers as contents in XML??
</Facebook-page>

20. what does encoding=”utf-8” do in the following code?


<?xml version="1.0" encoding="utf-8"?>
(allow using symbol characters as inputs, allow using non-
alphabetic languages as inputs, allow user to select the preferred
language)

21. Which one of them is the horizontal linear layout?

Figure a Figure b

22. If it specified “true”, the right edge of view will match the
right edge of the parent.
(layout_toRightOf, layout_alignParentRight)

23. It accepts another sibling view id and places the view right of
the specified view id.
(layout_toRightOf, layout_alignParentRight)

24. Which one of these is written right?


(layout_ToLeftOf, layout_toleftOf, layout_toLeftof,
layout_toLeftOf)

25. Which one of these is written right?


(layout_CenterInParent, layout_centerInparent,
layout_centerinParent, layout_centerInParent)

We wish you all the best 😊

Our Facebook page:


https://www.facebook.com/ObourPC/?ref=pages_you_manage

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy