The most commonly used arrays in business applications are ____-dimensional and ____-dimensional. a. zero, one c. two, three b. one, two d. three, four

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.4: Arrays As Arguments
Problem 6E: (Electrical eng.) Write a program that declares three one-dimensional arrays named volts, current,...
icon
Related questions
Question

The most commonly used arrays in business applications are ____-dimensional and ____-dimensional.

a.

zero, one

c.

two, three

b.

one, two

d.

three, four

 

If N is the number of variables in an array, the last variable of the array is assigned a subscript of ____.

a.

N-2

c.

N

b.

N-1

d.

N+1

 

The statement ____ assigns the character X to the first element of the letters array.

a.

letters[0] = 'X';

c.

letters[1] = 'X';

b.

letters[1] = "X";

d.

letters[0] = "X";

 

A subscript is also called a(n) ____.

a.

iterator

c.

key

b.

index

d.

scalar

 

When using bubble sort to sort an array in ascending order, at the end of the first pass, the ____ value is stored in the last position of the array.

a.

median

c.

largest

b.

mean

d.

smallest

 

____ declares and initializes a four-element string array named sales; each element is initialized to 0.0.

a.

string [4]sales = {0.0};

b.

string sales[4] = {};

c.

string sales[4] = {0.0, 0.0, 0.0, 0.0};

d.

string sales[] = {0.0};

 

A(n) ____ is a group of variables that have the same name and data type and are related in some way.

a.

object

c.

class

b.

scalar variable

d.

array

 

To pass a scalar variable by reference in C++, you need to include the ____ operator before the formal parameter’s name in the receiving function’s header.

a.

&

c.

$

b.

*

d.

@

 

A unique number called a(n) ____ identifies each variable in a one-dimensional array.

a.

scalar

c.

iterator

b.

pointer

d.

subscript

 

Assigning initial values to an array is often referred to as ____ the array.

a.

filling

c.

setting up

b.

declaring

d.

populating

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT