II PU COMPUTER
SCIENCE – MODEL
PAPER 2023 SOLUTION
1.
Which among the following
is the fastest memory in a computer
that holds information?
a) Register b) Cache
c) Main memory d)
RAM
Ans:a) Register
2. The other name of Boolean algebra is
a) Switching algebra b)
Relational Algebra
c) Digital
Algebra d)
None of the above
Ans:a) Switching algebra
3.
The other name of NOT gate
is
a) Neglect gate b) Inverter
gate
c) XOR gate d) XNOR gate
Ans: b) Inverter gate
4. The data structure that
allows the insertion, as well as the deletion from both the ends,
are:
a) String b) Linked
List data structure
c) Stack
data structure d) Dequeue data structure
Ans:d) Dequeue data structure
5.
What is the other name used
for functions inside a class?
a) Member variables b) Member
functions
c) Class
functions d) Class
variables
Ans: b) Member functions
6.
Function cannot be overloaded when
a) Function names
are same b) Number
of parameters are different
c) Number
of parameters are same d) Data types of parameters
are different
Ans:c) Number of parameters are same
7.
The symbol used with constructor is
a) $ b)
&
c) Delta c)
~
Ans:c) ~ (it is used with destructor)
8.
Base class is
a) a sub class b) inherited
class
c) Main class d) First class
Ans:c) Main class
9.
Which of the following
is the correct way to declare a pointer?
a) int *ptr b)
int ptr
c) int &ptr d) All of
the above
Ans:a) int *ptr
10.
is called information.
a) Raw fact b) collection of data
c) Unprocessed data d) Processed data
Ans:d) Processed data