EBK C HOW TO PROGRAM
EBK C HOW TO PROGRAM
8th Edition
ISBN: 9780133964639
Author: Deitel
Publisher: PEARSON CUSTOM PUB.(CONSIGNMENT)
bartleby

Videos

Textbook Question
Book Icon
Chapter 6, Problem 6.6E

Fill in the blanks in each of the following:

  1. C stores lists of values in _______.
  2. The elements of an array are related by the fact that they _____.
  3. When referring to an array element, the position number contained within square brackets is called a(n) __________.
  4. The names of the five elements of array p are ___, ____, ___, _____ and ____.
  5. The contents of a particular element of an array is called the _____ of that element.
  6. Naming an array, stating its type and specifying the number of elements in the array is called _____ the array.
  7. The process of placing the elements of an array into either ascending or descending order is called ____.
  8. In a two-dimensional array, the first index identifies the _____ of an element and the second index identifies the _____ of an element.
  9. An m-by-n array contains _____ rows, _____ columns and _____ elements.
  10. The name of the element in row 3 and column 5 of array d is ___.

a)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks with appropriate word.

Program Description Answer

C stores the list of values in _Arrays.

Explanation of Solution

Arrays in C stores the homogenous data type of values in consecutive memory locations.Thus, the correct fill up is arrays.

b)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks with appropriate word.

Program Description Answer

The elements of the array are related by the fact that they areHomogeneous.

Explanation of Solution

Arrays in C stores the homogenous data type (of the same type) of values in consecutive memory locations e.g. they can contain the same kind of elements like integers, characters, doubles and floats. etc.

Thus, the correct fill up is homogeneous.

c)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

When referring to an array element, the position number contained within square brackets is called aSubscript.

Explanation of Solution

The elements in an array are accessed using the index value contained within the square bracket known as a subscript. It is used to identify the index of the element.

Thus, the correct fill up is subscript.

d)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

The names of five elements of array p are p[0], p[1],p[2],p[3] and p[4].

Explanation of Solution

The elements of the array are accessed using the subscript which start from 0 to length-1.Thus, the correct fill up is p[0],p[1],p[2], p[3] and p[4]..

e)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

The contents of the particular element of the array are called as thevalueof the element in the array.

Explanation of Solution

The content of the element of an array is called the value. For example a is an array and the element at its first positive contains the content 2. So the value will be 2.Thus, the correct fill up is value.

f)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

Naming an array, stating its type and specifying the number of elements in the array is called thedeclarationof the array.

Explanation of Solution

Declaration syntax of an array is as follows-

type arrayname[size];

For example,intarr[5]; //declaration of integer array of size 5.

Thus, the correct fill up is Declaration.

g)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

The process of placing the elements of an array either in ascending order or descending order is calledSorting.

Explanation of Solution

Sorting is the process of arranging the element either in increasing or decreasing order. Thus, the correct fill up is sorting.

h)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

In a two-dimensional array, the first index identifies therow of an element and the second element identifies thecolumnof an element.

Explanation of Solution

The elements in two-dimensional array are stored in rows and column.

Following is the assignment in a 2D array.

a[0][1]=5;

Here 0 is the row number and 1 is the column number and at this position value 5 is stored.Thus, the correct fill up is rowandcolumn.

i)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

An m by n array contains_m_ rows, _n_ columns and _m*n__ elements.

Explanation of Solution

The number of elements in 2 d array is always the product of the number of rows and columns.Thus, the correct fill up arem, n and m*n.

j)

Expert Solution
Check Mark
Program Plan Intro

To fill in the blanks.

Program Description Answer

The name of an element in row 3 and column 5 of array d isd[2][4].

Explanation of Solution

The array indices always start from 0, so the element in 3rd row and 5th column of 2 d array d will be denoted by d[2][4].

Thus, the correct fill up is d[2][4].

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
09:44
Students have asked these similar questions
List at least five Operating Systems you know. What is the difference between the kernel mode and the user mode for the Linux? What is the system-call? Give an example of API in OS that use the system-call. What is cache? Why the CPU has cache? What is the difference between the Static Linking and Dynamic Linking when compiling the code.
In the GoF book, List interface is defined as follows: interface List { int count(); //return the current number of elements in the list Object get(int index); //return the object at the index in the list Object first(); //return the first object in the list Object last(); //return the last object in the list boolean include(Object obj); //return true is the object in the list void append(Object obj); //append the object to the end of the list void prepend(Object obj); //insert the object to the front of the list void delete(Object obj); //remove the object from the list void deleteLast(); //remove the last element of the list void deleteFirst(); //remove the first element of the list void deleteAll(); //remove all elements of the list (a) Write a class adapter to adapt Java ArrayList to GoF List interface. (b) Write a main program to test your adapters through List interface. (c) Same requirement as (a) and (b), but write an object adapter to adapt Java ArrayList to GoF List…
In modern packet-switched networks, including the Internet, the source host segments long, application-layer messages (for example, an image or a music file) into smaller packets and sends the packets into the network. The receiver then reassembles the packets back into the original message. We refer to this process as message segmentation. Figure 1.27 (attached) illustrates the end-to-end transport of a message with and without message segmentation. Consider a message that is 106 bits long that is to be sent from source to destination in Figure 1.27. Suppose each link in the figure is 5 Mbps. Ignore propagation, queuing, and processing delays. a. Consider sending the message from source to destination without message segmentation. How long does it take to move the message from the source host to the first packet switch? Keeping in mind that each switch uses store-and-forward packet switching, what is the total time to move the message from source host to destination host? b. Now…

Chapter 6 Solutions

EBK C HOW TO PROGRAM

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
1.1 Arrays in Data Structure | Declaration, Initialization, Memory representation; Author: Jenny's lectures CS/IT NET&JRF;https://www.youtube.com/watch?v=AT14lCXuMKI;License: Standard YouTube License, CC-BY
Definition of Array; Author: Neso Academy;https://www.youtube.com/watch?v=55l-aZ7_F24;License: Standard Youtube License