Data Structure Online Test

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Infotricks1on1
I
Infotricks1on1
Community Contributor
Quizzes Created: 1 | Total Attempts: 4,886
| Attempts: 4,886 | Questions: 164
Please wait...
Question 1 / 164
0 %
0/100
Score 0/100
1. Array is Linear data  structure

Explanation

The given statement is true because an array is a linear data structure that stores elements of the same data type in contiguous memory locations. The elements in an array can be accessed using their index positions, which are typically integers. Arrays are commonly used for storing and manipulating collections of data in programming languages.

Submit
Please wait...
About This Quiz
Data Structure Online Test - Quiz

Total Questions-> 30Full Time-> 10 minutesNegative marking->0.15 for each question if answered wrongTotal Marks-> 30 (1 for each question)Before starting the test please fill out the form below as it will be needed to generate the Certificate.
<=50% -> Certificate will be provided

Tell us your name to personalize your report, certificate & get on the leaderboard!
2. Array is Linear data  structure

Explanation

The given statement is true because an array is a linear data structure that stores elements of the same type in contiguous memory locations. It allows random access to its elements using an index, making it efficient for accessing and manipulating data. Arrays are widely used in programming to store and retrieve data efficiently.

Submit
3. Queue data structure works on

Explanation

In queue, data item inserted first, will be available first and data item inserted last will be available in the last. FIFO stands for First In First Out and is a correct answer.

Submit
4. Which is not a primitive data type?

Explanation

The data types int, char, and float are all primitive data types in programming. They are built-in data types that are provided by the programming language itself. However, "Stack" is not a primitive data type. It is a data structure that can be implemented using primitive data types. A stack is a collection of elements that follows the Last-In-First-Out (LIFO) principle, and it can be implemented using arrays or linked lists. Therefore, "Stack" is the correct answer as it is not a primitive data type.

Submit
5. A queue is a,

Explanation

A queue is a data structure that follows the FIFO (First In First Out) principle, meaning that the element that is inserted first will be the first one to be removed. This is similar to a queue of people waiting in line, where the person who arrives first will be the first one to leave the line. Therefore, the correct answer is FIFO (First In First Out) list.

Submit
6. A queue is a,

Explanation

A queue operates on the principle of FIFO (First In First Out), meaning that the item that is added first is the one that will be removed first. This is similar to a line of people waiting for a service, where the person who arrived first will be served first. In a queue, new elements are added at the rear end and removed from the front end, maintaining the order in which they were added. Therefore, the correct answer is FIFO (First In First Out) list.

Submit
7. Which of the following data structure is linear data structure?  

Explanation

Arrays are linear data structures because they store elements in a sequential manner, where each element is accessed by its index. This means that elements are arranged one after another in a linear fashion. Unlike trees and graphs, which have a hierarchical or non-linear structure, arrays have a simple and straightforward organization. Therefore, the correct answer is Arrays.

Submit
8. What is int stands for?

Explanation

The term "int" stands for "integer." In computer programming, an integer is a data type used to represent whole numbers without any fractional or decimal parts. The "int" keyword is commonly used in programming languages to declare variables that can store integer values. By using the "int" data type, programmers can perform mathematical operations and manipulate whole numbers in their code.

Submit
9. Which of the following data structure is linear data structure?  

Explanation

Arrays are linear data structures because they store elements in a sequential manner. Each element in an array is assigned a unique index, starting from 0, that represents its position in the array. This allows for efficient access to elements using their index. Additionally, arrays have a fixed size, meaning that elements are stored in contiguous memory locations, which enables efficient memory allocation and retrieval.

Submit
10. For a binary search algorithm to work, it is necessary that the array (list) must be

Explanation

As binary search divides the list and selects a the sub-list to extend search based on comparison of values, it becomes necessary that the array (list) must be in sorted form.

Submit
11. What is the symbol of increment

Explanation

The symbol "++" is used to represent the increment operation in programming. It is commonly used to increase the value of a variable by 1. For example, if we have a variable x with an initial value of 5, using the "++" operator on x would result in x being incremented to 6. This symbol is widely recognized and used in various programming languages to perform increment operations.

Submit
12. A linear collection of data elements where the linear node is given by means of pointer is

Explanation

A linked list is a linear collection of data elements where each element, also known as a node, is connected to the next element through a pointer. This allows for efficient insertion and deletion of elements at any position in the list. It is a dynamic data structure that can grow or shrink as needed. The other options, node list and primitive list, do not accurately describe a linked list.

Submit
13. Which is not primitive data structure

Explanation

The data types int, char, and float are all primitive data types in programming. They are built-in data types that are provided by the programming language. However, a stack is not a primitive data structure. It is an abstract data type that can be implemented using arrays or linked lists. Therefore, the correct answer is Stack.

Submit
14. Binary search tree is also called two way search tree

Explanation

A binary search tree is a type of data structure where each node has at most two children, a left child and a right child. It is called a "two way search tree" because it allows for efficient searching in both directions. In a binary search tree, the left child of a node contains a smaller value than the node itself, while the right child contains a larger value. This property allows for quick searching by comparing the target value with the current node and traversing either left or right based on the comparison result. Hence, the statement "Binary search tree is also called two way search tree" is true.

Submit
15. A linear collection of data elements where the linear node is given by means of pointer is

Explanation

A linked list is a linear collection of data elements where each element, called a node, contains a pointer that points to the next node in the list. This allows for efficient insertion and deletion of elements at any position in the list. Therefore, the correct answer is "linked list."

Submit
16. Binary search tree is also called two way search tree

Explanation

A binary search tree is a type of data structure where each node has at most two children, a left child and a right child. It is called a "binary" search tree because it follows a specific ordering property, where the value of each node is greater than all values in its left subtree and less than all values in its right subtree. This ordering property allows for efficient searching, insertion, and deletion operations. The term "two-way search tree" is another name for a binary search tree, emphasizing the ability to search in both directions, from the root to the leaves and vice versa. Therefore, the statement that a binary search tree is also called a two-way search tree is true.

Submit
17. A multidimensional array is declared as such:

int array[name1][name2];

Explanation

A multidimensional array is declared by specifying the data type followed by the array name and the dimensions of the array enclosed in square brackets. In this case, the array is declared as "int array[name1][name2]", indicating that it is a multidimensional array with two dimensions named name1 and name2. Therefore, the given statement is true.

Submit
18. A subscript/index must be an integer or integer expression (using any integral type).

Explanation

The statement is true because a subscript or index in programming is used to access elements in an array or collection, and it must be an integer or an expression that evaluates to an integer. This is because arrays are stored in memory as contiguous blocks, and the index is used to calculate the memory address of the desired element. Using a non-integer value or expression would not result in a valid memory address and would lead to an error.

Submit
19. What is the symbol of decrement

Explanation

The symbol "--" is commonly used to represent the decrement operation in programming languages. It is used to decrease the value of a variable by 1. For example, if we have a variable x with an initial value of 5, using the decrement operator "--" on x would result in x being equal to 4.

Submit
20. The position number is more formally called a subscript or index (this number specifies the number of elements from the beginning of the array).

Explanation

The given statement is true. The position number in an array is indeed more formally called a subscript or index. This number represents the number of elements from the beginning of the array. It is used to access or reference specific elements within the array by indicating their position or index. Therefore, the correct answer is true.

Submit
21. In the statement:

int a [ arraySize ] = { 87, 64, 52, 4, 45, 63, 55, 22, 78 };

What is the element that is in the 7th index position?

Explanation

The element that is in the 7th index position in the given array is 22.

Submit
22. Static int array1[ arraySize];

Will initialize each element to 0 the first time it is called.

Explanation

The given statement is true. When an array is declared with the keyword "static" and without any explicit initialization, all the elements of the array will be automatically initialized to 0 the first time it is called. Therefore, in this case, each element of the array "array1" will be initialized to 0.

Submit
23. Stack is work on the principal of

Explanation

The correct answer is LIFO, which stands for Last In, First Out. This means that the last element added to the stack will be the first one to be removed. In a stack, elements are added and removed from the top only, and the order in which they are added determines the order in which they are accessed. This concept is commonly used in programming and data structures, where the most recently added data is often the most relevant or needs to be processed first.

Submit
24. 1.44 log n is the worst case height of an AVL tree.

Explanation

An AVL tree is a self-balancing binary search tree where the heights of the left and right subtrees differ by at most 1. The worst-case height of an AVL tree is given by the formula 1.44 log n, where n is the number of nodes in the tree. This means that as the number of nodes increases, the height of the AVL tree grows logarithmically. Therefore, the statement "1.44 log n is the worst case height of an AVL tree" is true.

Submit
25. An algorithm that calls itself directly or indirectly is known as

Explanation

Recursion is the correct answer because an algorithm that calls itself directly or indirectly is known as recursion. In recursion, a function solves a problem by calling itself as a subroutine, which allows the problem to be broken down into smaller subproblems. This process continues until a base case is reached, at which point the function stops calling itself and returns the results. Recursion is commonly used in programming to solve problems that can be divided into smaller, similar subproblems.

Submit
26. ____________ are data structures consisting of related data items of the same type

Explanation

Arrays are data structures that consist of related data items of the same type. They allow for efficient storage and retrieval of data by assigning a unique index to each data item. Arrays can store elements such as integers, strings, or objects, and the elements can be accessed by their index position. The given answer options "arrays," "Arrays," and "Array" all correctly describe arrays as data structures consisting of related data items of the same type.

Submit
27. Which is the array name?

int int1[ int2 ];

Explanation

The array name in the given code is "int1". It is declared as an array of integers with a size specified by the variable "int2". The name "int1" represents the memory location where the elements of the array are stored.

Submit
28. When passing an array to a function, the array size is normally passed as well, so the function can process the specific number of elements in the array.

Explanation

When passing an array to a function, it is important to pass the array size as well. This is because the function needs to know the specific number of elements in the array in order to process it correctly. Without knowing the size, the function may not be able to access or manipulate the array elements accurately, leading to errors or unexpected behavior. Therefore, it is necessary to pass the array size along with the array itself when calling a function.

Submit
29. The value of the name of the array is the address in the computer’s memory of the first element of the array.

Because the starting address of the array is passed, the called function knows precisely where the array is stored in memory.

Explanation

The value of the name of the array being the address in the computer's memory of the first element of the array is true. This is because when an array is declared, it is stored in contiguous memory locations. The name of the array acts as a pointer to the first element, so when the array is passed to a function, the function can access and manipulate the array by using the starting address.

Submit
30. Stack is work on the principal of

Explanation

The correct answer is LIFO because a stack follows the Last-In-First-Out principle. This means that the last element added to the stack will be the first one to be removed. It is similar to a stack of plates, where the last plate added is the first one to be taken off when you remove them one by one. In programming, a stack is a data structure that allows operations like push (adding an element) and pop (removing an element) in a specific order, following the LIFO principle.

Submit
31. [ ] and ( ) have the highest precedence

Explanation

The statement is true because in most programming languages, square brackets [ ] and parentheses ( ) have the highest precedence. This means that any operations or expressions enclosed within these symbols will be evaluated first before any other operations. This is important for maintaining the correct order of operations in mathematical expressions or accessing elements in arrays or lists.

Submit
32. Pass by reference means that the calling function can read and write to the original values.

Explanation

Pass by reference is a method in programming where a function can access and modify the original values of variables passed to it. This means that any changes made to the variables within the function will also affect the original values outside of the function. Therefore, the statement "Pass by reference means that the calling function can read and write to the original values" is true.

Submit
33. A multidimensional array is declared as such:

int array[ [] ];

Explanation

The given statement is false because when declaring a multidimensional array, the size of each dimension needs to be specified. In the given statement, the size of the array dimensions is not provided, which makes it invalid. The correct syntax for declaring a multidimensional array would be something like "int array[][]" or "int array[3][4]" where the size of each dimension is specified.

Submit
34.  Which data structure allows deleting data elements from front and inserting at rear?

Explanation

Queues are a data structure that allows deleting data elements from the front and inserting at the rear. In a queue, the first element that is inserted is the first one to be removed, following the First-In-First-Out (FIFO) principle. This makes queues suitable for scenarios where the order of insertion and removal is important, such as processing tasks or handling requests in a sequential manner. Stacks, on the other hand, follow the Last-In-First-Out (LIFO) principle, where the last element inserted is the first one to be removed. Deques (Double-ended queues) allow insertion and deletion from both ends, while binary search trees are used for efficient searching and sorting operations.

Submit
35. The memory address of the first element of an array is called

Explanation

The memory address of the first element of an array is called the base address. This is because the base address is the starting point or reference point for accessing the elements of the array. It is used to calculate the memory address of each subsequent element in the array by adding the appropriate offset.

Submit
36. Int n[11];

What is the last index number (or subscript) of this array?

Explanation

The last index number (or subscript) of the array "n" is 10. The array "n" has a total of 11 elements, numbered from index 0 to index 10. Therefore, the last index number is 10.

Submit
37. Applying 'static' to an array declaration will allow the array not to be created and initialized each time a program calls a function containing the array.

Explanation

By applying the 'static' keyword to an array declaration, the array will not be created and initialized each time a program calls a function containing the array. This means that the array will retain its values between function calls, allowing for efficient memory usage and potentially improving performance. Therefore, the given statement is true.

Submit
38. C++ passes arrays to functions by reference—the called functions can modify the element values in the callers’ original arrays.

Explanation

In C++, arrays are passed to functions by reference, which means that the called functions have access to the original arrays and can modify the values of their elements. Therefore, the statement that C++ passes arrays to functions by reference and allows modification of the original arrays is true.

Submit
39. Which of the following is an array declaration with initalizers


Explanation

The correct answer is "int n[10] = { 1, 2, 3, 4, 5 };" because it declares an array named "n" with a size of 10 and initializes it with the values 1, 2, 3, 4, and 5. This syntax is used to declare and initialize an array in a single line. The other options either declare an array without initializing it (int n[10];), declare a pointer (int *n;), or declare a reference (int &n = 10;) which is not valid syntax for array declaration with initializers.

Submit
40. The name of the array is the address in the computers memory of the first element of the array

Explanation

The statement is true because in most programming languages, the name of an array represents the memory address of the first element of the array. This memory address is used to access and manipulate the elements of the array.

Submit
41. Time complexity of linear search is

Explanation

The time complexity of linear search is O(n) because in the worst case scenario, the algorithm needs to iterate through the entire list of n elements to find the desired element. This means that the time taken to execute the algorithm grows linearly with the size of the input.

Submit
42. Concept of array employes Wastage of memory 

Explanation

The concept of array employees can lead to wastage of memory because arrays have a fixed size and if the number of employees is less than the size of the array, the remaining memory allocated for the array will be wasted. This can be inefficient in terms of memory utilization. Therefore, the statement "concept of array employees Wastage of memory" is true.

Submit
43. Which data structure is needed to convert infix notation to postfix notation?

Explanation

To convert infix notation to postfix notation, a stack data structure is needed. In infix notation, operators are placed between operands, whereas in postfix notation, operators are placed after their operands. To convert infix to postfix, we scan the infix expression from left to right and use a stack to store operators. When we encounter an operator, we compare its precedence with the top of the stack. If the operator has higher precedence, we push it onto the stack. If the operator has lower precedence, we pop the operators from the stack and append them to the postfix expression until we find an operator with lower precedence or an opening parenthesis. This process continues until the entire infix expression is scanned.

Submit
44. Overflow condition in stack is called

Explanation

Stack implementation error refers to a situation where there is an overflow condition in the stack. This means that the stack has reached its maximum capacity and cannot accept any more elements. This error occurs when attempting to push an element onto a full stack, causing the stack to overflow. Therefore, the correct answer for this question is "Stack implementation Error".

Submit
45. The situation when in a linked list START=NULL is

Explanation

When the linked list's START pointer is NULL, it means that there are no nodes in the list. This situation is known as underflow. Underflow occurs when we try to access or retrieve data from an empty list. In this case, there is no data to retrieve, and hence it is considered an underflow condition.

Submit
46. Which data structure is needed to convert infix notation to postfix notation?

Explanation

To convert infix notation to postfix notation, a stack data structure is needed. This is because the conversion process involves rearranging the operators and operands based on their precedence and associativity. The stack allows us to keep track of the operators and their order of precedence. When encountering an operator, we can compare it with the operators at the top of the stack and decide whether to push it onto the stack or pop the operators from the stack and append them to the output string. The stack ensures that the operators are processed in the correct order, resulting in the postfix notation.

Submit
47. If the array size is omitted from a declaration with an initializer list, the compiler determines the number of elements in the array by counting the number of elements in the initializer list.

Explanation

If the array size is omitted from a declaration with an initializer list, the compiler determines the number of elements in the array by counting the number of elements in the initializer list. This means that the compiler will automatically allocate enough memory for the array based on the number of elements in the initializer list. Therefore, the statement is true.

Submit
48. Although entire arrays are passed by reference, individual array elements are passed by value exactly as simple variables are.

Explanation

When passing an entire array to a function, it is passed by reference, meaning that any changes made to the array within the function will affect the original array outside of the function. However, when passing individual array elements to a function, they are passed by value, just like simple variables. This means that any changes made to the individual array elements within the function will not affect the original array outside of the function. Therefore, the statement is true.

Submit
49. A full binary tree with n leaves contains

Explanation

A full binary tree is a binary tree in which every node has either 0 or 2 children. In a full binary tree with n leaves, each leaf node represents a unique element, and each internal node represents an operation or a function. Since each internal node has 2 children, the total number of nodes in the tree can be calculated as 2n - 1, where n is the number of leaves. Therefore, the correct answer is 2n – 1 nodes.

Submit
50. Overflow condition in stack is called

Explanation

Stack implementation error refers to a situation where the stack data structure is not implemented correctly, leading to an overflow condition. This means that the stack has reached its maximum capacity and cannot accept any more elements. It is a mistake in the way the stack is designed or implemented, rather than an error in the abstract data type (ADT) itself. This error can occur due to various reasons such as incorrect size allocation, improper handling of push and pop operations, or failure to check for overflow conditions.

Submit
51. Highest precedence is

Explanation

The given answer is "^". In mathematical operations, the caret symbol (^) represents exponentiation, which has the highest precedence among the given operators. This means that any expression involving exponentiation should be evaluated first before any other operations like multiplication (*), subtraction (-), or addition (+). Therefore, the correct answer is "^" because it has the highest precedence.

Submit
52. AVL stands for

Explanation

AVL stands for "Height balanced tree". This is a data structure that is used in computer science to efficiently store and retrieve data. In an AVL tree, the heights of the left and right subtrees of any node differ by at most one, ensuring that the tree remains balanced. This balance property allows for faster search, insertion, and deletion operations compared to other types of trees.

Submit
53. Which method can find if two vertices x & y have path between them?

Explanation

Both BFS and DFS can determine path between two vertices of a connected graph.

Submit
54. Highest precedence is

Explanation

The given answer is correct. In mathematical expressions, the operator with the highest precedence is the exponentiation operator (^). This means that any calculations involving exponentiation should be performed first before any other operations, such as multiplication (*), subtraction (-), or addition (+).

Submit
55. If a static array is not initialized explicitly by you, each element of that array is initialized to zero by the compiler when the array is created.

Explanation

When a static array is not explicitly initialized by the programmer, the compiler automatically initializes each element of the array to zero when the array is created. Therefore, the statement is true.

Submit
56. Which is not predefine string function

Explanation

The given options are strlen, strcnt, strcat, and strcmp. Out of these options, strcnt is not a predefined string function. The other options, strlen, strcat, and strcmp, are all commonly used string functions in programming languages like C or C++. However, strcnt is not a standard string function and may not be recognized by most programming languages.

Submit
57. AVL stands for

Explanation

AVL stands for "Height balanced tree". AVL trees are a type of self-balancing binary search tree where the heights of the left and right subtrees differ by at most one. This balancing property ensures that the tree remains balanced and maintains efficient search, insertion, and deletion operations. The term "height balanced tree" accurately describes the key characteristic of AVL trees, making it the correct answer.

Submit
58. Time complexity of linear search is

Explanation

The time complexity of linear search is O(n) because in the worst case scenario, it needs to iterate through each element in the list until it finds the desired element or reaches the end of the list. This means that the time it takes to complete the search operation grows linearly with the size of the list.

Submit
59. Concept of array employes Wastage of memory 

Explanation

The concept of array employs wastage of memory because when we declare an array, we allocate a fixed amount of memory to store a specific number of elements, even if we don't use all of the allocated memory. This leads to wastage of memory because if we have fewer elements to store, the remaining memory space will be unused. This can be inefficient, especially when dealing with large arrays or limited memory resources.

Submit
60. A full binary tree with n leaves contains

Explanation

A full binary tree is a binary tree in which every node other than the leaves has two children. In such a tree, the number of nodes can be calculated using the formula 2n - 1, where n is the number of leaves. This formula accounts for all the nodes in the tree, including the leaves and the internal nodes. Therefore, the correct answer is 2n – 1 nodes.

Submit
61. An array is a ....

Explanation

An array is a consecutive group of memory locations that share the same type. In other words, it is a data structure that allows storing multiple elements of the same data type in a contiguous block of memory. This allows for efficient access and manipulation of the elements in the array.

Submit
62. Which is not predefine string function

Explanation

The function "strcnt" is not a predefined string function. The other options, "strlen", "strcat", and "strcmp" are commonly used string functions in programming languages. However, "strcnt" is not a standard function and may not be available in most programming languages.

Submit
63. Representation of data structure in memory is known as:

Explanation

The representation of data structure in memory is known as an abstract data type. Abstract data types define the behavior of a data structure without specifying its implementation details. They provide a high-level view of how the data structure should function, allowing for different implementations to be used. This abstraction allows programmers to focus on the functionality of the data structure rather than the specific way it is stored in memory.

Submit
64. To refer to a particular location or element in the array, we specify the name of the array and the position  _______ of the particular element.

Explanation

To refer to a particular location or element in the array, we use the name of the array followed by the position or index of the element. The position or index is a numeric value that represents the element's location within the array. This allows us to access and manipulate specific elements in the array by specifying their position using numbers or indexes.

Submit
65. What is the most dominant method for accessing and printing an entire array.

Explanation

The most dominant method for accessing and printing an entire array is using a FOR loop. The FOR loop allows us to iterate through each element of the array and print them one by one. It provides a convenient and efficient way to access and process all the elements in the array without the need for complex conditional statements or multiple lines of code.

Submit
66. This statement will not compile

int array[] = {1, 2, 3, 4};

Explanation

The given statement will compile without any errors. It declares an integer array named "array" and initializes it with the values 1, 2, 3, and 4. Therefore, the correct answer is False.

Submit
67. Which is not application of stack

Explanation

The application of a stack includes reversal of string, evaluation of arithmetic operations, and recursion. However, a "real operating system" is not an application of a stack. A stack is a data structure used for storing and retrieving data in a specific order, typically following the Last-In-First-Out (LIFO) principle. While an operating system may utilize a stack internally for various purposes, it is not considered an application or use case of a stack.

Submit
68. Representation of data structure in memory is known as:

Explanation

The representation of a data structure in memory refers to how the data is organized and stored in a computer's memory. This includes the arrangement of the data elements, their relationships, and any additional information associated with them. An abstract data type (ADT) is a high-level concept that defines a set of operations on a data structure without specifying the implementation details. It provides a way to organize and manipulate data, making it a suitable answer for the given question. Recursive refers to a process that calls itself, storage structure refers to how data is stored on a storage medium, and file structure specifically refers to how data is organized and stored in a file system.

Submit
69. Quick sort is also known as

Explanation

Quick sort is not known as merge sort, heap sort, or bubble sort. It is a distinct sorting algorithm and is not commonly associated with any of the other options listed. Therefore, the correct answer is "none of these".

Submit
70. Passing arrays by value would mean that each element would be copied to the calling function, thus causing a penalty in performance speeds.

Explanation

Passing arrays by value means that a copy of the entire array is made and passed to the calling function. This can be inefficient in terms of performance because it requires extra memory to store the copied array and can take longer to process. Instead, passing arrays by reference, where only the memory address of the array is passed, is more efficient as it avoids the need for copying the entire array. Therefore, the statement is true.

Submit
71. A multidimensional array cannot be initialized in its declaration  unlike a one-dimensional array.

Explanation

Unlike a one-dimensional array, a multidimensional array can be initialized in its declaration. It is possible to specify the values for each element of the array at the time of declaration by providing the appropriate number of values in the initialization statement.

Submit
72. A leaf node have degree

Explanation

A leaf node is a node in a tree data structure that does not have any children. Therefore, it does not have any degree, which represents the number of children a node has. The correct answer is 0.

Submit
73. An adjacency matrix representation of a graph cannot contain information of :

Explanation

An adjacency matrix representation of a graph cannot contain information about parallel edges. An adjacency matrix is a square matrix where each row and column represents a vertex, and the value at each cell indicates whether there is an edge between the corresponding vertices. Since an adjacency matrix can only have a single value for each pair of vertices, it cannot represent multiple parallel edges between the same pair of vertices.

Submit
74. Void function1( array );

This function will operate correctly, receiving values from the array.

Explanation

The given statement suggests that the function function1 will operate correctly and receive values from the array. Therefore, the correct answer is true, indicating that the statement is true.

Submit
75. Leaf node is also called internal node

Explanation

The given statement is false. A leaf node and an internal node are two different concepts in a tree data structure. A leaf node is a node that does not have any children, while an internal node is a node that has at least one child. Therefore, a leaf node cannot be called an internal node.

Submit
76. Only constants can be used to declare the size of automatic and status arrays. Not using a constant for this purpose is a compilation error.

Explanation

The explanation for the given correct answer is that in programming, when declaring the size of automatic and static arrays, only constants can be used. If a non-constant value is used, it will result in a compilation error. This is because the size of an array needs to be known at compile time, and using a non-constant value would make it impossible to determine the size beforehand. Therefore, the statement is true.

Submit
77. Each data item in a record may be a group item composed of sub-items; those items which are indecomposable are called

Explanation

The correct answer is "all of above". In a record, each data item may be a group item composed of sub-items. These sub-items can be elementary items, atoms, or scalars. Elementary items are those that cannot be further decomposed, while atoms refer to individual data elements. Scalars are data items that can hold a single value. Therefore, all of the given options (elementary items, atoms, and scalars) are correct descriptions of data items in a record.

Submit
78. Under which condition circular queue is Full

Explanation

The circular queue is considered full when the front pointer is equal to the value of (rear+1) modulo maxsize. This condition indicates that the next position after the rear pointer is the front pointer, and it ensures that the queue has reached its maximum capacity and cannot accommodate any more elements.

Submit
79. Leaf node is also called internal node

Explanation

The statement in the question is incorrect. A leaf node is a node in a tree data structure that does not have any child nodes. On the other hand, an internal node is a node that has at least one child node. Therefore, a leaf node cannot be called an internal node.

Submit
80. Each data item in a record may be a group item composed of sub-items; those items which are indecomposable are called

Explanation

The correct answer is "all of above". This means that each data item in a record may be a group item composed of sub-items, and those items which are indecomposable can be referred to as elementary items, atoms, or scalars. In other words, all three terms - elementary items, atoms, and scalars - can be used to describe data items that cannot be further broken down into smaller components within a record.

Submit
81. Quick sort is also known as

Explanation

Quick sort is not known as merge sort, heap sort, or bubble sort. It is a sorting algorithm that uses a divide-and-conquer approach to sort elements. It works by selecting a pivot element and partitioning the other elements into two sub-arrays, according to whether they are less than or greater than the pivot. The sub-arrays are then recursively sorted. Therefore, the correct answer is "none of these" as quick sort is not synonymous with any of the mentioned sorting algorithms.

Submit
82. Which is not application of stack

Explanation

The correct answer is "Real operating system" because a stack data structure is not directly used in the implementation of an operating system. While stacks are commonly used in various programming tasks such as string reversal, arithmetic operation evaluation, and recursion, they are not specifically related to the functioning of an operating system.

Submit
83. The value of structure is resizing during run time by using

Explanation

The correct answer is realloc. The realloc function in C is used to resize the memory block allocated by malloc or calloc during runtime. It allows you to change the size of the memory block while preserving its contents. This can be useful when you need to dynamically allocate or deallocate memory based on certain conditions or requirements in your program.

Submit
84. This is a static array

int n[];

Explanation

The given statement declares a static array named "n" without specifying its size or initializing it. In C++, a static array must have a defined size at the time of declaration. Since the size is not mentioned here, the statement is incorrect.

Submit
85. An adjacency matrix representation of a graph cannot contain information of :

Explanation

An adjacency matrix representation of a graph can contain information about nodes, edges, and the direction of edges. However, it cannot represent information about parallel edges. In a graph, parallel edges refer to multiple edges connecting the same pair of nodes. The adjacency matrix can only represent a single connection between two nodes, and therefore cannot contain information about parallel edges.

Submit
86. Disadvantage of linear queue is overcome by using

Explanation

A disadvantage of a linear queue is that once the last position in the queue is reached, new elements cannot be added even if there are empty positions at the beginning. This problem is overcome by using a circular queue, where the last position is connected to the first position, allowing elements to be added even if the queue is not completely empty. This ensures efficient utilization of the available positions in the queue.

Submit
87. The best average behaviour is shown by

Explanation

Quick Sort is known for its efficiency and average case behavior. It has an average time complexity of O(n log n), making it one of the fastest sorting algorithms. Quick Sort uses a divide-and-conquer approach, where it selects a pivot element and partitions the array into two sub-arrays, one with elements smaller than the pivot and the other with elements larger. This process is recursively applied to the sub-arrays until the entire array is sorted. Due to its efficient partitioning and recursive nature, Quick Sort tends to perform well on average, making it the best choice among the given sorting algorithms.

Submit
88. At ___________ , the compiler reserves the appropriate amount of memory (arrays).

Explanation

During the compilation process, the compiler analyzes the code and determines the appropriate amount of memory that needs to be reserved for arrays. This is done based on the size and type of the arrays declared in the program. The compiler calculates the memory requirements and allocates the necessary space for the arrays in the memory. Therefore, at compilation, the appropriate amount of memory for arrays is reserved.

Submit
89. The best average behaviour is shown by

Explanation

Quick Sort is known for its efficient average-case performance. It has an average time complexity of O(n log n), making it faster than Merge Sort, Insertion Sort, and Heap Sort in most cases. Quick Sort achieves this by partitioning the array into two sub-arrays based on a pivot element and recursively sorting the sub-arrays. This divide-and-conquer approach allows Quick Sort to efficiently sort large datasets. In contrast, Merge Sort has a worst-case time complexity of O(n log n) and Insertion Sort has a worst-case time complexity of O(n^2). Heap Sort also has a worst-case time complexity of O(n log n), but it requires additional space for the heap data structure. Therefore, Quick Sort is the best choice for achieving the best average behavior.

Submit
90. The value of structure is resizing during run time by using

Explanation

The correct answer is realloc. The realloc function is used to dynamically resize the memory allocated for a structure during runtime. It allows for the reallocation of memory, increasing or decreasing its size as needed. This function is particularly useful when the size of the structure needs to be adjusted based on certain conditions or requirements. The realloc function ensures efficient memory management by reallocating the memory block and copying the existing data to the new block, if necessary.

Submit
91. Disadvantage of linear queue is overcome by using

Explanation

A linear queue has the disadvantage of limited capacity and inefficient memory usage because once an element is dequeued, the space it occupied cannot be reused. This can be overcome by using a circular queue, which allows elements to be enqueued and dequeued in a circular manner, effectively reusing the space and increasing the capacity of the queue. This ensures efficient memory usage and avoids the limitation of a linear queue.

Submit
92. C language was develop on what year?

Explanation

The C language was developed in 1972.

Submit
93. It is good practice to declare more than one array per declaration to enhance readability.

Explanation

Declaring more than one array per declaration does not necessarily enhance readability. In fact, it can make the code more confusing and harder to understand, especially for beginners. It is generally recommended to declare each array separately to improve clarity and maintainability of the code. Therefore, the given statement is false.

Submit
94. Int n[11];

How many possible elements can be stored in this array?

Explanation

The array "n" has a size of 11, which means it can store 11 elements. The size of an array determines the number of elements it can hold, and in this case, it is 11. Therefore, the correct answer is 11.

Submit
95. How many types of queue's are available

Explanation

There are four types of queues available.

Submit
96. How many types of queue's are available

Explanation

There are four types of queues available. The question is asking about the number of types of queues, and the correct answer is 4.

Submit
97. Which of the following statement is false?

Explanation

The given statement, "pointers store the next data element of a list," is false. Pointers in a linked list do not store the next data element directly, but rather they store the memory address of the next node in the list. This allows the linked list to maintain its structure by connecting nodes together through pointers.

Submit
98. Which of the following statement is false?

Explanation

The statement "pointers store the next data element of a list" is false. Pointers in a linked list store the address of the next node in the list, not the data element itself. The data element is stored in the information part of each node in the linked list.

Submit
99. Brackets ' [ ' have a higher precedence than ' ( '

Explanation

Brackets ' [ ' do not have a higher precedence than ' ( '. In mathematical expressions, parentheses have the highest precedence, followed by brackets. This means that any operations within parentheses should be performed before those within brackets. Therefore, the correct answer is False.

Submit
100. If the array size is omitted from a declaration with an initializer list, the compiler determines the number of elements in the array by accessing the closest constant integer to the statement.

Explanation

If the array size is omitted from a declaration with an initializer list, the compiler does not determine the number of elements in the array by accessing the closest constant integer to the statement. In fact, omitting the array size from the declaration with an initializer list will result in a compilation error. The size of the array must be explicitly specified in the declaration.

Submit
101. Not assigning a value to a constant variable when it is declared....

Explanation

If a constant variable is not assigned a value when it is declared, it will cause a compilation error. This is because a constant variable is meant to have a fixed value that cannot be changed during program execution. Therefore, it is necessary to assign a value to a constant variable when it is declared, and not doing so will result in a compilation error.

Submit
102.  A variable P is called pointer if

Explanation

A variable P is considered a pointer when it contains the address of an element in the DATA. This means that P is referencing a specific location in memory where the element is stored. By holding the address, P can be used to access and manipulate the value of that element indirectly. It is important to note that a pointer does not contain the entire DATA or the address of the DATA itself, but rather the address of a specific element within the DATA.

Submit
103.  A variable P is called pointer if

Explanation

A variable P is called a pointer if it contains the address of an element in the DATA. Pointers are used to store memory addresses, allowing direct access and manipulation of the data stored in that memory location. By holding the address of an element in the DATA, the pointer can effectively point to and interact with that specific element.

Submit
104.  Which of the following data structure is non-linear type?

Explanation

The correct answer is "None of above". This means that none of the given options (Strings, Lists, Stacks) are non-linear data structures. Non-linear data structures are those where each element can have multiple connections or relationships with other elements, forming complex hierarchical or interconnected structures. Strings, Lists, and Stacks are all linear data structures, where elements are arranged in a linear sequence.

Submit
105. Which of the below mentioned sorting algorithms are not stable?

Explanation

Except selection sort, all other sorting algorithms are stable.

Submit
106. The postfix form of the expression (A+ B)*(C*D− E)*F / G is

Explanation

The given expression is converted to postfix form using the following steps:
1. Start scanning the expression from left to right.
2. If an operand is encountered, append it to the postfix expression.
3. If an operator is encountered, check the precedence of the operator with the top of the stack. If the precedence is higher or the stack is empty, push the operator onto the stack.
4. If an operator with lower precedence is encountered, pop the operators from the stack and append them to the postfix expression until an operator with lower precedence or an opening parenthesis is encountered. Then push the current operator onto the stack.
5. If a closing parenthesis is encountered, pop the operators from the stack and append them to the postfix expression until an opening parenthesis is encountered.
6. After scanning the entire expression, pop any remaining operators from the stack and append them to the postfix expression.
The resulting postfix expression is AB+ CD*E − FG /**.

Submit
107. The postfix form of the expression (A+ B)*(C*D− E)*F / G is

Explanation

The given expression is in infix form, where the operators are placed between the operands. To convert it to postfix form, we need to rearrange the expression so that the operators come after their corresponding operands. The postfix form is obtained by scanning the expression from left to right and using a stack to keep track of the operators.

Starting with the first operand, A, we move to the next token, +, which is an operator. Since the stack is empty, we push the operator onto the stack. Moving to the next operand, B, we add it to the postfix expression.

The next token is *, which has higher precedence than +, so we push it onto the stack. Moving to the next operand, C, we add it to the postfix expression.

The next token is D, which is added to the postfix expression. The next token is *, which is pushed onto the stack. The next token is E, which is added to the postfix expression.

The next token is -, which has lower precedence than *, so we pop the * from the stack and add it to the postfix expression. The next token is F, which is added to the postfix expression.

The next token is G, which is added to the postfix expression. The next token is /, which has higher precedence than -, so we push it onto the stack.

Finally, we pop the remaining operators from the stack and add them to the postfix expression. The resulting postfix expression is AB+ CD*E − FG /**.

Submit
108. Quick sort algorithm is an example of _____ 

Explanation

Quick sort divides the list using pivot and then sorts in recursive manner. It uses divide and conquer approach.

Submit
109. Which of the following is not a limitation of binary search algorithm?

Explanation

The given answer states that the limitation of binary search algorithm is that it is not efficient when the data elements are more than 1000. This means that binary search algorithm may not be the best choice when dealing with a large number of data elements, as it may take longer to search for a specific element. However, it is important to note that this limitation is not inherent to binary search algorithm itself, but rather a consideration based on the size of the data set.

Submit
110. In which of the following scenarios would using a self-balancing binary search tree (such as an AVL tree or a Red-Black tree) be more efficient than using a hash table?

Explanation

Self-balancing binary search trees like AVL trees or Red-Black trees maintain the elements in a sorted order, making them ideal when you need to perform in-order traversal or retrieve elements in a sorted sequence. Hash tables, while providing average constant time complexity for insertions, deletions, and lookups, do not maintain any order among elements, making them inefficient for tasks that require sorted data access. Hence, option B is the correct answer.

Submit
111. In order to declare an array of a certain size, you must indicate three things. Check all that apply

Explanation

To declare an array of a certain size, you must indicate the type of the elements in the array, the name of the array, and the size of the array. The type specifies the data type of the elements, the name is used to refer to the array, and the array size determines how many elements the array can hold. Therefore, the correct answer is Type, Name, Array Size.

Submit
112. Const int x;

x = 7;

Will this compile?

Explanation

The code will not compile because the variable "x" is declared as a constant (const) but is not initialized at the time of declaration. In C++, constants must be initialized with a value when they are declared. Therefore, the code will result in a compilation error.

Submit
113. If a static array is not initialized explicitly by you, the program will not compile

Explanation

If a static array is not initialized explicitly by you, the program will still compile. Static arrays are automatically initialized with default values if no explicit initialization is provided. The default values depend on the data type of the array elements. For example, if the array contains integers, the default value will be 0. Therefore, the program will compile successfully even if the static array is not initialized explicitly.

Submit
114. Const int rows = 2;
const int columns = 3;

int array1[ rows ][ columns ] = { { 1, 2 } } , { 4 } };

The outputs will be:

Explanation

not-available-via-ai

Submit
115. Vectors are declared as such:

Explanation

The correct answer is "vector name (size);" because this is the correct syntax for declaring a vector in C++. The keyword "vector" is followed by angle brackets "" which specify the data type of the vector elements. Then, the name of the vector is given followed by parentheses "( )". Inside the parentheses, the size of the vector is specified.

Submit
116.  Identify the data structure which allows deletions at both ends of the list but insertion at only one end.

Explanation

An input-restricted deque is a data structure that allows deletions at both ends of the list but only allows insertion at one end. This means that elements can be removed from either the front or the back of the deque, but new elements can only be inserted at one end (usually the front or the back). This type of deque is useful in situations where we need to efficiently remove elements from both ends of the list but only need to insert elements at one end.

Submit
117. The elements of an array are stored successively in memory cells because

Explanation

The correct answer is "by this way computer can keep track only the address of the first element and the addresses of other elements can be calculated." This is because when elements of an array are stored successively in memory cells, the computer only needs to know the address of the first element. The addresses of the other elements can be calculated based on the size of each element and the index of the element within the array. This allows for efficient memory management and access to array elements.

Submit
118. Under which condition circular queue is Full

Explanation

When the front pointer is equal to the expression (rear+1)%maxsize, it indicates that the circular queue is full. This condition occurs because the front pointer is always one position ahead of the rear pointer in a circular queue. If the front pointer catches up with the rear pointer after wrapping around the queue, it means that there are no empty spaces left in the queue, hence it is full.

Submit
119. Which of the following is not the required condition for binary search algorithm?

Explanation

The correct answer is "There must be mechanism to delete and/or insert elements in list." This is because binary search algorithm only requires the list to be sorted and the ability to access the middle element in any sublist. It does not rely on the ability to delete or insert elements in the list.

Submit
120. A particular way of storing and organizing data in a computer so that it can be used efficiently.

Explanation

The given explanation describes a data structure as a specific method of storing and organizing data in a computer system to ensure efficient utilization. A data structure allows for the effective management and manipulation of data, enabling quick access and retrieval of information. It provides a framework for organizing and storing data elements in a logical and coherent manner, optimizing performance and facilitating various operations on the data.

Submit
121. How many types of sorting in data structure

Explanation

There are two types of sorting in data structure: internal sorting and external sorting. Internal sorting refers to sorting the data that can be fit into the main memory, while external sorting is used when the data is too large to fit into the main memory and needs to be sorted using external storage devices like disks. Therefore, the correct answer is 2.

Submit
122. Defining the size of each array as a constant variable instead of a literal constant can make programs less scalable.

Explanation

Defining the size of each array as a constant variable instead of a literal constant does not necessarily make programs less scalable. In fact, using constant variables can often improve scalability as it allows for easier modification of the array size in the future. By defining the size as a constant variable, developers can easily change the size in one place without having to manually update every instance of the literal constant throughout the program. This flexibility can make programs more adaptable and scalable.

Submit
123. C++ passes arrays to functions by value—the called functions can modify the element values in the callers’ original arrays.

Explanation

The statement is false because in C++, arrays are passed to functions by reference, not by value. This means that the called functions can modify the element values in the callers' original arrays.

Submit
124. Data is nothing but

Explanation

The correct answer is "Set of value" because data refers to a set of values or facts that are collected, organized, and stored for analysis or reference. It can be numeric, alphabetic, or symbolic in nature. Therefore, data is not just a collection of nodes or information, but rather a set of values that can be manipulated and analyzed.

Submit
125. Data is nothing but

Explanation

Data refers to a set of values, facts, or information that is collected and processed for a specific purpose. It is not limited to just a collection of nodes or information, but encompasses a broader concept of a set of values. Therefore, the correct answer is "Set of value".

Submit
126. C language was created by who?

Explanation

Dennis Ritchie is the creator of the C programming language.

Submit
127. Void function1( array[] );

This function will operate correctly, receiving values from the array.

Explanation

The given statement is false because the function1 is missing the data type of the array parameter. In order for the function to operate correctly and receive values from the array, the data type of the array parameter should be specified. Without the data type, the function may not be able to properly access and manipulate the values in the array.

Submit
128. Pass by value means that the calling function can read and write to the original values.

Explanation

Pass by value means that the calling function can only read the original values, but it cannot modify or write to them. In pass by value, a copy of the value is passed to the function, and any changes made to the parameter within the function do not affect the original value outside of the function. Therefore, the statement in the question is incorrect and the correct answer is False.

Submit
129. The depth of a complete binary tree is given by

Explanation

The correct answer is Dn = log2n+1. The depth of a complete binary tree is determined by the formula Dn = log2n+1, where n represents the number of nodes in the tree. This formula calculates the maximum number of levels or layers in the tree. By taking the logarithm base 2 of n and adding 1, we can determine the depth of the complete binary tree.

Submit
130. What is wrong with this code?

int SIZE = 7;

int array[ SIZE ];

Explanation

The code is declaring a variable SIZE and using it to define the size of the array. However, since the size of an array cannot be changed once it is declared, it should be declared as a constant using the "const" keyword. This ensures that the value of SIZE cannot be modified in the code.

Submit
131. Specifies a file to be included

Explanation

The #include directive is used in programming languages like C and C++ to specify a file that needs to be included or inserted into the current source file. This directive allows the programmer to include header files or other source files, which can contain declarations or definitions of functions, variables, or macros that are needed in the current file. It helps in modularizing the code and reusing existing code from other files.

Submit
132. A graphical or symbolic representation of a process. 

Explanation

A flow chart is a visual representation of a process, using symbols and arrows to show the flow of steps or decisions. It is used to illustrate the sequence of activities or events in a process, making it easier to understand and follow. Flow charts are commonly used in various fields such as programming, business, and engineering to visually represent complex processes and improve communication and problem-solving.

Submit
133. Arrays with two dimensions (i.e., subscripts) often represent tables of values consisting of information arranged in ____ and __________.

*Enter your answer in the form of:   word1 word2

Explanation

Arrays with two dimensions often represent tables of values consisting of information arranged in rows and columns. In this context, "rows" refers to the horizontal arrangement of data, while "columns" refers to the vertical arrangement. Each element in the array corresponds to a specific intersection of a row and a column, allowing for easy organization and retrieval of data.

Submit
134. A  B-tree is called 

Explanation

A B-tree is called a multi-way search tree with height balance because it is a type of search tree that can have multiple child nodes and maintains a balance in its height. This means that all leaf nodes are at the same level, resulting in efficient search and insertion operations. The height balance property ensures that the tree remains balanced even after multiple insertions and deletions, which helps in maintaining optimal performance for various operations like searching, inserting, and deleting data.

Submit
135. Arrays are always _______ structures because they remain the same size throughout execution

Explanation

Arrays are considered static structures because their size remains fixed throughout the execution of a program. Unlike dynamic data structures like linked lists or queues, arrays have a fixed length that is determined at the time of declaration. This means that once an array is created, its size cannot be changed. Therefore, arrays are considered static structures as they do not dynamically resize or change in size during program execution.

Submit
136. The fundamental looping statement in C

Explanation

The for loop is a fundamental looping statement in the C programming language. It allows a specific block of code to be executed repeatedly based on a condition. The loop consists of an initialization expression, a condition expression, and an increment expression. The initialization expression is executed only once at the beginning of the loop. The condition expression is evaluated before each iteration, and if it is true, the loop body is executed. After each iteration, the increment expression is executed. This process continues until the condition expression becomes false. The for loop is commonly used when the number of iterations is known in advance.

Submit
137. Bubble Sort

The first iteration of this algorithm takes the second element and, if it’s less than the first element, swaps it with the first element (i.e., the program inserts the second element in front of the first element).

Explanation

The explanation for the given correct answer is that in the first iteration of the bubble sort algorithm, the program compares the second element with the first element. If the second element is less than the first element, they are swapped. Therefore, the second element is not inserted in front of the first element. Hence, the statement "The first iteration of this algorithm takes the second element and, if it’s less than the first element, swaps it with the first element (i.e., the program inserts the second element in front of the first element)" is false.

Submit
138. A  B-tree is called 

Explanation

A B-tree is called a multi-way search tree with height balance because it is a type of tree data structure that allows for multiple child nodes per parent node, unlike a binary tree which only allows for two child nodes per parent node. Additionally, a B-tree is designed to maintain a balance in its height, meaning that the height of the tree is kept relatively small compared to the number of elements it contains. This balance is achieved through various techniques such as splitting and merging nodes when necessary.

Submit
139. How many types of sorting in data structure

Explanation

There are two types of sorting in data structures: internal sorting and external sorting. Internal sorting refers to sorting the data that can fit into the main memory of a computer, while external sorting is used when the data is too large to fit into the main memory and needs to be sorted using external storage devices such as hard drives or tapes. Therefore, the correct answer is 2.

Submit
140. Consider a B+-tree in which the maximum number of keys in a node is 5. What is the minimum number of keys in any non-root node?

Explanation

Since the maximum number of keys is 5, maximum number of children a node can have is 6. By definition of B Tree, minimum children that a node can have would be 6/2 = 3. Therefore, minimum number of keys that a node can have becomes 2 (3-1).

Submit
141. A diamond flow chart shape indication a branch in the process flow.

Explanation

The diamond flow chart shape is commonly used to represent a decision point in a process flow. It indicates that there are multiple possible paths or outcomes based on the decision being made. In this context, the correct answer "Decision" suggests that the diamond shape is used to represent a decision in the process flow.

Submit
142. The first element in every array has subscript ______ and is sometimes called the _____th element.

Explanation

The first element in an array is always assigned the subscript zero, indicating its position at the beginning of the array. This element is commonly referred to as the "zeroth" element, as it is the initial element in the sequence.

Submit
143. A parallelogram that indicates data input or output (I/O) for a process.

Explanation

The given answer, "Data," is the correct answer because it directly relates to the description provided. The description mentions a parallelogram that represents data input or output for a process. Therefore, it can be inferred that the answer refers to the data being input or outputted in the process.

Submit
144. An array is a _____________ group of memory locations that all have the same type.

Explanation

An array is a data structure that stores a collection of elements of the same type in consecutive memory locations. This allows for efficient access and manipulation of the elements using their indices. By storing the elements consecutively, the array ensures that they can be easily accessed and iterated over in a sequential manner. Therefore, the term "consecutive" accurately describes the nature of an array's memory allocation and organization.

Submit
145. An oval flow chart shape indicating the start or end of the process. 

Explanation

The given correct answer is "Terminator". In flowcharts, the oval shape is used to represent the start or end of a process. It signifies the beginning or the conclusion of a flowchart diagram. The terminator shape indicates where the flowchart starts or ends, helping to provide a clear understanding of the flow of the process.

Submit
146. A program initializes static local arrays when their declarations are ____________.

Explanation

Static local arrays are initialized when their declarations are first encountered in a program. This means that when the program reaches the line of code where the static local array is declared, it will allocate memory for the array and initialize its elements. This initialization only happens once, and subsequent calls to the function will not reinitialize the array. Therefore, the correct answer is "first encountered".

Submit
147. A rectangular flow chart shape indicating a normal process flow step.

Explanation

The given correct answer is "Process". This is because the rectangular flow chart shape represents a normal process flow step. In flowcharts, the rectangular shape is commonly used to represent a process or an action that occurs in the flow. It indicates a specific task or operation that needs to be performed in the overall process. Therefore, "Process" is the appropriate answer for the given shape in the flowchart.

Submit
148. A common error when writing for the loops is to place a _____ ?

Explanation

A common error when writing for loops is to place a semicolon. This is because a semicolon is used to indicate the end of a statement, so placing it immediately after the loop declaration would cause the loop to terminate prematurely. The correct syntax for a for loop includes the initialization, condition, and increment or decrement statements within the parentheses, followed by the loop body enclosed in curly braces.

Submit
149. To pass an element of an array to a function, use the array name as an argument in the function call.

Explanation

To pass an element of an array to a function, you need to specify the index of the element within the array as an argument in the function call, not the array name itself. The array name represents the entire array, so passing it as an argument would pass the entire array to the function, not just a specific element. Therefore, the statement is false.

Submit
150. Arrays with multiple dimensions are known as ______ by _________ arrays.

*Enter your answer in the form of:   word1 word2 (with a space separating answers)

Explanation

Arrays with multiple dimensions are known as multidimensional arrays.

Submit
151.  A small, labeled, circular flow chart shape used to indicate a jump in the process flow.

Explanation

A connector is a small, labeled, circular flow chart shape that is used to indicate a jump in the process flow. It is typically used when there is a need to connect different parts of a flowchart or when there is a need to show a jump or break in the flow. Connectors help to make the flowchart more organized and easy to understand by visually connecting different parts of the process.

Submit
152. Which one of the following is a key factor for preferring B-trees to binary search trees for indexing database relations?

Explanation

A disk block contains fairly large number of keys. Unlike BST where each node contains only one key, B-Tree is designed to contain large number of keys so that tree height is small.

Submit
153. Providing more initializers in an array initializer list than there are ___________ in the array is a compilation error.

Explanation

When initializing an array, the number of initializers provided in the array initializer list should match the number of elements in the array. If there are more initializers than elements in the array, it will result in a compilation error. In this case, the correct answer is "elements" because it represents the number of elements in the array, and "indexs" and "positions" are incorrect spellings.

Submit
154. On which prinicple does stack work?

Explanation

The stack works on the principle of FIFO, which stands for "First-In, First-Out." This means that the first item that is added to the stack will be the first one to be removed. In other words, the most recently added item will always be at the top of the stack, and when an item is removed, it will be the one that was added earliest. This principle is commonly used in data structures and algorithms, such as in the implementation of a stack or a queue.

Submit
155. General-purpose computer programming language

Explanation

C Language is a general-purpose computer programming language. It is a widely used programming language that was developed in the early 1970s. C Language is known for its simplicity and efficiency, making it suitable for a wide range of applications. It provides low-level access to memory and hardware, allowing programmers to write efficient and optimized code. C Language is also highly portable, meaning that programs written in C can be easily compiled and run on different platforms. Due to its versatility and widespread use, C Language remains a popular choice for programming tasks.

Submit
156. Character arrays can also represent ________ (hint: types)

Explanation

think of data types

Submit
157. _________ sort is a simple, but inefficient, sorting algorithm.

Explanation

Insertion sort is a simple, but inefficient, sorting algorithm because it compares each element with the previous elements in the list and inserts it in the correct position. It starts with the second element and iterates through the list, comparing and swapping elements until the entire list is sorted. This algorithm has a time complexity of O(n^2), making it inefficient for large lists. However, it is easy to understand and implement, making it suitable for small lists or partially sorted data.

Submit
158. Select all that apply.

Vectors are more powerful than arrays because:

Explanation

Vectors are more powerful than arrays because they can be compared to other vectors with equality operators, vectors can be assigned to one another with the assignment operators, one vector's contents can be copied to another using its copy constructor, and they provide bounds checking, something that can't be done with arrays.

Submit
159. Set of Instruction

Explanation

not-available-via-ai

Submit
160. The linear search compares each element of an array with a __________

Explanation

The linear search algorithm compares each element of an array with a search key or key. This means that it sequentially checks each element in the array starting from the first element until it finds a match with the search key. If a match is found, the algorithm returns the index of the element. If no match is found, it indicates that the search key is not present in the array. Therefore, the correct answer for this question is search key or key.

Submit
161. Arrays with 2 dimensions are called ___________

Explanation

Arrays with 2 dimensions are commonly referred to as two dimensional arrays. They can also be called two dimensional, 2-D arrays, or simply 2-D. These terms all describe the same concept of arrays that have both rows and columns, allowing for data to be organized in a grid-like structure.

Submit
162. A function which has its protype defined in conio.h header file

Explanation

The correct answer is "getch();". This function is used to read a single character from the console without echoing it. It is commonly used in C programming to pause the program until a key is pressed. The prototype for this function is defined in the "conio.h" header file, which is why it is the correct answer.

Submit
163. Tag for Stands for "standard input/output header"

Explanation

The tag "Stands for 'standard input/output header'" is used to indicate that the tag refers to the standard input/output header in programming. This header is commonly used in programming languages to provide functions and definitions related to input and output operations, such as reading from or writing to the console. The use of this tag allows programmers to easily identify and understand the purpose and functionality of the standard input/output header in their code.

Submit
164. It is a tag for C header file used in old MS-DOS compilers to create text user interfaces

Explanation

The given answer is correct because the tag mentioned is indeed a header file used in old MS-DOS compilers. This header file allows programmers to create text user interfaces in the C programming language.

Submit
View My Results

Quiz Review Timeline (Updated): Aug 10, 2024 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Aug 10, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • May 19, 2017
    Quiz Created by
    Infotricks1on1
Cancel
  • All
    All (164)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Array is Linear data  structure
Array is Linear data  structure
Queue data structure works on
Which is not a primitive data type?
A queue is a,
A queue is a,
Which of the following data structure is linear data structure?...
What is int stands for?
Which of the following data structure is linear data structure?...
For a binary search algorithm to work, it is necessary that the array...
What is the symbol of increment
A linear collection of data elements where the linear node is given by...
Which is not primitive data structure
Binary search tree is also called two way search tree
A linear collection of data elements where the linear node is given by...
Binary search tree is also called two way search tree
A multidimensional array is declared as such: ...
A subscript/index must be an integer or integer expression (using any...
What is the symbol of decrement
The position number is more formally called a subscript or index (this...
In the statement:int a [ arraySize ] = { 87, 64, 52, 4, 45, 63, 55,...
Static int array1[ arraySize];Will initialize each element to 0 the...
Stack is work on the principal of
1.44 log n is the worst case height of an AVL tree.
An algorithm that calls itself directly or indirectly is...
____________ are data structures consisting of related data items of...
Which is the array name?int int1[ int2 ];
When passing an array to a function, the array size is normally passed...
The value of the name of the array is the address in the computer’s...
Stack is work on the principal of
[ ] and ( ) have the highest precedence
Pass by reference means that the calling function can read and write...
A multidimensional array is declared as such:int array[ [] ];
 Which data structure allows deleting data elements...
The memory address of the first element of an array is called
Int n[11];What is the last index number (or subscript) of this array?
Applying 'static' to an array declaration will allow the array not to...
C++ passes arrays to functions by reference—the called functions can...
Which of the following is an array declaration with initalizers
The name of the array is the address in the computers memory of the...
Time complexity of linear search is
Concept of array employes Wastage of memory 
Which data structure is needed to convert infix notation to postfix...
Overflow condition in stack is called
The situation when in a linked list START=NULL is
Which data structure is needed to convert infix notation to postfix...
If the array size is omitted from a declaration with an initializer...
Although entire arrays are passed by reference, individual array...
A full binary tree with n leaves contains
Overflow condition in stack is called
Highest precedence is
AVL stands for
Which method can find if two vertices x & y have path between...
Highest precedence is
If a static array is not initialized explicitly by you, each element...
Which is not predefine string function
AVL stands for
Time complexity of linear search is
Concept of array employes Wastage of memory 
A full binary tree with n leaves contains
An array is a ....
Which is not predefine string function
Representation of data structure in memory is known as:
To refer to a particular location or element in the array, we specify...
What is the most dominant method for accessing and printing an entire...
This statement will not compileint array[] = {1, 2, 3, 4};
Which is not application of stack
Representation of data structure in memory is known as:
Quick sort is also known as
Passing arrays by value would mean that each element would be copied...
A multidimensional array cannot be initialized in its...
A leaf node have degree
An adjacency matrix representation of a graph cannot contain...
Void function1( array ); ...
Leaf node is also called internal node
Only constants can be used to declare the size of automatic and status...
Each data item in a record may be a group item composed of sub-items;...
Under which condition circular queue is Full
Leaf node is also called internal node
Each data item in a record may be a group item composed of sub-items;...
Quick sort is also known as
Which is not application of stack
The value of structure is resizing during run time by using
This is a static arrayint n[];
An adjacency matrix representation of a graph cannot contain...
Disadvantage of linear queue is overcome by using
The best average behaviour is shown by
At ___________ , the compiler reserves the appropriate amount of...
The best average behaviour is shown by
The value of structure is resizing during run time by using
Disadvantage of linear queue is overcome by using
C language was develop on what year?
It is good practice to declare more than one array per declaration to...
Int n[11];How many possible elements can be stored in this array?
How many types of queue's are available
How many types of queue's are available
Which of the following statement is false?
Which of the following statement is false?
Brackets ' [ ' have a higher precedence than ' ( '
If the array size is omitted from a declaration with an initializer...
Not assigning a value to a constant variable when it is declared....
 A variable P is called pointer if
 A variable P is called pointer if
 Which of the following data structure is non-linear...
Which of the below mentioned sorting algorithms are not stable?
The postfix form of the expression (A+ B)*(C*D− E)*F / G is
The postfix form of the expression (A+ B)*(C*D− E)*F / G is
Quick sort algorithm is an example of _____ 
Which of the following is not a limitation of binary search algorithm?
In which of the following scenarios would using a self-balancing...
In order to declare an array of a certain size, you must indicate...
Const int x;x = 7;Will this compile?
If a static array is not initialized explicitly by you, the program...
Const int rows = 2;const int columns = 3;int array1[ rows ][ columns ]...
Vectors are declared as such:
 Identify the data structure which allows deletions at...
The elements of an array are stored successively in memory cells...
Under which condition circular queue is Full
Which of the following is not the required condition for binary search...
A particular way of storing and organizing data in...
How many types of sorting in data structure
Defining the size of each array as a constant variable instead of a...
C++ passes arrays to functions by value—the called functions can...
Data is nothing but
Data is nothing but
C language was created by who?
Void function1( array[] );This function will operate correctly,...
Pass by value means that the calling function can read and write to...
The depth of a complete binary tree is given by
What is wrong with this code?int SIZE = 7;int array[ SIZE ];
Specifies a file to be included
A graphical or symbolic representation of a process. 
Arrays with two dimensions (i.e., subscripts) often represent tables...
A  B-tree is called 
Arrays are always _______ structures because they remain the same size...
The fundamental looping statement in C
Bubble SortThe first iteration of this algorithm takes the second...
A  B-tree is called 
How many types of sorting in data structure
Consider a B+-tree in which the maximum number of keys in a node is 5....
A diamond flow chart shape indication a branch in the process flow.
The first element in every array has subscript ______ and is sometimes...
A ...
An array is a _____________ group of memory locations that all have...
An ...
A program initializes static local arrays when their declarations are...
A rectangular flow chart shape indicating a normal process flow step.
A common error when writing for the loops is to place a _____ ?
To pass an element of an array to a function, use the array name as an...
Arrays with multiple dimensions are known as ______ by _________...
 A small, labeled, circular flow chart shape used to indicate a...
Which one of the following is a key factor for preferring B-trees to...
Providing more initializers in an array initializer list than there...
On which prinicple does stack work?
General-purpose computer programming language
Character arrays can also represent ________ (hint: types)
_________ sort is a simple, but inefficient, sorting algorithm.
Select all that apply. Vectors are more powerful than arrays because:
Set of Instruction
The linear search compares each element of an array with a __________
Arrays with 2 dimensions are called ___________
A function which has its protype defined in conio.h header file
Tag for Stands for "standard input/output header"
It is a tag for C ...
Alert!

Advertisement