Exam Details
Subject | object-oriented programming concepts & programmingoocp) | |
Paper | ||
Exam / Course | mca | |
Department | ||
Organization | Gujarat Technological University | |
Position | ||
Exam Date | December, 2018 | |
City, State | gujarat, ahmedabad |
Question Paper
1
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
BE SEMESTER-V EXAMINATION WINTER 2018
Subject Code:2150704 Date:11/12/2018
Subject Name:Object Oriented Programming using JAVA
Time: 10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
MARKS
Q.1
Define following.
Byte code
Java Virtual Machine
Unicode
03
Write a program which takes five numbers as command line argument from user, store them in one dimensional array and display count of negative numbers.
04
What do you mean by Interface? Compare interface and abstract class with suitable example.
07
Q.2
When will you declare a method as a static? Explain static method with suitable example.
03
Explain inner class with example.
04
Explain following keywords of java with example.
final
finally
07
OR
Explain following keywords of java with example.
super
this
07
Q.3
What is java collection framework? What are the benefits of the java collection framework?
03
What is Exception? Demonstrate how you can handle different types of exception separately.
04
What is dynamic method dispatch? Explain with suitable example.
07
OR
Q.3
What is wrapper class? What is the use of wrapper class in Java?
03
What do you mean by Overloading? Explain constructor overloading with suitable example.
04
Explain following keywords with example
throw
throws
07
Q.4
Write a program that reads file name from user, through command line argument and displays/reads content of the text file on console.
03
What is package? What are the requirements of it? What we can achieve using package?
04
What is multithreading? What are the ways in which you can create a thread? Explain with Example
07
2
OR
Q.4
Write a program that accepts name of website from user, and displays IP address of it on console.
03
What will be the output of following code snippet?
class evaluate
public static void main(String
int new
int n
n arr[arr[n]
System.out.println(arr[n]
class equality
int
int
boolean isequal()
return(x
class Output
public static void main(String
equality obj new equality();
obj.x
obj.y
System.out.println(obj.isequal());
04
Explain use of following methods with suitable example isAlive(), setPriority().
07
Q.5
What is use of fork and join in activity diagram? Explain with suitable example.
03
What is UML? Explain Class Model, State Model and Interaction Model in brief.
04
Draw class diagram of bank management system.
07
OR
Q.5
What is usefulness of sequence diagram? List components of it.
03
Explain generalization in class diagram with example.
04
Draw use case diagram for hotel management system.
07
Seat No.: Enrolment
GUJARAT TECHNOLOGICAL UNIVERSITY
BE SEMESTER-V EXAMINATION WINTER 2018
Subject Code:2150704 Date:11/12/2018
Subject Name:Object Oriented Programming using JAVA
Time: 10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
MARKS
Q.1
Define following.
Byte code
Java Virtual Machine
Unicode
03
Write a program which takes five numbers as command line argument from user, store them in one dimensional array and display count of negative numbers.
04
What do you mean by Interface? Compare interface and abstract class with suitable example.
07
Q.2
When will you declare a method as a static? Explain static method with suitable example.
03
Explain inner class with example.
04
Explain following keywords of java with example.
final
finally
07
OR
Explain following keywords of java with example.
super
this
07
Q.3
What is java collection framework? What are the benefits of the java collection framework?
03
What is Exception? Demonstrate how you can handle different types of exception separately.
04
What is dynamic method dispatch? Explain with suitable example.
07
OR
Q.3
What is wrapper class? What is the use of wrapper class in Java?
03
What do you mean by Overloading? Explain constructor overloading with suitable example.
04
Explain following keywords with example
throw
throws
07
Q.4
Write a program that reads file name from user, through command line argument and displays/reads content of the text file on console.
03
What is package? What are the requirements of it? What we can achieve using package?
04
What is multithreading? What are the ways in which you can create a thread? Explain with Example
07
2
OR
Q.4
Write a program that accepts name of website from user, and displays IP address of it on console.
03
What will be the output of following code snippet?
class evaluate
public static void main(String
int new
int n
n arr[arr[n]
System.out.println(arr[n]
class equality
int
int
boolean isequal()
return(x
class Output
public static void main(String
equality obj new equality();
obj.x
obj.y
System.out.println(obj.isequal());
04
Explain use of following methods with suitable example isAlive(), setPriority().
07
Q.5
What is use of fork and join in activity diagram? Explain with suitable example.
03
What is UML? Explain Class Model, State Model and Interaction Model in brief.
04
Draw class diagram of bank management system.
07
OR
Q.5
What is usefulness of sequence diagram? List components of it.
03
Explain generalization in class diagram with example.
04
Draw use case diagram for hotel management system.
07
Other Question Papers
Subjects
- advance database management system
- advanced biopharmaceutics & pharmacokinetics
- advanced medicinal chemistry
- advanced networking (an)
- advanced organic chemistry -i
- advanced pharmaceutical analysis
- advanced pharmacognosy-1
- advanced python
- android programming
- artificial intelligence (ai)
- basic computer science-1(applications of data structures and applications of sql)
- basic computer science-2(applications of operating systems and applications of systems software)
- basic computer science-3(computer networking)
- basic computer science-4(software engineering)
- basic mathematics
- basic statistics
- big data analytics (bda)
- big data tools (bdt)
- chemistry of natural products
- cloud computing (cc)
- communications skills (cs)
- computer aided drug delivery system
- computer graphics (cg)
- computer-oriented numerical methods (conm)
- cyber security & forensics (csf)
- data analytics with r
- data mining
- data structures (ds)
- data visualization (dv)
- data warehousing
- data warehousing & data mining
- database administration
- database management system (dbms)
- design & analysis of algorithms(daa)
- digital technology trends ( dtt)
- discrete mathematics for computer science (dmcs)
- distributed computing (dc1)
- drug delivery system
- dynamic html
- enterprise resource planning (erp)
- food analysis
- function programming with java
- fundamentals of computer organization (fco)
- fundamentals of java programming
- fundamentals of networking
- fundamentals of programming (fop)
- geographical information system
- image processing
- industrial pharmacognostical technology
- information retrieving (ir)
- information security
- java web technologies (jwt)
- language processing (lp)
- machine learning (ml)
- management information systems (mis)
- mobile computing
- molecular pharmaceutics(nano tech and targeted dds)
- network security
- object-oriented programming concepts & programmingoocp)
- object-oriented unified modelling
- operating systems
- operation research
- operations research (or)
- pharmaceutical validation
- phytochemistry
- procedure programming in sql
- programming skills-i (ps-i-fop)
- programming skills-ii (ps-oocp)
- programming with c++
- programming with java
- programming with linux, apache,mysql, and php (lamp)
- programming with python
- search engine techniques (set)
- soft computing
- software development for embedded systems
- software engineering
- software lab (dbms: sql & pl/sql)
- software project in c (sp-c)
- software project in c++ (sp-cpp)
- software quality and assurance (sqa)
- statistical methods
- structured & object oriented analysis& design methodology
- system software
- virtualization and application of cloud
- web commerce (wc)
- web data management (wdm)
- web searching technology and search engine optimization
- web technology & application development
- wireless communication & mobile computing (wcmc)
- wireless sensor network (wsn)