0% found this document useful (0 votes)
37 views

10th Basics of Java Revision 1

This document contains 30 questions about basic concepts in Java programming including objects, classes, inheritance, polymorphism, encapsulation, data types, operators, loops, and more. It asks the student to define terms, provide examples, explain concepts, and write code snippets to demonstrate their understanding of foundational Java topics. The questions cover both theoretical and practical aspects of object-oriented programming using the Java language.

Uploaded by

anon_495382324
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

10th Basics of Java Revision 1

This document contains 30 questions about basic concepts in Java programming including objects, classes, inheritance, polymorphism, encapsulation, data types, operators, loops, and more. It asks the student to define terms, provide examples, explain concepts, and write code snippets to demonstrate their understanding of foundational Java topics. The questions cover both theoretical and practical aspects of object-oriented programming using the Java language.

Uploaded by

anon_495382324
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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