The Knowledge Vault

The Knowledge Vault

Share

Welcome dear... ���

14/01/2026

🔹 Unit 1: Introduction to Data Structure (More MCQs)
Which data structure stores elements in contiguous memory locations?
a) Linked List
b) Stack
c) Array
d) Graph
✅ Answer: c
Which data structure is best for implementing recursion?
a) Queue
b) Stack
c) Array
d) Tree
✅ Answer: b
In which data structure insertion and deletion are done from one end only?
a) Queue
b) Stack
c) Linked List
d) Graph
✅ Answer: b
Which data structure is used to represent hierarchical data?
a) Array
b) Stack
c) Tree
d) Queue
✅ Answer: c
Which operation checks whether a data element exists or not?
a) Sorting
b) Traversing
c) Searching
d) Insertion
✅ Answer: c
Which data structure is dynamic in size?
a) Array
b) Linked List
c) Stack (array based)
d) Static array
✅ Answer: b
Which is NOT an example of linear data structure?
a) Queue
b) Stack
c) Tree
d) Array
✅ Answer: c
Which data structure is used in breadth-first search?
a) Stack
b) Queue
c) Tree
d) Array
✅ Answer: b
Which operation combines two similar data structures?
a) Traversal
b) Merging
c) Sorting
d) Searching
✅ Answer: b
Which data structure is most suitable for implementing undo/redo operations?
a) Queue
b) Stack
c) Linked List
d) Graph
✅ Answer: b
🔹 Unit 2: OOP Concepts using C++ (More MCQs)
Which feature of OOP increases program security?
a) Polymorphism
b) Inheritance
c) Encapsulation
d) Abstraction
✅ Answer: c
Which OOP feature allows one interface with multiple implementations?
a) Inheritance
b) Abstraction
c) Polymorphism
d) Encapsulation
✅ Answer: c
Which concept binds data and functions together?
a) Abstraction
b) Polymorphism
c) Inheritance
d) Encapsulation
✅ Answer: d
Which programming approach focuses on real-world entities?
a) Structured
b) Modular
c) Object-Oriented
d) Procedural
✅ Answer: c
Which of the following supports both procedural and OOP concepts?
a) Java
b) Python
c) C
d) C++
✅ Answer: d
Which feature of OOP reduces code duplication?
a) Encapsulation
b) Inheritance
c) Polymorphism
d) Abstraction
✅ Answer: b
🔹 Unit 2: C++ Basics, Tokens & I/O (More MCQs)
Which of the following is a valid identifier in C++?
a) 2sum
b) total_marks
c) float
d) int
✅ Answer: b
Which operator is used for scope resolution?
a) :
b) ::
c) .
d) ->
✅ Answer: b
Which header file is required for input-output operations?
a) stdio.h
b) conio.h
c) iostream
d) math.h
✅ Answer: c
Which keyword is used to declare a constant variable?
a) constant
b) define
c) const
d) static
✅ Answer: c
Which data type stores only true or false values?
a) char
b) int
c) bool
d) float
✅ Answer: c
Which symbol is used to insert a value using cin?
a) >
c) =
d) ::
✅ Answer: b
🔹 Unit 2: Control Statements (More MCQs)
Which statement is used to exit a loop immediately?
a) continue
b) stop
c) break
d) return
✅ Answer: c
Which control statement is used for multiple condition checking?
a) if
b) if-else
c) switch
d) for
✅ Answer: c
Which loop is best when the number of iterations is known?
a) while
b) do-while
c) for
d) switch
✅ Answer: c
Which statement skips the current iteration of a loop?
a) break
b) skip
c) continue
d) exit
✅ Answer: c
🔹 Unit 3: Class and Object (More MCQs)
Which keyword is used to define a class in C++?
a) struct
b) define
c) class
d) object
✅ Answer: c
Data members of a class are also called:
a) Functions
b) Methods
c) Variables
d) Objects
✅ Answer: c
Which access specifier allows access only within the class?
a) public
b) protected
c) private
d) default
✅ Answer: c
How many constructors can a class have?
a) One
b) Two
c) Three
d) Multiple
✅ Answer: d
Constructor has the same name as:
a) Object
b) Function
c) Class
d) Variable
✅ Answer: c
🔹 Unit 4: Abstraction & Encapsulation (More MCQs)
Which keyword helps to achieve abstraction in C++?
a) class
b) private
c) virtual
d) protected
✅ Answer: c
Which OOP feature improves maintainability of code?
a) Polymorphism
b) Abstraction
c) Encapsulation
d) Inheritance
✅ Answer: b
Which access specifier is used to hide data?
a) public
b) protected
c) private
d) default
✅ Answer: c
Abstraction mainly focuses on:
a) Implementation
b) Syntax
c) Essential features
d) Memory
✅ Answer: c
Encapsulation is also known as:
a) Data hiding
b) Code reuse
c) Data binding
d) Function hiding
✅ Answer: a

14/01/2026

Data Structure & C++ (Grade-10)
Unit 1: Introduction to Data Structure
1. Data Structure Basics
What is a data structure?
a) A programming language
b) A compiler
c) A way to store and organize data
d) A type of hardware
👉 Answer: c
Which of the following is an advantage of data structures?
a) Increases program size
b) Efficient data management
c) Reduces memory
d) Slows processing
👉 Answer: b
Which term refers to raw facts and figures?
a) Record
b) File
c) Data
d) Entity
👉 Answer: c
A collection of related fields is called a:
a) File
b) Record
c) Attribute
d) Entity
👉 Answer: b
An attribute is also known as:
a) File
b) Group item
c) Field
d) Record
👉 Answer: c
A collection of records is called a:
a) File
b) Attribute
c) Entity
d) Field
👉 Answer: a
Why do we need data structures?
a) To increase coding complexity
b) To manage large amounts of data efficiently
c) To avoid algorithms
d) To replace hardware
👉 Answer: b
2. Classification of Data Structures
Which of the following is a linear data structure?
a) Tree
b) Graph
c) Array
d) Network
👉 Answer: c
Which of the following is a non-linear data structure?
a) Stack
b) Queue
c) Array
d) Tree
👉 Answer: d
Stack follows which principle?
a) FIFO
b) LIFO
c) FILO
d) Random
👉 Answer: b
Queue follows which principle?
a) LIFO
b) Random
c) FIFO
d) FILO
👉 Answer: c
Which data structure uses nodes and pointers?
a) Array
b) Stack
c) Linked List
d) Queue
👉 Answer: c
3. Operations on Data Structures
Which operation is used to add an element?
a) Deletion
b) Insertion
c) Traversal
d) Sorting
👉 Answer: b
Which operation is used to remove an element?
a) Searching
b) Traversing
c) Deletion
d) Sorting
👉 Answer: c
Accessing each element once is called:
a) Sorting
b) Searching
c) Traversing
d) Insertion
👉 Answer: c
Arranging data in order is called:
a) Searching
b) Sorting
c) Traversal
d) Insertion
👉 Answer: b
Unit 2: Concept of OOP using C++
4. Object-Oriented Programming
OOP stands for:
a) Open Oriented Programming
b) Object Oriented Programming
c) Operation Oriented Programming
d) Output Oriented Programming
👉 Answer: b
Which is NOT a feature of OOP?
a) Encapsulation
b) Inheritance
c) Compilation
d) Polymorphism
👉 Answer: c
Which OOP feature hides data from direct access?
a) Inheritance
b) Polymorphism
c) Encapsulation
d) Abstraction
👉 Answer: c
Which OOP feature allows code reusability?
a) Abstraction
b) Encapsulation
c) Inheritance
d) Polymorphism
👉 Answer: c
Which approach is used by OOP?
a) Top-down
b) Bottom-up
c) Left-right
d) Right-left
👉 Answer: b
5. Structured vs OOP
Structured programming is based on:
a) Objects
b) Classes
c) Functions
d) Methods
👉 Answer: c
Object-oriented programming is based on:
a) Functions
b) Objects
c) Procedures
d) Modules
👉 Answer: b
6. C++ Basics
C++ is an extension of:
a) Java
b) Python
c) C
d) COBOL
👉 Answer: c
Which symbol is used to end a statement in C++?
a) :
b) .
c) ;
d) ,
👉 Answer: c
7. Tokens, Data Types & I/O
Which of the following is NOT a token in C++?
a) Keyword
b) Identifier
c) Operator
d) Folder
👉 Answer: d
Which data type is used to store decimal values?
a) int
b) char
c) float
d) bool
👉 Answer: c
Which keyword is used for input in C++?
a) cout
b) cin
c) scanf
d) print
👉 Answer: b
Which keyword is used for output in C++?
a) cin
b) printf
c) cout
d) input
👉 Answer: c
8. Control Statements
Which control statement is used for decision making?
a) for
b) while
c) if
d) break
👉 Answer: c
Which loop executes at least once?
a) for
b) while
c) do-while
d) switch
👉 Answer: c
Unit 3: Class and Object
A class is a:
a) Function
b) Variable
c) Blueprint of objects
d) Data type only
👉 Answer: c
An object is a:
a) Function
b) Instance of a class
c) Data type
d) Loop
👉 Answer: b
Which access specifier allows access everywhere?
a) private
b) protected
c) public
d) default
👉 Answer: c
Which function is automatically called when an object is created?
a) Destructor
b) Method
c) Constructor
d) Operator
👉 Answer: c
Which function is called when an object is destroyed?
a) Constructor
b) Destructor
c) Method
d) Operator
👉 Answer: b
Unit 4: Abstraction and Encapsulation
Abstraction means:
a) Showing all details
b) Hiding implementation details
c) Writing long code
d) Avoiding classes
👉 Answer: b
Which OOP concept shows only essential features?
a) Encapsulation
b) Inheritance
c) Abstraction
d) Polymorphism
👉 Answer: c
Abstraction can be achieved using:
a) Loops
b) Variables
c) Classes and methods
d) Arrays
👉 Answer: c
One advantage of abstraction is:
a) Complex code
b) Reduced security
c) Better code readability
d) More errors
👉 Answer: c

Photos from The Knowledge Vault's post 28/06/2025

Articles

Want your school to be the top-listed School/college in Kalaiya?

Click here to claim your Sponsored Listing.

Location

Category

Website

Address


Piparpati Pacharauta Municipality 1
Kalaiya