Thursday 31 January 2013

Define the concept of aggregation. Give two examples of where this concept is useful.

Q) Define the concept of aggregation. Give two examples of where this concept is useful.


Answer: Aggregation is an abstraction through which relationships are treated as higher-level entities. Thus the relationship between entities A and B is treated as if it were an entity C. Some examples of this are:

a. Employees work for projects. An employee working for a particular project uses various

Wednesday 30 January 2013

Android Development Tutorial (Based on Android 4.1) class-6

Using Resources


1. Reference to resources in code


The Resources class allows to access individual resources. An instance of Resources can get access via the getResources() method of the Context class.

The Resources class is also used by other Android classes, for example the following code shows

Monday 28 January 2013

SCJP Sun Certified Programmer for Java 6 Study Guide Exam(310-065) Class-6

Identifiers & JavaBeans (Objectives 1 & 2)


1) Develop code that declares, initializes, and uses primitives, arrays, enums, and objects as static, instance, and local variables. Also, use legal identifiers for variable names.

2) Develop code that declares both static and non-static methods, and—if appropriate— use method names that adhere to the JavaBeans naming standards. Also develop code that declares and uses a variable-length argument list.

Remember that when we list one or more Certification Objectives in the tutorial, as we just did, it means that the following section covers at least some part of that objective. Some objectives will be covered

Friday 25 January 2013

Explain the difference between a weak and a strong entity set.

Q) Explain the difference between a weak and a strong entity set.


Answer :

A strong entity set has a primary key. All tuples in the set are distinguishable by that key. A weak entity set has no primary key unless attributes of the strong entity set on which it depends are included. Tuples in a weak entity set are partitioned according to their relationship with

Thursday 24 January 2013

Android Development Tutorial (Based on Android 4.1) class-5

Resources


1. Resources


Android supports that resources, like images and certain XML configuration files, can be keep separate from the source code.

These resources must be defined in the res directory in a special folder dependent on their purpose. You can also append additional qualifiers to the folder name to indicate

SCJP Sun Certified Programmer for Java 6 Study Guide Exam(310-065) Class-5

Declarations and Access Control


We assume that because you're planning on becoming certified, you already know the basics of Java. If you're completely new to the language, this chapter—and the rest of the tutorial—will be confusing; so be sure you know at least the basics of the language before diving into this tutorial. That said, we're starting with a brief, high-level refresher to put you back in the

Tuesday 22 January 2013

E-R diagram for favourite sports team statistics

Q) Design an E-R diagramfor keeping track of the exploits of your favourite sports team. You should store the matches played, the scores in eachmatch, the players in each match and individual player statistics for each match. Summary statistics should be modeled as

SCJP Sun Certified Programmer for Java 6 Study Guide Exam(310-065) Class-4

Test-Taking Techniques


Without a plan of attack, candidates can become overwhelmed by the exam or become side-tracked and run out of time. For the most part, if you are comfortable with the material, the allotted time is more than enough to complete the exam. The trick is to keep the time from slipping away during

Android Development Tutorial (Based on Android 4.1) class-4

Android Application Architecture


1. AndroidManifest.xml


The components and settings of an Android application are described in the AndroidManifest.xml file. For example all Activities and Services of the application must be declared in

Saturday 19 January 2013

E-R diagram for marks database

Consider a database used to record the marks that students get in different exams of different course offerings.

a) Construct an E-R diagram that models exams as entities, and uses a ternary relationship, for the above database.

Answer :

SCJP Sun Certified Programmer for Java 6 Study Guide Exam(310-065) Class-3

Tips on Taking the Exam


There are 72 questions on the 310-065 (Java 6) exam. You will need to get at least 47 of them correct to pass—around 65%. You are given over three hours to complete the exam. This information is subject to change. Always check with Sun before taking the exam, at www.suned.sun.com.

You are allowed to answer questions in any order, and you can go

Android Development Tutorial (Based on Android 4.1) class-3

Android Development Tools


1. Android SDK


The Android Software Development Kit (SDK) contains the necessary tools to create, compile and package Android application. Most of these tools are command line based.

The Android SDK also provides an Android device emulator, so that Android applications can be tested without a real Android phone. You can create Android virtual devices (AVD) via

Thursday 17 January 2013

SCJP Sun Certified Programmer for Java 6 Study Guide Exam(310-065) Class-2

Taking the Programmer's Exam


In a perfect world, you would be assessed for your true knowledge of a subject, not simply how you respond to a series of test questions. But life isn't perfect, and it just isn't practical to evaluate everyone's knowledge on a one-to-one basis.

For the majority of its certifications, Sun evaluates candidates using a computer based testing service operated by Sylvan Prometric. This

Android Development Tutorial (Based on Android 4.1) class-2

Other Android components


Android has several more components which can be used in your Android application.

Intents


Intents are asynchronous messages which allow the application to request functionality from other components of the Android system, e.g. from Services or Activities. An application can call a component directly (explicit Intent) or ask the Android system to evaluate registered components based on the Intent data (implicit Intents ). For example the application could implement sharing of data via an

Wednesday 16 January 2013

SCJP Sun Certified Programmer for Java 6 Study Guide Exam(310-065)

In This Tutorial


This Tutorial is organized to optimize your learning of the topics covered by the SCJP Java 6 exam. Whenever possible, we've organized the chapters to parallel the Sun objectives, but sometimes we'll mix up objectives or partially repeat them in order to present topics in an order better suited to learning

Android Development Tutorial (Based on Android 4.1) class-1

1. What is Android?


Android Operation System:


Android is an operating system based on Linux with a Java programming interface.

The Android Software Development Kit (Android SDK) provides all necessary tools to develop Android applications. This includes a compiler, debugger and a device emulator, as well as its own virtual

Friday 11 January 2013

Floating point representation

The floating point representation of a number has two parts. The first part represents a signed, fixed point number called the mantissa. The second point designates the position of the decimal point and is called as the exponent. The fixed mantissa may be a

Wednesday 9 January 2013

E-R diagram for a university

A university registrar’s office maintains data about the following entities:

(a) courses, including number, title, credits, syllabus, and prerequisites;

(b) course offerings, including course number, year, semester, section number, instructor(s), timings, and

Sunday 6 January 2013

Binary Multiplication & Binary Division

Binary Multiplication


Binary multiplication is performed in same way as decimal numbers. A simplistic way to perform multiplication is by repeated addition. The multiplication rules for binary digits is as follows

Thursday 3 January 2013

Explain the distinctions among the terms primary key, candidate key, and superkey.

Answer: A superkey is a set of one or more attributes that, taken collectively, allows us to identify uniquely an entity in the entity set. A superkey may contain extraneous attributes. If K is a superkey, then so is any superset of K. A superkey for which no proper subset is also a superkey is called a candidate