Вы находитесь на странице: 1из 3

Student Name: Hitesh Raghunath Dhake Class: S.

E
Roll_no: 12 Batch: S1

Chapter 6

1. Imprudent use of Goto statement leads to the


a) Unstructured spaghetti code
b) Infinite loop
c) Break Statement
d) None of them

Anwsers: a

2. A container class is a class whose instances are


a) Containers
b) Functions
c) Strings
d) None of them

Anwsers: a

3. A common activity performed on a container is called


a) Functioning
b) Iterator
c) Traversal
d) All of them

Anwsers: c

4. Containers have same types, that's why they are called


a) Heterogeneous
b) Homogeneous
c) Vectors
d) None of them

Anwsers: b

5. Templates are abstract recipe for producing a concrete code, and it is used for
a) Producing functions
b) Producing classes
c) Nothing
d) Both A and B

Anwsers: d

6. A template function is a function that is produced by


a) Functions
b) Arrays
c) Templates
d) None of them

Anwsers: C

7. Vectors have advantage of direct access that is also called as


a) Sequential access
b) Random access
c) Iterative access
d) None of them

Anwsers: b

8. Same template is used to generate many different instances, this can be done by
a) Functions
b) Template parameters
c) Operators
d) None of them

Anwsers: b

9. A stack is a simple data structure that simulates an ordinary stack of objects of


a) Same type
b) Different type
c) Integer type
d) Character type

Anwsers: a

10. An iterator is an object that has ability to traverse


a) Through a container object
b) Through a function
c) Through an array
d) All of them

Anwsers: a
11. An object that contains other objects, is called
a) Functions
b) Stacks
c) Arrays
d) Container

Anwsers: d

12. ANSI/ISO standard offers how many header files?


a) 56
b) 60
c) 80
d) 86

Anwsers: d

13. List and vector classes is defined in


a) STL classes
b) Assert function
c) String class
d) None of them

Anwsers: a

14. Which C header file contains only functions for manipulating null-terminated arrays of
characters
a) <stream.h>
b) <strfunction.h>
c) <string.h>
d) All of them

Anwsers: c

15. For large alphabets such as Chinese and Japanese alphabets, which C header file is
used?
a) <char.h>
b) <stddef.h>
c) <chr.h>
d) <wchar.h>

Anwsers: b

Вам также может понравиться