Académique Documents
Professionnel Documents
Culture Documents
Model Paper
Subject Name : C ++
Q1 Program in a procedural language is a
(1)set of a code
(2)set of instruction
(3) set of lines
(4) none
Q3 The idea to combine data and functions into single unit is called_______
(1) Class
(2) Object
(3) function
(4)module
Q4 A feature in 00 language to change the data structure of an object without affecting the
operation of the program
(1) encapsulation
(2)data hiding
(3) data abstraction
(4)none
(4) all
(5) none
Q10 The main class is called the __________class and the class which share its properties are
called________
(1) base, derived
(2) derived, base
(3) inherited, base
(4) none
Q13 The program that we type into edit window is in the form of
(1) BCD
(2) ASCII
(3) EBCDIC
(4) NONE
(3) from#
(4) none
Q22 Which of the following escape sequence is used for form field
(1) \a
(2) \b
(3) \f
(4) \t
Q26 The manipulator causes the number that follows in the stream to be printed within a field ‘n’
(1) endl
(2) printf
(3) setw(n)
(4) none
Q29 _____________is one that has a fixed value throughout the program
(1) variable
(2) constant
(3) integer
(4) float
Q38 Structure is a
(1) module
(2) data type
(3) function
(4) keyword
Q50 When the execution of the loop depends on two variable or two conditions the statement can
be set up with two variables separated by
(1) semicolon
(2) colon
(3)comma
(4)dot
Q.52. __________is the abstract idea that can be represented with data structures and functions
(1) class
(2) object
(3) structure
(4) none
Q53 A class combines data and functions into a single programming unit is called
(1) encapsulation
(2) inheritance
(3) data abstraction
(4) none
Q55_________members can be accessed from any where in the program without restriction
(1) private
(2) public
(3) protected
(4) none
Q58 The formal difference b/w a class and structure is that in a class the members are
_______by default while they are ________in structure by default.
(1) private, public
(2) public, private
(3) protected, public
(4) none
Q59 Automatic initialization is carried out using a special member function called
(1) class
(2) structure
(3) constructor
(4) destructor
Q63 In the manipulator set ios flags (ios::fixed) the fixed flag prevents numbers from being printed
in ______________
(1) integer format
(2) floating format
(3) exponential format
(4) none
Q71 A member function in the base class can be used by objects of derived class is called
(1) encabsulation
(2) accessibility
(3) data hiding
(4) none
Q74 When the conversion is form class to basic the method is used in routine in destination
(1) casting function
(2) not available
(3) constructor
(4) none
Q75 ___________members are accessible from own class and accessible from derived class
(1 private
(2) public
(3) protected
(4) none
Q77 ___________class is the class used only for deriving other class
(1) abstract class
(2) base class
(3) derived class
(4) none
Q81 To include a user defined header file, you use__________instead of < > to specify the
header file
(1) “ “
(2) ‘’
(3) ( )
(4) [ ]
Q86 The function _________-is used to add an item to the linked list
(1) add ( )
(2) add item
(3) both (1)and(2)
(4) either (1)or (2)
Q92 The function which does not translate new line character into the carriage –return-plus line
feed
(1) c puts ( )
(2) c gets ( )
(3) c string( )
(4) string( )
Q98 The functions which fills the bounded region with colour is
(1) flood fill()
(2) flood()
(3) fill flood()
(4) fill style()
Q102 The function which is used to set the current views for graphics output is
(1) set view port()
(2) clear view port()
(3) get view port
(4) none
Q105 The functions like put(),put line() and write() are included in
(1) is tream class
(2) ostream class
(3) it stream class
(4) fstream
Q107 The classes used for input and to the video display and keyboard are declared in header
file
(1) fstream.h
(2) ostream
(3) both (1)and (2)
(4) either (1) or (2)
Q117 To write a file we use the function write ( ) which takes ___arguments ______and_______
(1) two,pointer,size
(2) three,pointer,size
(3) four,pointer,size
(4) none
Q124 To flush std out and stderr after insertion the flag is used
(1) stdio
(2) unibuf
(3) showpos
(4) hex