This download link is referred from the post: DBATU B-Tech Last 10 Years 2010-2020 Previous Question Papers || Dr. Babasaheb Ambedkar Technological University
DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE
Mid Semester Examination - March 2019
Course: S.Y.B.Tech(CSE)
--- Content provided by FirstRanker.com ---
Subject Name: E-1 Object Oriented Programming in Java
Sem: II
Subject Code: BTCOE404
Date: 14/03/2019
Max Marks: 20
--- Content provided by FirstRanker.com ---
Duration: 1 Hr.
Instructions to the Students:
- Check that you have received a correct Question paper.
- Assume suitable data if necessary and mention it clearly.
- Draw NEAT labeled diagrams wherever necessary.
--- Content provided by FirstRanker.com ---
Q.1. Attempt Questions (1*6 = 6 Marks)
- What is "out" in statement System.out.println()?
- class name
- function
- object
- interface
--- Content provided by FirstRanker.com ---
- Range of data type "byte" in Java?
- -8 to +7
- 0 to 256
- -128 to +127
- -16 to +15
--- Content provided by FirstRanker.com ---
- System class is defined in
- java.util package
- java.lang package
- java.io.package
- none of these
--- Content provided by FirstRanker.com ---
- int x=0,y=0,z=0; x = (++x+y--) * z++; What will be value of x after execution?
- -2
- -1
- 0
- 1
--- Content provided by FirstRanker.com ---
- What will be the output if(1+1+1+1=4){ System.out.println("TRUE"); } else { System.out.println("FALSE"); }
- FALSE
- TRUE
- compiler error
- none of these
--- Content provided by FirstRanker.com ---
- size of int in java
- 32bit
- 16bit
- 64bit
- 8bit
--- Content provided by FirstRanker.com ---
Q. 2. Attempt any two of the following (2*3 = 6 Marks)
- List all features of object technology. Elaborate any three features with real world object.
- Write an application in Java to calculate the table of any number read by the user. Display the result in table format as shown. for eg 5*1=5 5*2=10 5*10=50
- Differentiate between Primitive Types and Reference Types.
--- Content provided by FirstRanker.com ---
Q.3. Attempt any one of the following (1*8 = 8 Marks)
- Design a class to represent a bank account. Include the following members :
Data members: Name of depositor, Account number, Type of account, Balance amount.
Methods: assign() to assign initial values, deposit() to deposit an amount, withdraw() to withdraw an amount after checking balance, display() to display name and balance. Create an object to access these methods. - Define Pseudocode. Take an example of class of 12 students had appeared an exam. The grade (marks) earned in this exam are input. Determine the average grade of this class. Do not use array. Formulate algorithm and write a program in java for same using counter control repetition.
--- Content provided by FirstRanker.com ---
***END***
Get more study materials at FirstRanker.com
--- Content provided by FirstRanker.com ---
This download link is referred from the post: DBATU B-Tech Last 10 Years 2010-2020 Previous Question Papers || Dr. Babasaheb Ambedkar Technological University