Part-A
Multiple Choice Questions
1) Who is the developer C++?
a) Von Neumann
b) Dennis M. Ritchie
c) Charles Babbage
d) Bjarne Stroustrup
Answer:- d) Bjarne Stroustrup
2) The smallest individual unit in a program is called _____.
a) Token
b) Language
c) Data
d) None of these
Answer:- a) Token
3) String Terminator character is _____.
a) '\t'
b) '\v'
c) '\o'
d) None of these
Answer:- d) None of these || '\0' Null Character
4) In C++ cin, cout, cerr are predefined stream ____.
a) Operator
b) Function
c) Object
d) None of these
Answer:- c) Object
5) Relational operators are ____.
a) +, -, *, /
b) &&, ||, !
c) ?, :
d) <, >, <=, >=, ==, !=
Answer:- d) <, >, <=, >=, ==, !=
6) Evaluate of x=++y*5 if y=10 is ___.
a) 50
b) 55
c) 10
d) None of these
Answer:- b) 55
7) do-while loop checks condition on _____.
a) Top
b) left
c) bottom
d) None of these
Answer:- c) bottom
8) Wrapping up of data and functions in to a single unit is called _____.
a) Inheritance
b) Polymorphism
c) Encapsulation
d) None of these
Answer:- c) Encapsulation
9) Which of the following correctly declares an object of a class?
a) Class student;
b) Student ob;
c) Student S[ ]
d) None of these
Answer:- b) Student ob;
10) Static member function is invoked by using the _____.
a) Class name
b) Object name
c) Dot operator
d) None of these
Answer:- a) Class name
11) An inline function is ____.
a) declared and defined inside the class
b) prefix with keyword inline
c) called at compile time
d) None of these
Answer:- b) Prefix with keyword inline
12) Function overloading implements the _____ concept of OOPs.
a) Polymorphism
b) Inheritance
c) Abstraction
d) None of these
Answer:- a) Polymorphism
13) In public Inheritance, a public data member of the base class will be treated in a derived class as ___.
a) Public
b) Private
c) Protected
d) None of these
Answer:- a) Public
14) The chain depicting the derivation of a class from multiple base classes is called __.
a) Containership
b) Inheritance graph
c) Inheritance path
d) None of these
Answer:- c) Inheritance path
15) The allocation of memory at run time is referred to as _____.
a) Static Memory Allocation
b) Dynamic Memory Allocation
c) Computer Memory Allocation
d) None of these
Answer:- b) Dynamic Memory Allocation
16) A pointer variable declaration is done as ___.
a) data type *variable;
b) *data type variable;
c) data type variable*;
d) none of these
Answer:- a) data type *variable;
17) Elements that can be added or removed at both ends are called
a) Straight queue
b) Deque
c) Circular queue
d) None of these
Answer:- b) Deque
18) Which header file is required for creating and manipulating data files in C++?
a) string.h
b) math.h
c) fstream.h
d) None of these
Answer:- a) fstream.h
19) Number of tuples in a relation is called
a) Degree
b) Cardinality
c) Attributes
d) None of these
Answer:- b) Cardinality
20) Set of possible values that an attribute can have, is called
a) Tuple
b) Domain
c) Column
d) None of these
Answer:- b) Domain
21) Which of the following is not a data manipulation language command?
a) INSERT
b) DELETE
c) UPDATE
d) COMMIT
Answer:- d) Commit
22) The dual of the Boolean expression AB + A'B + 1 is
a) (A + B) (A' + B) + O
b) (A + B) (A' + B) . O
c)
d) None of these
23) Maxterm designation of X' + Y + Z + W' is
a) M9
b) m9
c) m4
d) None of these
24) A location on a net server is called a
a) Web Browser
b) Telnet
c) Website
d) None of these
Answer:- c) Website
25) The data transmission rate is measured in ____.
a) Metre
b) Baud
c) Amplitude
d) None of these
Answer:- b) Baud
26) Define Literal.
27) What will be the size of the following constants?
a) "U\a"
b) "JAC-2024"
28) What data types should you use to represent the following items?
a) The average marks in the class.
b) The number of employees in an organisation.
29) What is structure?
30) Evaluate the following expressions:
a) F = a + b / a where a = 5, b = 3
b) F = (a++) * d + 4 where a = 10, d = 5
31) What do you mean by Abstraction?
32) Write any two advantages of e-mail.
33) Define Encapsulation.
34) Expand the following:-
a) SIM - Single Inline Module
b) HTTP - Hyper text transfer protocol
35) Define Polymorphism. Give an example to show it's implementation in C++.
36) What is the advantage and disadvantage of inline function?
37) What are the advantage offered by inheritance?
38) What is Constructor? Explain with example.
39) Evaluate the post fix expression using stack and show the contents of stack after execution of each operation:
120, 45, 20, +, 25, 15, -, +, *
40) What is a relation? What is the difference between tuple and an attribute?
41) Draw a logic circuit diagram for the following expression:
Y = AB + B'C + C'A'
42) What are the various levels of data abstraction in a database system? Explain.