0% found this document useful (0 votes)
15 views5 pages

2PU_CS_QP

The document contains a series of multiple-choice questions and answers related to computer science concepts, including data structures, programming errors, and logic operations. It is divided into parts, with Part A focusing on multiple-choice questions, Part B on short answer questions, Part C on detailed explanations, Part D on algorithms and definitions, and Part E on Boolean function reductions using K-maps. Each section is designed to test knowledge and understanding of computer science principles.

Uploaded by

jayanthnaik682
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views5 pages

2PU_CS_QP

The document contains a series of multiple-choice questions and answers related to computer science concepts, including data structures, programming errors, and logic operations. It is divided into parts, with Part A focusing on multiple-choice questions, Part B on short answer questions, Part C on detailed explanations, Part D on algorithms and definitions, and Part E on Boolean function reductions using K-maps. Each section is designed to test knowledge and understanding of computer science principles.

Uploaded by

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

AKSHARA PU COLLEGE, ANEKAL

2ND PU – COMPUTER SCIENCE


PART-A
I Select the correct answer from the choices given.
1. How many bits of data USB can transmit ?
(a) 127 bits (b) 12 megabits (c) 16 megabits (d) 128 bits

2. Dual of the expression X + 0 = X is


G) X .1 = X (b)X.0=X (c)X+1=X (d)X+1=1

3. Given the logic diagram the output is


(a) 0 (b) 1,0 (c)1 (d) 1,1

4. In one dimensional array if LB = 0 and UB = 10 then array size is


(a) 9 (b) -1 (c) 12 (d) 11

5. Identify the reason for the error in the following program segment
class temp
{
private : int x;
}
void main( )
{
temp t;
cout<<"enter the value of X”;
cin>> tx;

(a) Anon member function trying to access protected data member


(b) Member function trying to access private data member
(c) Anon member function trying to access public data member
(d) The main function trying to access private data member

6. Assertion (A) : Very efficient code can be generated using inline function.
Reason (R) : Inline function has complex data structure.
(a) Both A and Rare false (b) A is true and R is false
(c) A is false and R is true (d) Both A and Rare true

7. The symbol used with destructor


(a) ▪ (b) ꞉꞉ (c) ~ (d)*

8. The combination of any two types of inheritance is called


(a) Single level inheritance (b) Hybrid inheritance
(c) Multiple inheritance (d) Hierarchical inheritance

9. Where L1 cache is located?


(a) CPU (b) Memory (c) BIOS (d) Bus
10. Which law is also called as double inversion rule
(a) Complementarity (b) Idempotence (c) Commutative = (d) Involution

11. Given the logic diagram the output is


(a) 1 ,1(b) 0 (c) 1 (d) 1,0

12. Assertion (A): A Stack is a LIFO data structure


Reason (R): Addition and Deletion of items takes place at same end
(a) A is True and R is correct explanation
(b) A is False and R is correct explanation
(c) A is True and R is False
(d) A is False and R is also False

13. Examine the following C++ program segment, identify the error
class example
{
private : int x;
}
void main( )
{
example p;
}

(a) error due to incorrect object declaration


(b) error due to semicolon missing after class definition
(c) error due missing of public access specifier
(d) error due to invalid initialization of object

14. Statement (A): Friend function is a non member function


Statement (B): It has full access right to the private and protected members of the class
(a) A is True and B is False (b) A is False and B is True
(c) Both A and B are true (d) Both A and B are False

15. Zero argument constructor is


(a) default (b) parameterized (c) copy (d) overloaded

16. if a class is derived from more than one base class then it is called as
a) Single level inheritance (b) Hierarchical Inheritance
(c) Multiple Inheritance (d) Multilevel Inheritance

17. Which one of the following transfers eight bits of data at a time?
(a) Serial port (b) Parallel port (c) PS/2 (d) USB

18. Idempotent law states that


(a)X-X =X (b)X-0=0 ()X+1=1 (d) X=X
19. Given the logic diagram the output is
(a) 1,0 (b) 0,0(c) 1(d) 0

20. Statement (A): Array is collection homogenous elements


Statement (B): Array is an example for non-linear data structure

(a) Bothe A and B are True (b) A is False and B is True


(c) A is True and B is False (d) Bothe A and Bare False

21. Identify the syntax error in the following program segment


class box
{
private : int x
}:
void main( )
{
box b;
}

(a) Error due to semicolon missing after class definition


(b) Error due to semicolon missing at the data member declaration line
(c) Error due to missing public access specifier
(d) Error due to missing protected access specifier

22. Which of the following statements are correct with respect to function overloading
i) Functions name are sane
ii) Number of arguments are carne
iii) Number of arguments are different
iv) Data types of arguments are different

(a) i) and ii) are correct (b) i), ii) and are iii)current
(c) i), iii) and iv) are correct (d) ii) and iv) are correct

23. Which constructor does not accept any argument?


(a) Default (b) Parameterized (c) Copy (d)Overloaded

24. Another name of derived class


(a) Main class (b) Super class (c) Base class (4) Sub class

PART-B

Il Answer the following questions. Each question carries TWO marks

1. Prove algebraically that X(X+Y) = X


2. Realize OR gate using NAND gate.
3 .What is destructor? Write the symbol used for destructor.
4. What is constructor? Give an example.
5. Prove involution law
6. Realize AND using NOR gate.
7. Mention any two features of parameterized constructor.
8. State Indempotence law.
9. What is Tautology and Fallacy? 2
10. Define any two characteristics of object oriented programming.
11. What is constructor? Mention its types.

PART-C
IV Answer the following questions. Each question carries THREE marks: 4x3=12
1. Explain the characteristics of motherboard.
2. What is non-primitive data structure? Give any two examples.
3. What is UPS? Explain its types.
4. Write the memory representation of row-major matrix elements.
5. What is dynamic memory allocation? Mention the operators used to allocate and deallocate
memory space dynamically.
6. Explain any three file opening modes in data file handling.
7. White a note on Cache memory
8. What is primitive data structure? Explain any two operations on primitive data structure.
9. Write the logic symbol and truth table of OR gate.
10. what are the applications of stack data structure?
11. Give any three features of USB port

PART-D
V Answer the following questions, each question carries FIVE marks: 4x5=20

1. Write an algorithm to insert an element in to array.


2. Give any five applications of queue.
3. Define i) Class ii) Object iii) Data abstraction iv) Encapsulation v) Polymorphism
4. What is inline function? Explain with suitable example.
5. Illustrate how to invoke parameterized constructor implicitly
6. Write the advantages of inheritance.
7. Write an algorithm to perform insertion sort method to sort elements.
8. Explain the operations performed on queue.
9.Write the applications of OOP.
10.What are the characteristics of friend function?
11. Explain destructor with syntax and example.
12. What is inheritance? Explain single level and multilevel inheritance.
13. Explain any five operations performed 2 on linear data Structure.
14. Write an algorithm to delete a data element From the queue.
15. Explain any five applications of OOP’ S.
16. What is friend function? Mention its various characteristics
17. Define default constructor. ‘Write the features, syntax and example of
default constructor.
18. hat is inheritance? Explain with neat diagram.
a) multiple inheritance :
b) multilevel inheritance
19.Write an algorithm for en-queue operation.
20. Explain the operations on stack.
21. Mention any three advantages and two disadvantages of OOP.
22. What is function overloading? Explain the need for function overloading.
23. Write the rules for constructor.
24. What is inheritance? Explain Hierarchical and Multiple inheritance

PART-E
Answer the following questions, each question carries FIVE marks 2*3-10

1. Given the Boolean function F(A,B,C, D) = (0,1,2,3,5,8,9,10,11,13,15), Reduce it using K-map


2. Given the Boolean function F(A,B,C, D) = (0,2,6,7,8,9,10,11,13), Reduce it using K-map.
3. Given the Boolean function F(A,B,C, D) = (0,1,3,4,5,7,12,13,15) Reduce it using K-map.
4. Given the Boolean function F(A,B,C, D) = (0,1,2,3,5,8,9,10,1 1,13) Reduce it using K-map

You might also like