Question

Which of the following data structure can’t store non-homogeneous data elements? A) Arrays B) Linked Lists...

Which of the following data structure can’t store non-homogeneous data elements? A) Arrays B) Linked Lists C) Trees D) Stacks Explain

Which of the following is non-liner data structure?

A) Arrays

B) Linked Lists

C) Strings

D) Trees

Explain

Homework Answers

Answer #1

1) Answer: (A)Arrays: Array is a user defined data structure which is used to indicate multiple variable and store the multiple homogenous value in continous memory locations.Non homogeous data refers to set of non- similar data type where as array consists of set of similar data such as set of integers or set of chars etc. Non -homogenous data consists of a set consisting ofboth chars and integers.Hence the answer to the above question is Arrays

2)Answer: (D) Trees: Tree is a non-linear data structure because it is connected to several other data items.So a tree data has the possibility to reach one-or-more data items which implies that if you'' draw the structure of tree on a paper it will never come on a single line. Hence it's a non-linear data structure.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
JAVA *** All data structures, including array operations, queues, stacks, linked lists, trees, etc need to...
JAVA *** All data structures, including array operations, queues, stacks, linked lists, trees, etc need to be implemented by you. Write a menu driven program that implements the following doubly linked list operations : INSERT (at the beginning) INSERT_ALPHA (in alphabetical order) DELETE (Identify by contents, i.e. "John", not #3) COUNT CLEAR
Selecting an Implementation We have studied arrays, vectors, and linked lists. Say which you would use...
Selecting an Implementation We have studied arrays, vectors, and linked lists. Say which you would use to implement each situation below. Defend every answer by saying why the answer you chose is better than the other two possibilities. A list of participants at a large public hearing. As each person arrives, their name is entered into the system, where it is appended to the end of the list. Thermometer readings at a weather station. The temperature is recorded every 5...
In the following C code, Which variable if NOT of primitive data type? A. a B....
In the following C code, Which variable if NOT of primitive data type? A. a B. b C. c D. d int a = 10; double b = 20.0; float c = false; char d[5] = "Hello"; // here we define a string In programming language C, the implementation of a string data type is limited dynamic length, which means the length of a string variable is fixed once it has been defined. A. True B. False In C# programming...
JAVA please Arrays are a very powerful data structure with which you must become very familiar....
JAVA please Arrays are a very powerful data structure with which you must become very familiar. Arrays hold more than one object. The objects must be of the same type. If the array is an integer array then all the objects in the array must be integers. The object in the array is associated with an integer index which can be used to locate the object. The first object of the array has index 0. There are many problems where...
#Linked Lists and Classes #C++ Hi, please use singly linked list method to do this question....
#Linked Lists and Classes #C++ Hi, please use singly linked list method to do this question. Thank you! Here’s the contents of a file called example.cpp: // example.cpp #include "LinkedList.h" #include <iostream> #include <string> using namespace std; int main() { cout << "Please enter some words (ctrl-d to stop):\n"; LinkedList lst; int count = 0; string s; while (cin >> s) { count++; lst.add(remove_non_letters(s)); } // while cout << "\n" << count << " total words read in\n"; cout <<...
(6) (a) Give an example of a ring with 9 elements which is not a field....
(6) (a) Give an example of a ring with 9 elements which is not a field. Explain your answer. (b) Give an example of a field of 25 elements. Explain why. (c) Find a non-zero polynomial f(x) in Z3[x] such that f(a) = 0 for every a ? Z3. (d) Find the smallest ideal of Q that contains 3/4.
Which of the following is NOT directly linked to catecholamines a. Increased cardiac output b. Hb-O2...
Which of the following is NOT directly linked to catecholamines a. Increased cardiac output b. Hb-O2 binding affinity c. Increased heart rate d. Increased systemic vascular resistance e. Increased MAP
Given the following adjacency lists (with edge weights in parentheses) for a directed graph: A: B(5),...
Given the following adjacency lists (with edge weights in parentheses) for a directed graph: A: B(5), C(3), D(1) B: C(1), D(3) C: B(3), D(7), E(1) D: A(6), C(3) E: F(5) F: D(3), A(4) Execute Dijkstra’s shortest-path algorithm by hand on this graph, showing how the data structures evolve, with A as the starting vertex. Clearly indicate which edges become part of the shortest path and in which order.
Which type of R object can be used to store data that contain a factor variable...
Which type of R object can be used to store data that contain a factor variable and a numerical variable with different lengths? A) data frame B) list C) matrix D) array Which of the following function is not for importing data in R? A) read.table( ) B) scan( ) C) read.csv( ) D) write.table( )
Profit centers are associated with which organizational structure? A. Functional Structure B. Simple Structure C. Geographic...
Profit centers are associated with which organizational structure? A. Functional Structure B. Simple Structure C. Geographic Divisional Structure D. None of the Above Tall organizations tend to be best suited for? A. Dynamic Environments B. Stable Environments C. Either Dynamic or Stable Environments D. Neither Dynamic or Stable Environments The increase in the length of the organization’s hierarchy is called A. Horizontal Growth B. Vertical Growth C. Span of Control D. Organizational Structure The structure that combines parts of two...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT