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

Oops Set-1

The document outlines the structure and content of a Common Assessment Test for the subject of Object Oriented Programming (CS3391) in the Department of Computer Science and Engineering. It includes various parts with questions related to OOP concepts, Java programming, and practical programming tasks. The test is divided into three parts: Part A with short answer questions, Part B with detailed explanation questions, and Part C requiring programming assignments.

Uploaded by

smonishacpt
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)
30 views3 pages

Oops Set-1

The document outlines the structure and content of a Common Assessment Test for the subject of Object Oriented Programming (CS3391) in the Department of Computer Science and Engineering. It includes various parts with questions related to OOP concepts, Java programming, and practical programming tasks. The test is divided into three parts: Part A with short answer questions, Part B with detailed explanation questions, and Part C requiring programming assignments.

Uploaded by

smonishacpt
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

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


COMMON ASSESSMENT TEST-1
COMMON ASSESSMENT TEST-1
YEAR/SEM: III/V DATE:
YEAR/SEM: III/V DATE:
Subject Code: CS3391-OBJECT ORIENTED PROGRAMMING [Link]
Time Three hours Subject Code: CS3391-OBJECT ORIENTED PROGRAMMING [Link]
PART-A (10 X 2= 20) Time Three hours
Answer all the questions PART-A (10 X 2= 20)
Answer all the questions
1. Define Object Oriented Programming. 1. Define Object Oriented Programming.
2. What are the features of Object Oriented Programming? 2. What are the features of Object Oriented Programming?
3. Whatis Java Interpreter? 3. Whatis Java Interpreter?
4. Define Abstraction. 4. Define Abstraction.
5. Whatis the difference between superclass and subclass? 5. Whatis the difference between superclass and subclass?
6. What are the four types of access modifiers? 6. What are the four types of access modifiers?
7. Whatis the difference between a static and anon-static inner class? 7. Whatis the difference between a static and anon-static inner class?
8. What is difference between Methods and Constructor? 8. What is difference between Methods and Constructor?
9. What are the steps for execution of a java program? 9. What are the steps for execution of a java program?
10. Distinguish between procedure oriented programming (POP) and Object 10. Distinguish between procedure oriented programming (POP) and Object
oriented programming.(OOP) oriented programming.(OOP)

PART-B ( 5 X 13 =65) PART-B ( 5 X 13 =65)

11. (a)(i)Explain the characteristics of OOPs. 11. a)(i)Explain the characteristics of OOPs.
(ii) Explain the features and characteristics of JAVA. (ii) Explain the features and characteristics of JAVA.

OR OR

(b) Explain Constructors with examples. (b) Explain Constructors with examples.

12. (a) What is JVM? Explain the internal architecture of JVM with neat sketch. 12. (a) What is JVM? Explain the internal architecture of JVM with neat sketch.
OR OR
(b) What are the different data types in JAVA? Explain each of them with (b) What are the different data types in JAVA? Explain each of them with
example. example.
13. (a) Explain the concepts of arrays in Java and explain its types with 13. (a) Explain the concepts of arrays in Java and explain its types with
examples? examples?
OR OR
(b) Discuss in detail the access specifiers available in Java. (b) Discuss in detail the access specifiers available in Java.
14. (a) . Discuss in detail about inner class. With its advantages.
14. (a) . Discuss in detail about inner class. With its advantages. OR
OR (b) Define Inheritance. With diagrammatic illustration and java programs
(b) Define Inheritance. With diagrammatic illustration and java programs illustrate the different types of inheritance with an example
illustrate the different types of inheritance with an example
15. (a) What are the three categories of control statements used in Java? Explain
15. (a) What are the three categories of control statements used in Java? Explain each category with example.
each category with example. OR
OR (b) (i) What is a method? How method is defined? Give example
(b) (i) What is a method? How method is defined? Give example (ii) State the purpose of finalize() method in java. With an example explain
(ii) State the purpose of finalize() method in java. With an example explain how finalize() method can be used in java program
how finalize() method can be used in java program
PART-C( 1X 16 =16)
PART-C( 1X 16 =16)
16. (a) Write a Java program to create a student examination database system that
16. (a) Write a Java program to create a student examination database system that prints the mark sheet of [Link] student name,marks in 6 [Link]
prints the mark sheet of [Link] student name,marks in 6 [Link] mark should be between 0 and 100.
mark should be between 0 and 100. If the average of marks is>= 80 then prints Grade ̳A‘
If the average of marks is>= 80 then prints Grade ̳A‘ If the average of marks is< 80 and >=60 then prints Grade ̳B‘
If the average of marks is< 80 and >=60 then prints Grade ̳B‘ If the average of marks is< 60 and >=40 then prints Grade ̳C‘
If the average of marks is< 60 and >=40 then prints Grade ̳C‘ Else prints Grade ̳D‘
Else prints Grade ̳D‘ OR
OR (b) Write a Java program to calculate electricity bill using inheritance. The
(b) Write a Java program to calculate electricity bill using inheritance. The program should get the inputs of watts per hour and unit rate. Check your
program should get the inputs of watts per hour and unit rate. Check your program for the following case : Assume a consumer consumes 5000 watts per
program for the following case : Assume a consumer consumes 5000 watts per hour daily for one month. Calculate the total energy bill of that consumer if per
hour daily for one month. Calculate the total energy bill of that consumer if per unit rate is 7 [1 unit = 1k Wh].
unit rate is 7 [1 unit = 1k Wh].

You might also like