You are on page 1of 2

Revision Assignment

Basics of Programming.(Introduction of java)

1. What are the two things associated with an object?


2. What is class?
3. Enlist the principles of object oriented programming?
4. Write any 3 objects along with its properties and behaviour.
5. Explain inheritance along with its example.
6. Explain Polymorphism with example.
7. What is Encapsulation? Explain it with example.
8. Name the Character Set followed by Java?
9. Why class is called as an object factory?
10.What is abstraction?
11.What is data type? Explain with examples.
12. What is arithmetic operator in java?
13.Write the value of ‘c’ after executing the following segment of code.
a=5,b=10;
c=a%b;

14.Write the difference between Class and Object.


15. What is class? How are objects related to the class ?
16.What will be the result of the following two expressions if i=10 initially:
(i) ++i<=0 (ii) i++<=10
17.Explain the Identifier Naming Rules.
18.What are the keywords? Can keyword used as identifier.
19.What do you mean by an empty loop? Give example.
20. Write a valid Java statement for the following

Store a number 800.00 as a String.

21. Name the four integer data types of Java.


22. What is a “ternary operator” of Java?
23.What is meant by “nesting of loops”? Give suitable example.
24.Differentiate between int and float data type. Give one example for each.
25.Differentiate between data abstraction and data encapsulation.

26.What are the keywords?Can keyword used as identifier.


27.Is Java case sensitive ? What is the mean by case sensitive .
28. What is the function of operator?
29.Write a statement that uses a conditional operator to set grant to 10 if
speed is more than 68 and to 0 otherwise.
30.Enlist all logical operators along with the example and give the truth table
for each.

You might also like