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

Cs Set2

Imp questions

Uploaded by

ravitejaprs143
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
91 views5 pages

Cs Set2

Imp questions

Uploaded by

ravitejaprs143
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 5

MASTERS PU COLLEGE

MIDTERM EXAMINATION OCT-24


SUB: COMPUTER SCIENCE (41) MAX MAXKS: 70
CLASS: II PUC
I. Answer all the following questions: 1*15=15

1. Which of the following motherboard contain old processor socket, DIMM, ISA slot.
(a) AT (b) XT (c) Baby AT (d) ATX
2. Boolean Algebra is very useful in the design of
(a) Analog circuit (b) Hardware circuit (c) Electrical circuit (d) logic circuit
3. Assertion (A): A queue is a FIFO data structure.
Reason (R): An ordered collection of items where insertion and deletion takes place at
the different end.
(a) A is true and R is false.
(b) A is true and R is correct explanation.
(c) A is false and R is true.
(d) A is true and R is not correct explanation
4. Class members are accessed using _______ operator.
A. Dot operator b. comma c. colon d. Single
5. Given the class
class box
{
int length;
public: int width;
private: int height;
void set_height(int i )
{
height=i;
}
void get_height( )
{
return(height);
}
};
Which of the data members are private and public respectively?
(a) width length, height (b) width, length height
(c) length height, width (d) length width, height
6. A) The inline function is a compact function.
B) Inline function run little slower than normal function.
C) Very efficient code can be generated.
(a) Both A and C are correct.
(b) Both A and B are correct.
(c) Both B and C are correct.
(d) All A, B and C are correct
7. Constructor should be declared in
(a) Private (b) Public (c) Protected (d) All of these

8. Where is L1 cache located


a. inside the CPU b. outside the CPU c. inside the ALU d. in the ROM
9. The output of 2 input AND gate is high(1) when
a. one of the input is high b. both the inputs are high c. both the inputs are low
d. none of the above
10. Identify the error
void main( )
{
Example E;
E.display( );
}
a. statement missing b. use of indirection operator
b. c. function should have a prototype d. no error
11. Which of the following law states that X+Y=Y+X
a. involution law b. Commutative law c. distributive law d. absorption law
12. Which of the following is correct with respect to function overloading?
1. functions name are same. 2. number of arguments are same
3. number of arguments are different 4. data types of arguments are different
a. all are correct b. all are incorrect
c. 1&2 correct, 3&4 is incorrect d. 1,3,&4 are correct, 2 incorrect
13. Binary search is successful when
a. a[mid]=ele b. a[i]=ele c. ele<a[m] d. ele>a[m]
14. __________ is a large printed circuit board having chips, ports, controllers and other electronic
components.
a. IC b. Mother board c. chipset d. firewire
15. Which constructor does not accept any argument?
a. default b. parameterized c. copy d. all of the above

II. Fill in the blanks: (default, parameterized, binary, array, Queue, singly). 1*5=5

16. _________ tree has at most 2 descendants.


17. In _________ linked list there is only 1 link field in each node.
18. In _______ data Structure elements are deleted from front end.
19. ___________ constructor can be overloaded.
20. _______ data Structure is used to implement other data structure.
PART-B
III. Answer any 4 of the following questions: 2*4=8

21. State and prove involution law


22. Write two table and logic symbol for xor GATE
23. What is destructor? Write the symbol used for destructor
24. Mention the different types of queue
25. Define tautology and fallacy
26. Differentiate between procedural oriented programming language and object oriented
programming language.
27. Write the rules to overload the function.
PART-C
IV. Answer any 4 of the following questions: 3*4=12

28. State principle of duality with example


29. Realise basic gates using nor gate
30. Explain the memory representation of stack
31. Explain any three operations on array
32. Write the algorithm for linear search
33. Explain class definition and write its syntax
34. Write the advantages of inline function.
PART-D
V. Answer any 4 of the following questions: 5*4=20

35. Explain different types of motherboard


36. State and prove distributive law
37. Write the algorithm for enqueue operation.
38. Write the applications of stack
39. Define constructor and write the rules for constructor
40. Mention and explain different methods of invoking parameterized constructor.
41. Write the applications of OOP
PART-E
IV. Answer any two of the following questions: 5*2=10

42. Reduce F(A,B,C,D) =∑( 1, 3, 5, 7, 9, 11, 12,13,14,15) using K-map.

43. Define a class named product with the following


Data members: X and Y
Member function: getdata( ) and putdata( )
Define member functions outside the class to input and output x and y values.

44. What is friend function and write its characteristics.


MASTERS PU COLLEGE
MIDTERM EXAMINATION OCT-24
SUB: COMPUTER SCIENCE (41) MAX MAXKS: 70
CLASS: I PUC
I. Answer all the following questions: 1*15=15

1 Which type of memory is volatile and used for temporary storage?


- a) RAM - b) ROM - c) HDD - d) SSD
2 What is a bus in computer terminology?
- a) A physical wire used for data transfer - b) A type of software
- c) A storage device - d) A type of processor
3. Which generation of microprocessors introduced the use of integrated circuits (ICs)?
- a) First Generation - b) Second Generation - c) Third Generation - d) Fourth Generation
4. Which of the following is not an operating system?
- a) Windows - b) Linux - c) Android - d) Photoshop
5. Which encoding scheme is used to represent characters of almost all languages of the world?
A. ASCII - B. ISCII - C. UTF-8 - D. UNICODE
6. What is the binary representation of the ASCII code for the character 'A'?
- A. 1000001 - B. 1010100 - C. 1100001 - D. 1110001
7. What is the full form of ASCII?
- A. American Standard Code for Information Interchange
- B. American System Code for Information Interchange
- C. American Standard Code for Internet Interchange
- D. American System Code for Internet Interchange
8. What is Natural Language Processing (NLP) used for?
A. Interpreting computer languages B. Translating text to speech and vice versa
C. Managing databases D. Enhancing video graphics
9. Which is an example of immersive experience technology?
A. Database Management B. Augmented Reality (AR) C. Internet Browsing D. Word Processing
10 What does IoT stand for?
A. Internet of Transactions B. Internet of Technology C. Internet of Things D. Internet of Tools
11. Which of the following is NOT a characteristic of a good algorithm?
- A) Precision - B) Uniqueness - C) Infinite steps - D) Finiteness
12. What shape is used to represent a process in a flowchart?
A) Parallelogram - B) Rectangle - C) Diamond - D) Circle
13. Why is it necessary to debug a program?
- A) To increase the size of the code - B) To ensure the program runs without errors
- C) To write the algorithm - D) To develop the problem statement
14 What is the symbol for the Python prompt in interactive mode?
- a) $ - b) % - c) & - d) >>>
15. Which of the following is a valid identifier in Python?
- a) 123abc - b) abc123 - c) a!bc - d) None of these

II. Fill in the blanks:


(Humanoid, List, object, tuples, testing, debugging). 1*5=5

16. In Python, everything is treated as ________


17. _________ is a mutable data type in Python?
18. _______ are objects in Python that cannot be changed after assignment.
19. __________ step involves checking if a program meets user requirements?
20. A robot that looks like a human is ______________.
PART-B
III. Answer any 4 of the following questions: 2*4=8

21. Define freeware and proprietary software.


22. Differentiate between compiler and interpreter.
23. Convert 100.25(10) to base (16).
24. Explain any two characteristics of big data.
25. Define block chain and give example.
26. Write the algorithm to find sum of three numbers.
27. Define keywords and give example.
PART-C
IV. Answer any 4 of the following questions: 3*4=12

28. Explain Von Neumann architecture.


29. Differentiate between RAM and ROM.
30. Explain ASCII.
31. Write the applications of robotics.
32. Write short notes on cloud and grid computing.
33. Write the characteristics of good algorithm.
34. Draw flowchart to find smallest of two numbers.
PART-D
V. Answer any 4 of the following questions: 5*4=20

35. Write algorithm flowchart and pseudo code to accept numbers till the user enters zero and find
their average.
36. Write the rules for identifiers.
37. Explain number data types.
38. Define the following a. Mutable data type b. Immutable data type
c. Decomposition d. Algorithm e. Debugging
39. Explain smart cities with example.
40. Explain different functional units of computer system with neat block diagram.
41. Explain the functions of operating system.
PART-E
IV. Answer any two of the following questions: 5*2=10
42. Explain different types of data.
43. Explain different user interfaces.
44. Convert FACE (16) to base (2) to base (8)

You might also like