How To Exam?

a knowledge trading engine...


Lovely Professional University 2010 B.C.A Computer Application Assignment-1 (JAVA) - Question Paper

Friday, 25 January 2013 03:40Web

Lovely Professional University
Home Work one
CAP 310: Modern Programming tools and Techniques I

Part A
Q:1 Define abstraction, encapsulation, modularity and hierarchy in your own terms.
Q:2 Sketch the object-oriented design or the Card game Black-Jack. elaborate the key objects? elaborate the properties and behaviours of these objects? How does the object interact?
Q:3 Sketch the object-oriented design of a system to control a Soda dispensing machine. elaborate the key objects? elaborate the properties and behaviours of these objects? How does the object interact?
Part B
Q:4 In an object oriented inheritance hierarchy, the objects at every level are more specialized than the objects at the higher levels. provide 3 real world examples of a hierarchy with this property.
Q:5 How do methods System.out.print() and System.out.println() differ? describe a java constant equal to 2.9979 X 108 that approximates the speed of light in meters per second.
Q:6 Write a code segment that describes a Scanner variable stdin that is associated with System.in. The code segment should than describe to int variables a and b, such that they are initialized with the next 2 input values from the standard input stream.

Q:7 Separately identify the keywords, variables, classes, methods and parameters in the subsequent definition:
import java.util.*;
public class test
{
public static void main(String[] args)
{
Scanner stdin = new Scanner(System.in);
System.out.print(“Number:”);
double n = stdin.nextDouble();
System.out.println(n + “ * “ + n + “ = “ + n * n);
}
}



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Lovely Professional University 2010 B.C.A Computer Application Assignment-1 (JAVA) - Question Paper