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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education