Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
8 views
4 pages
Chapter 2
This are the notes of chapter 2 of class 10th icse
Uploaded by
sureshyadav4612
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save chapter 2 For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
8 views
4 pages
Chapter 2
This are the notes of chapter 2 of class 10th icse
Uploaded by
sureshyadav4612
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save chapter 2 For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save chapter 2 For Later
You are on page 1
/ 4
Search
Fullscreen
—= Questions * Define insta OL setts Ince variable, Give an example (ICSE 2007) 2. Menti ; ON any two attributes required for class declaration. : (ICSE 2008) 3. Explain instance variable, Give an example. (ICSE 2008) 4. @ What is the use Of the keyword this? (ii) Why is class Called a factory of objects? (ICSE 2009) 5. Consider the following code and answer the questions that follow ; (ICSE 2009) Class academic { Static int XY} Void access() { int a,b; academic student=new academic( ); System.out.printin(“Object Created”); } } (i) What is the object name of class academic? (ii) Name the class variable used in a program. (iil) Write the local variable used in the program, (iv) Give the type of function used and its name. 6. (i) Differentiate between static and non-static data members. on P ject called an instance of a Class? (ii) Why is an ob (ICCE on:pT cose a? nthe of the t ; method argument or argument variable i) ii) 18 ii toe civ) instance class myclass program given below, state the name and the value ss variable al variable variable (ICSE 2012) { F static int X74 ty? ; mule static void main(String args{]) «tess objenew myClass( ); gyster.out.printin(); op.sampleMethod( 5); int a=0% gystem.out.printin(a); } void sampleMethod(int n) { gystem.out.printin(n); gystem.out.printin(y); } } 8, () What is the difference between an object and a class? (ji) Which unit of the class gets called when the object of the class in created. (iii) Name the keyword that (a) informs that an error has occured in an input and output operation. (b) distinguishes between instance variables and class variables. (ICSE 2011) 9. Write a Java statement to create an object mp4 of class digital. (ICSE 2013) 10. Consider the following class : public class myClass { public static int x=3, y=4; Public int q=2, b=3; } (i) Name the variables for which each object of the class will have its own distinct copy. ii) Name the variables that are common to all objects of the class. (ICSE 2014)te 124 used to 11. Name the keyword which © ee between method param rand stan? ese it class? 12. Why is an object called an instance of a acse 201 2 a cla ys the vatite se 5019) 13. Name the keyword which make: methods variable. ie les ant 14. The blueprint that defines the variabl ae common to all of a certain Ki kind is is termed (a) class (p) object 2022) (©) package (@metiad CSE 15. class is us ype to its corresponding object. ) Wrapper (a) String pee a 2022) (c) System 16. Keyword to create an object ofa class is__—— sed to convert @ primitive data (a) create (b) new (c) New (anew ICSE 2022) 17. A_______method needs tobe called with the help ofan object. (a) void (b) return (d) static (ICSE 2022) (c) non-static 18. Parameters used in the method call statement are (a) Actual parameters (b) Informal parameters (d) Void parameters (c) Formal parameters (ICSE 2022) 19. (a) Identify the names of class variables and instance variables from code given below : class abe t static float a=5.0f; int b=20; } (b) From the above class and below code, find the output : abc ob1=new abe( }; obl.a+=20; ob1.b-=10; System.out.printin(ob1. a+"\t" + ob1.b); abc.ob2=new abel ); ob2.a+=50; ob2.b=90; System.out.printIn(ob2.a +‘\t" +0b2.b);108 en ces give output of the following program segment : 2 * ass ae { ; gia int joat bs wll abe(int x, float y) {a= si static woud main) Pp - oblenew abcl4, 8.5f); abe ob2=neW abc (obl.a +6, 2.5f); gystemout.printin(ob La +"\t'+ ob1.b); gystem-out.printin(ob2.a +"\t"+ 0b2.b); } class Assumption = 21. { private char S; private static int a; public int total ‘Assumption( ) (i) Write a statement to create an object of class Assumption in public static void main( ). (ii) Write a statement to display the value of s and total in public static void main( ). (iii) Write a statement to display the value of a in public static void main( ). 22. class xyz { static float x; } There are two ways to assign a value 5.5 to the static variable x mentioned above in public static void main( ). Write the two Java statements for the same, 23. Write a difference between a class and an object.
You might also like
Chapter 2 Class As Basis of All Computation
PDF
100% (1)
Chapter 2 Class As Basis of All Computation
9 pages
5 6206415991136585054
PDF
No ratings yet
5 6206415991136585054
86 pages
ISC Grade 11 Java Notes
PDF
No ratings yet
ISC Grade 11 Java Notes
5 pages
Revision Java
PDF
100% (1)
Revision Java
10 pages
Class and Methods
PDF
No ratings yet
Class and Methods
91 pages
Notes Batch 1215 Lyst1738575352991
PDF
No ratings yet
Notes Batch 1215 Lyst1738575352991
78 pages
05 Class and Object PR
PDF
No ratings yet
05 Class and Object PR
74 pages
Notes Batch 1215 Lyst1735889173989
PDF
No ratings yet
Notes Batch 1215 Lyst1735889173989
49 pages
More On Module2
PDF
No ratings yet
More On Module2
35 pages
This Tutorial Letter Contains Important Information About Your Assignment 2
PDF
No ratings yet
This Tutorial Letter Contains Important Information About Your Assignment 2
26 pages
Class XI Java Fundamental
PDF
100% (1)
Class XI Java Fundamental
10 pages
Lecture 10 Constructors
PDF
No ratings yet
Lecture 10 Constructors
20 pages
Question On Computer
PDF
No ratings yet
Question On Computer
7 pages
W M1
PDF
No ratings yet
W M1
53 pages
Class As The Basis of All Computation: Mental Drill
PDF
No ratings yet
Class As The Basis of All Computation: Mental Drill
34 pages
STD 12-CHAPTER-8
PDF
No ratings yet
STD 12-CHAPTER-8
7 pages
Java Tutorial 2 Answer
PDF
No ratings yet
Java Tutorial 2 Answer
9 pages
SG Unit2ProgressCheckMCQPartA 6317250ba9e087.6317250c9cf367.52127416
PDF
No ratings yet
SG Unit2ProgressCheckMCQPartA 6317250ba9e087.6317250c9cf367.52127416
7 pages
Grade10Set4 PDF
PDF
No ratings yet
Grade10Set4 PDF
13 pages
Aruu Koo
PDF
No ratings yet
Aruu Koo
48 pages
OOP Lab Solved 7 - 13
PDF
No ratings yet
OOP Lab Solved 7 - 13
80 pages
Hiranandani Foundation Computer Prelim
PDF
No ratings yet
Hiranandani Foundation Computer Prelim
8 pages
ICSE Questions On Functions1
PDF
100% (1)
ICSE Questions On Functions1
12 pages
10
PDF
No ratings yet
10
18 pages
Review Quiz - Attempt Review Cs1102
PDF
No ratings yet
Review Quiz - Attempt Review Cs1102
32 pages
Objects
PDF
No ratings yet
Objects
6 pages
OOP-Chapter 2-More-On - OOP - v1.0
PDF
No ratings yet
OOP-Chapter 2-More-On - OOP - v1.0
85 pages
CSC1016S 2022 Exam
PDF
No ratings yet
CSC1016S 2022 Exam
14 pages
Grade X Unit 2 - Class As The Basis of All Computation
PDF
No ratings yet
Grade X Unit 2 - Class As The Basis of All Computation
25 pages
Chapter 3 - Elementary Concepts of Objects and Classes: Ryan International School, Kharghar Computer Applications STD: Ix
PDF
No ratings yet
Chapter 3 - Elementary Concepts of Objects and Classes: Ryan International School, Kharghar Computer Applications STD: Ix
5 pages
Class As User Defined Data Type and Constructor
PDF
No ratings yet
Class As User Defined Data Type and Constructor
4 pages
Classes & Objects-1
PDF
No ratings yet
Classes & Objects-1
25 pages
OOP
PDF
No ratings yet
OOP
9 pages
OOP1 MT Set A Question Spring 19 20 Vdraft
PDF
No ratings yet
OOP1 MT Set A Question Spring 19 20 Vdraft
6 pages
Java Unit 3 (3.2 3.3)
PDF
No ratings yet
Java Unit 3 (3.2 3.3)
51 pages
Icse Class9 Oop Ch1 Ch2 Notes
PDF
No ratings yet
Icse Class9 Oop Ch1 Ch2 Notes
3 pages
Object Oriented Programming Techniques
PDF
No ratings yet
Object Oriented Programming Techniques
60 pages
JAVA Program List 21-22
PDF
No ratings yet
JAVA Program List 21-22
15 pages
Java Module2ISE
PDF
No ratings yet
Java Module2ISE
23 pages
ITS 1033 - Take Home Assignemnt 01
PDF
No ratings yet
ITS 1033 - Take Home Assignemnt 01
14 pages
SE120 Midterm1 Spring2018 SampleAnswer PDF
PDF
No ratings yet
SE120 Midterm1 Spring2018 SampleAnswer PDF
8 pages
Unit 1 2marks
PDF
No ratings yet
Unit 1 2marks
9 pages
642oswaal ICSE Mind Maps On Tips Notes Class 10 Computer Applications
PDF
No ratings yet
642oswaal ICSE Mind Maps On Tips Notes Class 10 Computer Applications
9 pages
OOP-Chapter 2
PDF
No ratings yet
OOP-Chapter 2
84 pages
Frank 1
PDF
No ratings yet
Frank 1
10 pages
CLASS X User Defined Methods Worksheet
PDF
No ratings yet
CLASS X User Defined Methods Worksheet
4 pages
OOP Lecture 04
PDF
No ratings yet
OOP Lecture 04
65 pages
Java Question
PDF
No ratings yet
Java Question
2 pages
JAVA Functions Based Programs Frank Function
PDF
No ratings yet
JAVA Functions Based Programs Frank Function
7 pages
Test Paper 2 - 2025
PDF
No ratings yet
Test Paper 2 - 2025
4 pages
3 - Classes, Objects, Methods
PDF
No ratings yet
3 - Classes, Objects, Methods
43 pages
Java Programming
PDF
No ratings yet
Java Programming
85 pages
CTA Most Likely Questions For ICSE Semester 2 (1) (1)
PDF
No ratings yet
CTA Most Likely Questions For ICSE Semester 2 (1) (1)
16 pages
Object Oriented Programming in Java
PDF
No ratings yet
Object Oriented Programming in Java
35 pages
Unit 2 (Java Btech)
PDF
No ratings yet
Unit 2 (Java Btech)
26 pages
Ch2-Elementary Concept of Data and Time
PDF
No ratings yet
Ch2-Elementary Concept of Data and Time
9 pages
New Class 10-Worksheet
PDF
No ratings yet
New Class 10-Worksheet
4 pages
Anand Nagar Ms Monika Tripathi CLASS X CFQ ANANDNAGAR
PDF
No ratings yet
Anand Nagar Ms Monika Tripathi CLASS X CFQ ANANDNAGAR
7 pages
Grade10 - Computer Application - Prelim1 - QP - 241228 - 114531
PDF
No ratings yet
Grade10 - Computer Application - Prelim1 - QP - 241228 - 114531
9 pages