P2Pprogrammer 2 programmer

Home > Download > SMU - Question Paper > BCA > BC0037

Object Oriented Programming Using C++


This is the collection of Sikkim Manipal University (SMU) question and answers for Object Oriented Programming Using C++. 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 2024, 2023, 2022 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 Object Oriented Programming Using C++, SMU - Bachelor of Computer Application.

Course Name        BCA (Bachelor of Computer Application)

Subject Code       BC0037 (Object Oriented Programming Using C++)

Get Questions        PART - A    PART - B    PART - C

Subject : Object Oriented Programming Using C++

     BC0037 : PART - B    


Q. 1Consider the following command given at
the DOS prompt _ CA> multiply 10 20 30 Here
"multiply" is _
i) the name of the function performing
multiplication
ii) the name of the file containing the program
for multiplication
 A)i) only
 B)ii) only
 C)Both A) and B)
 D)None of these
   
Q. 2Which of these is the correct way to accept
a sentence of 25 characters maximum, from
the user into char str [25] in C ++?
 A)scatift"%s", str),
 B)cin.getLine (str, 25, '\n');
 C)cin.getline (str, '\'n'),
 D)None of these
   
Q. 3dentify the situations where inline
expansion may not work
1) If a loop, a switch or goto exists in functions
returning values
2) If a return statement exists, for functions not
returning valves
3. If functions contain static varia
 A)1), 2), 3)
 B)2), 3), 4)
 C)1), 3), 4)
 D)1), 2), 3), 4)
   
Q. 4In 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. 5How would you make use of the class
defined in Q.46 above and get-breadth of a
triangle computed if base and height are equal
to 10
 A)main() f Shapes (10, 10); cout << s.compute
 B)main shape s1 * s2; s2 & sl; s1.getdata //H 10, 10 should be entered by H user cout << * s2.compute
 C)main shape tri; tri. getdata //Huser enters 10, 10 cout << tri.compute
 D)D)None of the above
   
Click here to get Object Oriented Programming Using C++ (BC0037) New Question


Home > Download > SMU - Question Paper > BCA > BC0037