1.4161
.
;;-
"::
--- Content provided by FirstRanker.com ---
-11
17CS42
Fourth Semester B.E. Degree Examination, Dee.2
-
--- Content provided by FirstRanker.com ---
019?-rin.2020Object Oriented Concepts
Time: 3 hrs.
Max. Marks: 100
Note: Answer FIVE full questions, choosing ONE full question from each module.
--- Content provided by FirstRanker.com ---
Module-1. _
P 1 a. Explain how C++ allows member functions in structures. Give example.
E.
(06 Marks)
--- Content provided by FirstRanker.com ---
7. b. What is data abstraction? How is it implemented in C++? (06 Marks)P
c. What is function overloading? Write a C++ program to define three overloaded functions
. --
area ( ) to find area of circle, triangle and rectangle. (08 Marks)
--- Content provided by FirstRanker.com ---
ma..) ,
OR
to
cz ?
--- Content provided by FirstRanker.com ---
=2 a. How we can make some specific member functions of one class friendly to another class?
.... ,, ,z;
(06 Marks)
? .7E '
--- Content provided by FirstRanker.com ---
b.What is constructor? List the different types of constructors and explain default constructor II
ti)
.
+ with example. (08 Marks)
--- Content provided by FirstRanker.com ---
4 ,..c.
What is static member of a class? Write a C++ program to count the number of objects 7 .?
... -_,
created. (06 Marks)
--- Content provided by FirstRanker.com ---
1., cr.': =- -. )
Module-2
3 a. List and explain the java buzzwords. (08 Marks)
b. Explain the concepts of arrays in java with examples. (07 Marks)
--- Content provided by FirstRanker.com ---
Pc. Explain type conversion in java with an example. (05 Marks)
cZ
OR
4 a. Write a java program to initialize and display different types of integer and floating point
--- Content provided by FirstRanker.com ---
>variables. (05 Marks)
0 b. List and explain different jump statements used in java with examples.
0
(07 Marks)
--- Content provided by FirstRanker.com ---
c. List and explain different iteration statements used in java with examples. (08 Marks)E
?-?
C.)
Module-3
--- Content provided by FirstRanker.com ---
3c7;
5 a. Write a program in java to implement a stack operations that can hold 10 integers. (07 Marks)
c.)
b. Compare and contrast method overloading and method overriding with examples. (08 Marks)
--- Content provided by FirstRanker.com ---
cr;c. Describe the significance of super in java. Give example. (05 Marks)
0
'F)
OR
--- Content provided by FirstRanker.com ---
E >6 a.
Define package. What are the steps involved in creating user defined package with an
example. (08 Marks)
b. What is an exception? How java supports exception handling mechanism. Give example.
--- Content provided by FirstRanker.com ---
(07 Marks)o
c. Explain how variables in interfaces are used. Give example. (05 Marks)
z
Module-4
--- Content provided by FirstRanker.com ---
te
`
7 a. What is thread? Explain two ways of creation of threads. (07 Marks)
b. Describe thread priority. How to assign and get the thread priority. (07 Marks)
--- Content provided by FirstRanker.com ---
c. Explain the following with syntax and example,(i) wait ( ) (ii) notify ( ) (iii) notifyAll ( ). (06 Marks)
. 1 of 2
FirstRanker.com - FirstRanker's Choice
USN
--- Content provided by FirstRanker.com ---
1.4161.
;;-
"::
-
--- Content provided by FirstRanker.com ---
1117CS42
Fourth Semester B.E. Degree Examination, Dee.2
-
019?-rin.2020
--- Content provided by FirstRanker.com ---
Object Oriented ConceptsTime: 3 hrs.
Max. Marks: 100
Note: Answer FIVE full questions, choosing ONE full question from each module.
Module-1
--- Content provided by FirstRanker.com ---
. _P 1 a. Explain how C++ allows member functions in structures. Give example.
E.
(06 Marks)
7. b. What is data abstraction? How is it implemented in C++? (06 Marks)
--- Content provided by FirstRanker.com ---
Pc. What is function overloading? Write a C++ program to define three overloaded functions
. --
area ( ) to find area of circle, triangle and rectangle. (08 Marks)
m
--- Content provided by FirstRanker.com ---
a..) ,OR
to
cz ?
=
--- Content provided by FirstRanker.com ---
2 a. How we can make some specific member functions of one class friendly to another class?.... ,, ,z;
(06 Marks)
? .7E '
b.
--- Content provided by FirstRanker.com ---
What is constructor? List the different types of constructors and explain default constructor IIti)
.
+ with example. (08 Marks)
4 ,..
--- Content provided by FirstRanker.com ---
c.What is static member of a class? Write a C++ program to count the number of objects 7 .?
... -_,
created. (06 Marks)
1., cr.
--- Content provided by FirstRanker.com ---
': =- -. )Module-2
3 a. List and explain the java buzzwords. (08 Marks)
b. Explain the concepts of arrays in java with examples. (07 Marks)
P
--- Content provided by FirstRanker.com ---
c. Explain type conversion in java with an example. (05 Marks)cZ
OR
4 a. Write a java program to initialize and display different types of integer and floating point
>
--- Content provided by FirstRanker.com ---
variables. (05 Marks)0 b. List and explain different jump statements used in java with examples.
0
(07 Marks)
c. List and explain different iteration statements used in java with examples. (08 Marks)
--- Content provided by FirstRanker.com ---
E?-?
C.)
Module-3
3
--- Content provided by FirstRanker.com ---
c7;5 a. Write a program in java to implement a stack operations that can hold 10 integers. (07 Marks)
c.)
b. Compare and contrast method overloading and method overriding with examples. (08 Marks)
cr;
--- Content provided by FirstRanker.com ---
c. Describe the significance of super in java. Give example. (05 Marks)0
'F)
OR
E >
--- Content provided by FirstRanker.com ---
6 a.Define package. What are the steps involved in creating user defined package with an
example. (08 Marks)
b. What is an exception? How java supports exception handling mechanism. Give example.
(07 Marks)
--- Content provided by FirstRanker.com ---
oc. Explain how variables in interfaces are used. Give example. (05 Marks)
z
Module-4
t
--- Content provided by FirstRanker.com ---
e`
7 a. What is thread? Explain two ways of creation of threads. (07 Marks)
b. Describe thread priority. How to assign and get the thread priority. (07 Marks)
c. Explain the following with syntax and example,
--- Content provided by FirstRanker.com ---
(i) wait ( ) (ii) notify ( ) (iii) notifyAll ( ). (06 Marks). 1 of 2
OR
8 a. What is meant by deadlock? How to avoid deadlock? Give example. (10 Marks)
b. Briefly explain the role of inner class and anonymous inner class in java. (05 Marks)
--- Content provided by FirstRanker.com ---
c. What is an event class? List and explain different event classes available in java. (05 Marks)Module-5
9 a. Explain the five methods of Applet. (05 Marks)
b. Explain the HTML Applet tag with syntax and example. (07 Marks)
c. Write a swing program for displaying any one of the options : C, C++, Java, PHP through
--- Content provided by FirstRanker.com ---
the selection of combo box by clicking the show button. (08 Marks)OR
10 a. Explain with syntax:
(i) JLabel (ii) JTextField (iii) JButton (iv) JCheckBox (v) JComboBox.
(10 Marks)
--- Content provided by FirstRanker.com ---
b. Write a program to create a table with column headings such as Fname, Lname, Address,Age and insert at least 5 records in the table and display. (10 Marks)
* * * * *
k \--Y-
--- Content provided by FirstRanker.com ---
ifr
-r.\ G\-'"
,/
,
--- Content provided by FirstRanker.com ---
concge2 of 2
FirstRanker.com - FirstRanker's Choice