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

JAVA MODEL QUESTION

Uploaded by

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

JAVA MODEL QUESTION

Uploaded by

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

GOVERNMENT ARTS AND SCIENCE COLLEGE, PENNAGARAM

DEPARTMENT OF COMPUTER SCIENCE


MODEL EXAMINATIONS
TIME 3:00 JAVA PROGRAMMING MAX MARK: 75
PART A (Answer All The Question) DATE:24-04-2023
1. Number of primitive data types in Java are?
A. 6 B.7 C.8 D.9
2. What is the size of float and double in java?
A. 32 and 64 B.32 and 32 C.64 and 64 D.64 and 32
3. Automatic type conversion is possible in which of the possible cases?
A. Byte to int B.Int to long C.Long to int D.Short to int
4. Select the valid statement.
A. char[] ch = new char(5)
B. char[] ch = new char[5]
C. char[] ch = new char()
D. char[] ch = new char[]
5. When an array is passed to a method, what does the method receive?
A. The reference of the array
B. A copy of the array
C. Length of the array
D. Copy of first element
6. Arrays in java are?
A. Object references
B. objects
C. Primitive data type
D. None
7. When is the object created with new keyword?
A. At run time B.At compile time C.Depends on the code D.None
8. Identify the corrected definition of a package.
A. A package is a collection of editing tools
B. A package is a collection of classes
C. A package is a collection of classes and interfaces
D. A package is a collection of interfaces
9. In which of the following is toString() method defined?
A. java.lang.Object
B. java.lang.String
C. java.lang.util
D. None
10. compareTo() returns
A. True B.False C.An int value D.None
11. Identify the return type of a method that does not return any value.
A. int
B. void
C. double
D. None
12. Who invented Java Programming?
A. Guido van Rossum
B. James Gosling
C. Dennis Ritchie
D. Bjarne Stroustrup
13. Who invented Java Programming?
A. Guido van Rossum
B. James Gosling
C. Dennis Ritchie
D. Bjarne Stroustrup
14. What is not the use of “this” keyword in Java?
A. Referring to the instance variable when a local variable has the same name
B. Passing itself to the method of the same class
C. Passing itself to another method
D. Calling another constructor in constructor chaining
15. What is the extension of compiled java classes?
A. .txt
B. .js
C. .class
D. .java
PART B (write any two questions) 5 marks

1. Write short notes on “OOPS concept”?


2. Write short notes on “JVM”?
3. Write short notes on “Strings”?
4. Write short notes on “Thread life cycle”?
5. Write short notes on “Applet life cycle”?
PART C (Answer All The Question) 10 marks

1. A. Brief notes on”One Dimensional Array”?


OR
B. Brief notes on” Constructor”?
2. A. Brief notes on” Method overloading”?
OR
B. Brief notes on” Fiber Distributed Data Interconnect and ATM”?
3. A. Brief notes on”Packages”?
OR
B. Brief notes on” Exception Handling”?
4. A. Brief notes on” Multithreading”?
OR
B. Brief notes on” Creating & Executing An Applet”?
5. A. Brief notes on”Input Output Streams”?
OR
B. Brief notes on” Graphics Class”?

**********ALL THE BEXT**********

You might also like