Answer Any Two Full Questions, Each Carries 15 Marks.: Pages: 2
Answer Any Two Full Questions, Each Carries 15 Marks.: Pages: 2
Answer Any Two Full Questions, Each Carries 15 Marks.: Pages: 2
PART A
Answer any two full questions, each carries 15 marks. Marks
1 a) Create a class in C++ having three members (an integer number, sum of digits of (8)
the number and a single digit formed by finding the sum of digits of the number
until the number is a single digit). Include appropriate functions to enter the
number from user end, do calculations and displaying. Also include appropriate
constructors for initialising all members to zero.
(eg: 1236, sum of digits =12,sum of digits as single digit =3)
PART B
Answer any two full questions, each carries 15 marks.
4 a) Explain with example program in C++ how the keyword virtual is used to (8)
implement dynamic binding.
b) What are bytecodes and JVM? Explain how Java implements Machine (5)
Independent Programming.
c) What is the use of import statement in a Java program? (2)
5 a) Can a pointer of base class type point to an object of the derived class? Explain. (7)
Page 1 of 2
E E6801 Pages: 2
b) Write a Java program to print and find the sum of squares of n numbers. (8)
6 a) class A (7)
{ //class definition
…..
};
void main();
{ A*p;
..
}
Explain what p in this code segment is. How can it be used to access members of
class A?
b) What is a thread in Java? How is multithreading implemented in a program? (8)
Give a programming example to demonstrate the syntax and show how to start
and manage threads using different methods.
PART C
Answer any two full questions, each carries 20 marks.
7 a) What is the advantage of Android OS? Give any 4 features and explain. (6)
b) Give the tools needed to develop android application program. (4)
c) Differentiate between broadcast receivers and content providers. How are they (10)
implemented?
8 a) Give the steps to develop a simple android application program. (10)
b) Explain what is an Intent and an Intent Filter. (10)
9 a) Give the layered architecture of Android OS. (5)
b) Explain the four main components that can be used within Android application. (10)
c) What is the use of AndroidManifest.xml file in android? (5)
****
Page 2 of 2