Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
CUSTOMER_CODE SMUDE DIVISION_CODE SMUDE EVENT_CODE OCTOBER15 ASSESSMENT_CODE BCA4030_OCTOBER15 QUESTION_TYPE DESCRIPTIVE_QUESTION QUESTION_ID 37829 QUESTION_TEXT Briefly explain android architecture libraries. Write any eight such native library and the purpose. SCHEME OF EVALUATION On top of the kernel are the libraries. Android includes a set of C/C++ libraries written as modules of code that are compiled down to native machine code. It controls the device to handle different kinds of data efficiently. These libraries tell the device how to handle different kinds of data and are exposed to Android developers via Android application framework. It provides some of the common services that are available for applications and various components of the Android system. It exposes its capabilities through Android application framework. Libraries in Android architecture include the Surface Manager, Media Framework, WebKit, SQLite, OpenGL/ES, FreeType, SGL, SSL, Libc. These native libraries run as processes within the underlying Linux kernel. (2 marks) Libc: Libc is a standard C library tuned for embedded devices. SSL: It is a Secure Sockets Layer cryptographic protocol for secure internet communications. SGL: SGL is a scalable graphic library or also called clear graphic library that gives the underlined 2D graphic engine. In Android graphics platform,you can combine 3D and 2D graphics in the same application. OpenGL/ES: OpenGL/ES is a 3D library. OpenGL supports the CD graphics which is based on OpenGL1.O, so these libraries either use hardware 3D accelerator if they are available or they use the highly optimized software. They have a software implementation that is hardware acceleratable if the device has a 3D chip on it. FreeType: Freetype is used for bitmap and vector font rendering. FreeType is a free, high quality and portable font engine. WebKit: It is the open source browser engine, used as a core of Android’s browser. SQLite: It is the basic datastore technology for the Android platform and is very lightweight relational database engine that manages access to display subsystem. It is used as the core of most of its data storage. Media Frame work: The Media Framework was provided by Packet Video, one of the members of the open handset alliance and that contains the entire codex that make up the core of the media experiences. Surface Manager: The surface manager is responsible for composing different drawing surfaces on to the screen or you can say that it is responsible for graphics on the device’s screen. LibWebCore: LibWebCore is a modern web browser engine that gives us embeddable web view. Media Libraries: It supports playback and recording of many popular audio and video formats, as well as static image file. Android Runtime The Android runtime layer also includes set of core java libraries and DVM (Dalvik Virtual Machine) located in same layer. Core Libraries: Core Libraries are written in the Java programming language.The core library contains all of the collection classes, utilities, I/O, all the utilities and tools that you use. Dalvik Virtual Machine: Android based systems utilize their own virtual machine (VM), which is known as the Dalvik Virtual Machine (DVM). The Bionic Library Compared to Linux, Androids incorporates its own c library known as Bionic library. (Any 8 – each 1 mark) QUESTION_TYPE DESCRIPTIVE_QUESTION QUESTION_ID 37830 QUESTION_TEXT With example explain bit manipulation and processor control instructions. SCHEME OF EVALUATION Bit manipulation instruction 1.NOT Src 2. AND Des,Src 3. OR Des,Src 4. XOR Des, Src 5. SHL Des, Count 6. SHR Des, Count 7. ROL Des, Count 8. ROR Des, Count Processor control instruction 1. STC 2. CLC 3. CMC 4. STD 5. CLD QUESTION_TYPE DESCRIPTIVE_QUESTION QUESTION_ID 72249 QUESTION_TEXT How does UNIX/Linux OS distinguish and classify devices that are attached to the computer? SCHEME OF EVALUATION * UNIX/Linux OS distinguishes and classifies devices that are attached to the computer devices into three fundamental device types. [1 marks] * brief notes on Character devices [3 marks] * brief notes on Block devices [ 3 marks] * brief notes on Network interfaces. [3 marks] QUESTION_TYPE DESCRIPTIVE_QUESTION QUESTION_ID 125399 QUESTION_TEXT Write down the Advantages and disadvantages of coding in assembly language. SCHEME OF EVALUATION Advantages of coding in assembly language are: • Provides more control over handling particular hardware components • May generate smaller, more compact executable modules • Often results in faster execution Disadvantages: • Not portable • More complex • Requires understanding of hardware details (interfaces) An assembler does the following: 1. Generate machine instructions – evaluate the mnemonics to produce their machine code – evaluate the symbols, literals, addresses to produce their equivalent machine addresses – convert the data constants into their machine representations 2. Process pseudo operations. QUESTION_TYPE DESCRIPTIVE_QUESTION QUESTION_ID 125402 QUESTION_TEXT Write short notes on Dalvik virtual machine. The Dalvik Virtual Machine SCHEME OF EVALUATION You have already read about the Dalvik Virtual machine in unit 12. Let us revise it again briefly in this section. Android uses its own customized Virtual Machine (VM) rather than a traditional Java virtual machine (VM) such as Java ME (Java Mobile Edition) to run Java applications. This VM is known as Dalvik VM and is a register-based virtual machine that has been optimized to ensure that a device can run multiple instances efficiently on a single device. The Dalvik VM uses the underlying Linux kernel of device to handle low-level functionality along with security, threading, process and memory management. The DALVIK virtual machine is optimized for low memory compared to other standard VMs like JVM or Parrot Virtual Machine. The Dalvik virtual machine uses less space. It uses its own bytes code which is not a java byte code. It uses storage media as flash memory. All Android hardware and system service access is managed using Dalvik as a middle tier. VM is used to host application execution so that developers have an abstraction layer without caring about a particular hardware implementation. The Dalvik VM executes Dalvik executable files which is optimized to ensure minimal memory requirement. The .dex executables are created by transforming Java language compiled classes using the tools supplied within the SDK. QUESTION_TYPE DESCRIPTIVE_QUESTION QUESTION_ID 125403 QUESTION_TEXT What is the data store technology used in Android platform? Explain Android application framework. SCHEME OF EVALUATION Data Stroe technology: SQLite (1 mark) 1. Activity manager: actually manages life cycles of applications. 2. Window manager: Manages window 3. Content providers: to enable applications access data from other app. 4. View system: Contains things like buttons and lists and all the building blocks of UI. 5. Notification manager: helps us to display custom alerts on status bar. 6. Package manager: responsible for keeping of what applications you have and what capabilities each of your applications have. 7. Telephone manager: handler info. About telephony. ABI to build phone App. 8. Resource manager: gives us access to non-code resources such as localized strings or various other resources in the form of PIING, BMP as well as XML. 9. Location managers: handles info about location.