P2Pprogrammer 2 programmer

Home > Download > SMU - Question Paper > BSc IT > BT0074

OOPS with Java


This is the collection of Sikkim Manipal University (SMU) question and answers for OOPS with Java . It will help to prepare your examination. All question paper are classified as per semester, subject code and question type of Part A, Part B and Part C with multiple choice options as same as actual examination. SMU question papers includes year 2025, 2024, 2023 Sem I, II, III, IV, V, VI examinations of all subjects.

SMU question test set of old, last and previous year are updated regularly and it is absolutely free to use. Question paper includes Visual basic 6, VB.Net, C#, ASP.Net, Web, Oracle, Database, SQL, Software Engineering, C, C++, OOPS, MBA, MCA, BSC IT I have requested you kindly send me the question paper of OOPS with Java , SMU - Bachelor of Science in Information Technology.

Course Name        BSc IT (Bachelor of Science in Information Technology)

Subject Code       BT0074 (OOPS with Java )

Get Questions        PART - A    PART - B    PART - C

Subject : OOPS with Java

     BT0074 : PART - B    


Q. 1In the following code segment, locate the
errors and correct them this code is written to
calculate area of a triangle using the formula
A =1/2 * base * height // upto two digits of
precision
class Shape ( int base, int height) // Line
 A)Computation at line 3 will always result in zero; type-casting is required
 B)Line 2 has to be modified to allow compute to return a real number upto 2 digits of precision
 C)Both A) and B)
 D)There are no errors ; now the function is required that will call compute ( ) and get the result
   
Q. 2 Fill in the blanks
i) When an object of a _____ is created, the
base class constructor is executed followed by
its own constructor
ii) ___ are applied in the reverse order in a
class hierarchy
 A)friend class, templates
 B)derived class, destructors
 C)base class, constructors
 D)abstract class, inline function
   
Q. 3What does the following code represent?
Class A
{};
class B
{A a;}
 A)Inheritance
 B)Derived class
 C)Containership
 D)Polymorphism
   
Q. 4Fill in the blanks from the given set of
words.
"Run-time polymorphism is implemented by
using
i) Operator overloading
ii) Inheritance
iii) Virtual functions
iv) Function overloading
 A)ii) and iii)
 B)i) and iv)
 C)iii) and iv)
 D)None of these
   
Q. 5Which of the following operators can be
overloaded in C++ ?
 A)>
 B)=
 C)C)? :
 D)None of these
   
Click here to get OOPS with Java (BT0074 ) New Question


Home > Download > SMU - Question Paper > BSc IT > BT0074