Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions 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
Check Mark
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education