Bihar SBTE Polytechnic Diploma Computer Science & Engineering 4 Sem May 2019 OOP Paper
Sr. No. | Questions with options |
1 | Which type is best suited to represent the logical values?
(a) Integer (b) Boolean (c) Character (d) All of the above |
2 | Is the size of character literal different in C & C++
(a) Implementation defined (b) Can’t say (c) Yes they are different (d) No , they are not different |
3 | Size of C++ objects are expressed in terms of multiples of size of a ____and the size of char is ______
(a) Char, 1 (b) Int, 1 (c) Float, 8 (d) Char, 4 |
4 | ______ have the return type void?
(a) All functions (b) Constructors (c) Destructors (d) None |
5 | Which variable does equals in size with enum variable
(a) Int (b) Float (c) String (d) None |
6 | The constraints are also called as
(a) Const (b) Preprocessor (c) Literals (d) None of the above |
7 | The declaration of structure is also called as ?
(a) Structure creator (b) Structure signifier (c) Structure specifier (d) None of the above |
8 | Which operator is having the highest precedence?
(a) Postfix (b) Unary (c) Shift (d) Equality |
9 | What type of comments does C++ support?
(a) Single line (b) Multi line (c) Single and multiline (d) None |
10 | Which is more effective while calling the function?
(a) Call by value (b) Call by reference (c) Call by pointer (d) None |
11 | How many minimum number of functions are needed to be presented in C++
(a) 0 (b) 1 (c) 2 (d) 3 |
12 | Function overloading is also similar to which of the following?
(a) Operator overloading (b) Constructor overloading (c) Destructor overloading (d) None |
13 | Overloaded function are
(a) Very long function that can hardly run (b) One function containing another one or more functions inside it (c) Two or more functions within the same class with different features (d) None |
14 | Which other keywords are also used to declare the class other than class?
(a) Struct (b) Union (c) Object (d) Both struct and union |
15 | Which of these following members are not accessed by using direct member access operator?
(a) Public (b) Private (c) Protected (d) Both private and protected |
16 | Pick the other name of operator function
(a) Function overloading (b) Operator overloading (c) Member overloading (d) None |
17 | What is most suitable for returning the logical errors in the program?
(a) Use constructor and destructor (b) Set a global error indicator (c) Use break keyword (d) None of the above |
18 | Which of the following can derived class inherit?
(a) Members (b) Functions (c) Both member and functions (d) None of the above |
19 | Which of the following advantages we lose by using multiple inheritance?
(a) Dynamic binding (b) Polymorphism (c) Both dynamics binding & polymorphism (d) None |
20 | What will initialize the list of arguments in stdarg.h header file?
(a) va_list (b) va_start (c) va_arg (d) None |
Data Collected By – K. Jeyanthi | |
Published On – 21st April 2022 | |
Leave a Reply