Data structure:
1. Which data structure is used to convert the infix to prefix notation?
- Queue
- Binary tree
- Stack
- None
Answer: 3)Stack
Data structure:
2. The data elements of an array are stored at ...........
Location in the main memory?
- Non-contagious
- Non-communicable
- Contiguous
- None
Answer: 3)Contiguous
Node Js:
3. The Source code in Node.Js is executed by .....
- Node.Js interpreter
- C compiler
- Js compiler
- None
Answer: 1)Node.Js interpreter
Node Js:
4. Which of the following is not a feature of Node.Js?
- Single-threaded
- No buffering
- Open-source
- Embedded system
Answer: 4)Embedded System
Node Js:
5. Node JS is a ....... runtime environment.
- Cross-platform
- Dependent
- Both A and B
- None
Answer: 1)Cross-platform
Java script:
6. What is the output of the following code?
Console.log(null==undefined);
- False
- True
- Undefined
- None
Answer: 1)False.
Java script:
7. what is the output of the following code?
console.log(2+"2");
- 22
- 2
- 4
- 2/2
Answer: 1)22
Data structure:
8. In array, Space complexity for the worst case is........
- O(n)
- O(1)
- O(log n)
- None
Answer: 1) O(n)
Data structure:
9. The collection of similar type of data item stored at Contiguous memory locations is called........
- Pointer
- Arrays
- Tree
- None
Answer: 3)Arrays
Data structure:
10. Int, char, float, can hold .......... value.
- Multiple values.
- Double value
- Single value
- None
Answer: 3)Single value
Array and structure are commonly used for storing multiple values, these are called composite data types.
Data structure:
11. The longest path from node x to the leaf node.
- Depth of node x
- Height of node x
- Both
- None
Answer: 2)height of node x
Data Structure:
12. The node of the tree, which doesn't have any child node, is called....... node?
- Leaf
- Child
- Ancestor node
- None
Answer: 1)leaf node
Read more About Data Structure basics
Tree Terminology In Data Structure
0 Comments