NEW
Font size
S
M
L
XL
WorksheetsNeo Coding Round 1 Set 2
Total questions: 25
Worksheet time: 13mins
Name
Class
Date
1.
Identify the OOP feature that is used to reduce the use of nested classes
a)
Polymorphism
b)
Inheritace
c)
Abstraction
d)
Encapsulation
2.
Which of the following properties does a simple graph not hold?
a)
Must be connected
b)
Must be unweighted
c)
Must have no loops
d)
Must have no multiple edges
3.
Python supports the creation of anonymous functions at runtime, using a construct called
a)
lambda
b)
anonymous
c)
pi
d)
none of the above mentioned
4.
Data structure that allows extremely fast exact-match search, is known to be
a)
Arrays
b)
Stacks
c)
Pointers
d)
Hash tables
5.
A normal queue, if implemented using an array of size N-1, gets full when
a)
Front = (rear + 1)mod N
b)
Front = rear + 1
c)
Rear = front.
d)
Rear = N – 1
6.
Which of the operator cannot be overloaded
a)
>=
b)
&
c)
<=
d)
: :
7.
A pointer is
a)
Address of a variable
b)
a variable for sorting address
c)
data type of an address variable
d)
indication of the variable to be accessed next
8.
What is the disadvantage of array data structure?
a)
Elements are stored in contiguous memory blocks
b)
Element of an array can be accessed in constant time
c)
The amount of memory to be allocated should be known beforehand
d)
Multiple other data structures can be implemented using arrays
9.
Which of the following represents the Post order Traversal of a Binary Tree?
a)
Right->Root->Left
b)
Left->Root->Right
c)
Right->Left->Root
d)
Left->Right->Root
10.
The term "FAT" is stands for_____
a)
File Allocation Tree
b)
File Allocation Table
c)
File Allocation Graph
d)
All of the above
11.
How many types of access specifiers are provided in OOP?
a)
4
b)
3
c)
2
d)
1
12.
Which of the following shows the difference between the stack and queue?
a)
Stack uses both the ends and queue uses only one end
b)
Stack uses one end and queue uses two ends
c)
Stack can be implemented using arrays and queues can be implemented using linked list
d)
Stack can be implemented using linked list and queue can be implemented using array
13.
Which operator from the following can be used to illustrate the feature of polymorphism?
a)
Overloading &&
b)
Overloading <<
c)
Overloading | |
d)
Overloading +=
14.
Which among the following can be a concept against encapsulation rules?
a)
Using function pointers
b)
Using char* string pointer to be passed to non-member function
c)
Using object array
d)
Using any kind of pointer/array address in passing to another function
15.
Herder node is used as sentinel in------
a)
Graphs
b)
Stacks
c)
Binary Trees
d)
Queues
16.
What does AWT Stands for?
a)
All Windows Tools
b)
All Writing Tools
c)
Abstract Windowing Toolkit
d)
Abstract Writing ToolKit
17.
______Keyword is used in template.
a)
Class
b)
Typename
c)
Both a and b
d)
Using
18.
Which of the following is the most general exception handler that catches exception of any type?
a)
Catch(std::exception)
b)
Catch(std:any_exception)
c)
Catch(...)
d)
Catch()
19.
In C++, when accessing a structure member, the identifier to the left of the dot operator is the name of
a)
structure tag
b)
structure member
c)
structure variable
d)
keyword struck
20.
Which of the following keys is generally used to represents the relationships between the tables?
a)
Primary key
b)
Foreign key
c)
Secondary key
d)
None of the above
21.
What will be the output of the following Python expression if x=56.236? print("%.2f"%x)
a)
56.236
b)
56.23
c)
56
d)
56.24
22.
Postfix form of following expression D+(E*F)
a)
EF*D+
b)
DEF*+
c)
DEF+*
d)
EFD*+
23.
How to handle error in destructor
a)
Throwing
b)
Terminate
c)
Both a and b
d)
None of the mentioned
24.
In which case it is mandatory to provide a destructor in a class?
a)
Almost in every class
b)
Class for which two or more than two objects will be created
c)
Class for which copy constructor
d)
class whose objects will be created dynamically
25.
Which of the following commands is used to save any transaction permanently into the database?
a)
Commit
b)
Rollback
c)
Savepoint
d)
None of the above
Reset
