Computer Guess Paper for C++ and Java

Topics: Object-oriented programming, C++, Subroutine Pages: 5 (694 words) Published: August 15, 2013
Paper I
Shree M. & N. Virani Science College
BCA III || C++ and Object Oriented Programming
Time : 2.5 HoursMarks : 70

Section I
Q – 1Multiple Choice Questions 20 Marks
1) What punctuation is used to signal the beginning and end of code blocks? A) { }B) -> and
5) The wrapping up of data and functions into a single unit is called____________ A) Data BindingB) EncapsulationC) AbstractionD) None 6) Dynamic binding is also known as ___
A) Early bindingB) Static bindingC) Late bindingD) None 7) In C++, a function contained within a class is called _________ A) Non-member functionB) Member function
C)Static functionD) None
8) _________ provides an alias for a previously defined variable. A) VariableB) Reference variable
C) Pointer variableD) none
9) A const modifier defaults to ______.
A) FloatB) int C) char D) double
10) When a function is declared _________ the compiler replaces the function call with the respective function code. A) Static B) ConstC) inlineD) private
11) The keywords private and public are known as __________. A) Visibility labelsB) ModeC) class membersD) functions 12) ________ is initialized to zero when the first object of its class is created. No other initialization is permitted. A) Data membersB) Member function

C) Static functionD) static data members
13) Memory space for _________ is allocated separately for each object. A) FunctionsB) Member variables
C) Member functionsD) none of these
14) __________ Function has access to the private members of the class. A) FriendB) StaticC) ConstD) none of these
15) ________ is a special member function whose task is to initialize the object of its class. A) DestructorB) friend functionC) ConstructorD) none of these 16) The stream which provides data to the program is called _________. A) input streamB) output streamC) data streamD) none of these 17) We can desing our own manipulators.

A) TrueB) False
|_____ feature facilitates the supply of argument to the main(). | |A) Command Line Argument B) File C) Random Access D) none of these | |_____ parameter is used to open a file for reading purpose only. | |ios::out B) ios::in C) ios::ate D) ios::app | | | | | | | | | | | |Classes are useful in C++ because they ______ | | |permit data to be hidden from other classes | | |can closely model objects in the real world | | |bring together all aspects of an entity in one place | | |all of above | | | | | | | | | | |

Section II |Q -2 |Attempt...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Java Essay
  • Computer Programming (C++) Essay
  • Computer Literacy Research Paper
  • Essay on Computer Java
  • C++ solution Essay
  • computer Essay
  • Java Essay
  • Java Essay

Become a StudyMode Member

Sign Up - It's Free