0% found this document useful (0 votes)
23 views3 pages

Questions:: Chapter 2: History and Development of Java

The document covers 12 chapters on object oriented programming and Java concepts like classes, objects, inheritance, arrays, methods and more. Each chapter contains multiple choice and fill in the blank questions and answers on the topics. The document is a reference for learning key concepts in OOP and Java through self-study questions and answers.

Uploaded by

Piyush Sarswat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views3 pages

Questions:: Chapter 2: History and Development of Java

The document covers 12 chapters on object oriented programming and Java concepts like classes, objects, inheritance, arrays, methods and more. Each chapter contains multiple choice and fill in the blank questions and answers on the topics. The document is a reference for learning key concepts in OOP and Java through self-study questions and answers.

Uploaded by

Piyush Sarswat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Chapter 1 : Object Oriented Programming (O0P)

I. Multiple choice questions:


1. (d) data 2. (a) object 3. (a) class
4. (b) encapsulation 5. (b) inheritance 6. (b) function
7. (C)class 8. (c) BASIC 9. (d) attributes
10. (b) data hiding
II. Fill in the blanks:
1. Object Oriented Programming 2. Object
3. Function 4. Polymorphism
5. Data Abstraction 6. Data, Function
7. Re-usability (Inheritance) 8. Data
9. Class 10. Inheritance

Chapter 2: History and Development of Java


I. Multiple choice questions:
1. (a) Application 2. (a) James Gosling 3. (a) Interpreter
4. (a) Upper and Iower case letters are distinguished 5. (b) java.math
6. (c) break 7. (a) A window based platform
10. (c) object code
8. (d) both (a) and (c) 9. (b) debugging

I. Fill in the blanks:


1. James Gosling 2. Internet Applets/Java Applets
3. Compiler 4. Byte code
5. Platform 6. Oak
7 Keywords 8. Java.math
10. Single line
9. BlueJ

of Data Types in Java


Chapter 3 : Concept
I. Multiple choice questions:
2. (c) Keyword 3. (a) Char varibale
1. (b) Literal
5. (a) String variable 6. (a) 65-90
4.(a) 9. (b) double
7. (c) 12/3 8. (c) object
boolean m = true
10. (a)

Chapter 4: Operators and Expressions in Java


I. Multiple choice questions:
2. (b) 10, 11 3. (c) 0
1. (b) n n = + 1
5. (c) 64 6. (a) 55.0
4. (d) None
8. (c) 15 9. (b) (101101)2
7. (a) 11
10. (b) 1
with BlueJ-X
Computer Applications
478 | Understanding
Chapter 5 : General Programming &r Decision Making in lava
choice questions:
1. Multiple
statement 2. (b) Braces 3. (b) Relational operators
1. (6) a default
and (b) 5. (d) both (a) and (b) 6. (b) d is the smallest no
4. (d) both (a)
operators 8. (a) if
7. (c) Logical
to be used in a switch statement
9. (c) is compulsory
error in the program
10. (c) run time

Chapter 6: lteration Through Loops


choice questions:
I. Multiple
1. (a) Iteration 2. (a) for 3. (a) do-while
above 5. (d) break 6. (c) while loop
4. (d) all of the
7. (b) outermost loop 8. (c) infinite 9. (d) all of the above
10. (a) 0

7: Using Library Classes


Chapter
I. Multiple choice questions:
2. (a) Java.io 3. (c) Import keyword
1. (b) Package 6. (a) Primitive data
4. (d) Exception handling 5. (b) throws
7. (C) Wrapper class 8. (b) Java.awt 9. (a) Package
stream and Output stream
10. (c) Input
II. Fill in the blanks:
3. java.io 4. writer
1. class 2. import
5. exception handling

8: String Manipulation in Java


Chapter
I. Multiple choice questions: 3. (a) 8 4. (a)
2. (b) U true or false
1. (c) concat() 7 (b)
5. (b) semicolon
6. (b) single quotes

8. (a) DYA

Chapter 9: Arrays
questions: 3. (c) subscripts
choice
I. Multiple 2. (c) 11th 6. (d) None
1. (b) int a[40] Index Number 9. (c) m.length
variable 5. (c) 49
4. (a) subscripted 8. (b) From 0 to
37 to code[1]
7 (a) Assign Classes)
10. (a) N-1 Printer
and
(Scanner
Input/Output
Basic
Chapter 10 : 3. Delimiters

blanks: 6. hasNextBoolean(
next()
I. Fill in the 2. Java.util 9. )
5. console
1. Scanner
8. hasNextFloat( )
4. white space
7. nextlnt( ) 5.
False

4. True 10. False


10. Any
'False': 3. True 9. True
'True' or
Write 8. False
. 2. False Answers | 479

1. True 7 True
6. True
Chapter 1 l : Functions/Methods

I. Fill in the blanks: 3. function header/ prototype


2. void
1. primitive 6. curly
5. a class
4. formal arguments 9. function overloading
8. header and body
7. class
10. nested
II. Tick the correct option: 3. (c) formal parameter
2. (c) actual parameter
1. (b) impure function return
function overloading 6. (a)
4.(a) call by reference 5. (b)
9. (a) Object
7. (d) void 8. (a)
A function within a function
10. (c)
II. Write True or False:
4. False 5. True
2. False 3. False
1. True

Chapter 12 Class as a User Defined Type


I. Multiple choice questions:
3. (b) Instance
1. (c) public 2. (a) private
they are declared
are not visible in the class, where
4. (c) They 7. (c) On the User's choice
5. (c) Protected 6. (b) public
Collection of classes
8. (d) All of the above 9. (b) Transparency 10. (c)

II. Fill in the blanks:


3. main class 4. public 5. public
1. fundamental 2. object
6. private 7. protected

Chapter 13 Constructors
I. Fill in the blanks:
4. member 5. default
1. constructor 2. no 3. object
9. default 10. return
word 8. reference
6. parameterized 7. This key

II. Write True or False:


4. True 5. True
2. True 3. False
1. False
8. False 9. False
6. False 7 False

Inheritance
Chapter 14 : Encapsulation and
I. Fill in the blanks: 3. Inheritance
2. Base class
1. Derived, Base 6. Derived
4. Base 5. Target 9. Public, Private, Protected
8. Private
7. Inheritance
10. Multilevel or Nested

II. Write True or False:


3. True 4. False 5. False
2. False
True 8. True 9. False
7. True
6. True

Applications with BlueJ-X


480 | Understanding Computer

You might also like