0% found this document useful (0 votes)
130 views2 pages

DSA & OOP first terms 2081

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)
130 views2 pages

DSA & OOP first terms 2081

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/ 2

Shree Mahunyal Secondary School

Bardagoriya - 6 baskoti, kailali


First terminal Examination 2081
5. What is encapsulation in C++?
Program: Computer Engineering
a) The process of combining data and functions into a single
Subject: - Data Structure & Oop concept using C++
unit called class
Time: 2:00 hr FM: -50, PM: -18
b) The ability of an object to take many forms
Candidates are required to give their answers in their own words as c) The process of inheriting properties from another class
far as practicable. The figures in the margin indicate full marks. d) A method of data manipulation
Group A
Objective question attempt all. 1x9=9 6. Which is not valid for identifier?
1. Which data structure is mainly used for implementing the a) salary
recursive algorithm? b) Student_id
a) Queue c) Default
b) Stack d) Emp_salary
c) Linked list
d) Array
7. Which one of the following is not the type of the Queue?
2. What is an AVL tree? a. Linear Queue
a) a tree which is balanced and is a height balanced tree
a. Circular Queue
b) a tree which is unbalanced and is a height balanced tree
c) a tree with three children b. Double ended Queue
d) a tree with almost 3 children c. Single ended Queue
3. Which feature of OOP indicates code reusability? 8. Which of the following is exit control loop?
a) Abstraction a. while
b) Polymorphism b. for
c) Encapsulation c. do while
d) Inheritance d. both a & c
4. Which of the following principle does Queue use? 9. Which is C++?
a. LIFO principle a. C++ is Structure programming
b. FIFO principle b. C++ is procedure oriented programming
c. Linear tree c. C++ is Object oriented programming
d. Ordered array d. C++ is functional oriented programming
Group B
Attempt (any five) all question 5x5=25

1. What is data structure? List the types of data


structures. Write operation on data structures.
2. What is queue? Explain operation on the queue.
3. Define Encapsulation & Data Abstraction? Write a
program to print the series of natural numbers up to n
terms using loop.
4. Define control statement? Write a program to enter
three different numbers and find largest number
among them.
5. Write importance of code reusability? Write
difference between OOP and POP (any four).
6. What is Binary Search Tree (BST)? Create BST of
following data 10,7,15,5,9,12,18,13,8.

Group C
Attempt all question (8x2=16)
1. What is stack? Explain operation on stack with
algorithms. Write application of stack.
2. What is object-oriented programming? Explain
features of Object oriented programming?

....................Best of luck.....................................

You might also like