100% found this document useful (1 vote)
192 views4 pages

One Mark

The document appears to be a quiz or test covering various topics in C++ programming including object oriented programming concepts like inheritance and encapsulation, C++ language features like comments, loops, and functions, and I/O stream concepts like cin, cout, and file handling. It contains 30 multiple choice questions testing knowledge of basic C++ syntax, semantics, and standard library components for input/output. The questions cover defining structures, overloading functions, class blueprints, streams, and differences between C++ and other languages.

Uploaded by

baby
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
192 views4 pages

One Mark

The document appears to be a quiz or test covering various topics in C++ programming including object oriented programming concepts like inheritance and encapsulation, C++ language features like comments, loops, and functions, and I/O stream concepts like cin, cout, and file handling. It contains 30 multiple choice questions testing knowledge of basic C++ syntax, semantics, and standard library components for input/output. The questions cover defining structures, overloading functions, class blueprints, streams, and differences between C++ and other languages.

Uploaded by

baby
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

one marks

for unit 1

1)c++ is ______________and is based on___________;

a)structure oriented programming language,function

b)object oriented programming language,data

2) c++language was developed by __________;

a) Bjarene stroustrab
b)clocksin
c)donald e knuth
d)sir richard hadlee

3)the packing a think of data and function it a single comment is knowns_________;

a) inheritance
b) data apstraction
c) polymorphism
d) encapsulation

4)the methed if by which object of one class get the properties of object of
another class
is known as inheritance _______________;

a) polymorphism
b) Delegation
c) class
d) inheritance

5)which looping statement terminated my semi colon____________;

a)do-while
b)while
c)for
d)none of the above

6)output formats can be cotrolled by___________;

a)Manipulator
b)Bit files
c)Delegation
d)None of the above

7)the use of the break statement in a switch statement is_______________;

a)optional
b)compalsory
c)not allowed
d)to check an error

8)A function that changes the state of the count object is called
an______________;

a)member
b)operator
c)manipulator
d)adijuster

9)the newline charactor is always included between ____________;

a)pair of parenthesses
b)pair of curly braces
c)control string
d)&

10)to be called object -oriented ,a programming language must allow

a)include files
b)inhertance
c)function that return only a single value
d)all of above

11)the keyword used to define a structure is_________;

a)stt
b)srt
c)struct
d)structure

12)to enter a comment in a c++ progaram,you begin the comment with______;

a)&&
b)**
c)@
d)//

13)in nested loop__________________;

a)in the inner loop completed first


b)the outer loop was copleted first
c)both
d)none of the above

14)the consepts of declarating same function name with multiple definition is


___________;

a)function overloading
b)inline function
c)manipulator
d) control statement

15)composition of object in a class is known as_____________;

a)delegation
b)genericity
c)methods
d)object

16)the excution can be reused by_______________;

a)inheritance
b)reusability
c)both a&b
d)none of the above
17)which of the following statements uses two keywords ___________;

a)do-while
b)while
c)for
d)switch

18)which of the following approch is adapted by c++____________;

a)top-down
b)bottom-up
c)right-left
d)none of these

19)which of the following best defines a class____________;

a)parent of an object
b)instance of an object
c)blueprint of an object
d)scope of an object

20)what was the first purely oop language developed_________;

a)java
b)c++
c)small talk
d) kotlin

21)c++ is extended version of___________;

a)c
b)java
c)

22)c++ helps the programmer to write ____________which are easy to maintain

a)internet programming
b)clint/server programming
c)bug-free program

23)a buffer is a ___________that is used tohold input or output temporarily

a)block of ROM
b)block of RAM

24)clog it fully ______________version of error

a)buffered
b)pre-defined
c)translation

25)stream buffer is used to store_____________stream

a)i/p
b)o/p
c)class

26)the cin()function does not allow to enter the string with____________;


a)white space
b)blank space
c)none of the above

27)when the data is passed to output devices,then it is called____________;

a)destination stream
b) source stream
c)none of the above

28)iostream-with assign__________;

a)derived from iostream


b)formatted i/p
c)bidirectional stream

29)bitfiles contains_______types of fildes

a)3
b)5
c)2

30)assigning a value to the variable is called as___________;

a)variable initialization
b)variable declaration
c)none of the above

You might also like