• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 6 páginas
Examen

Quiz 7 C++

Document preview thumbnail
Vista previa 2 fuera de 6 páginas

Exam of 6 pages for the course C++ at C++ (Quiz 7 C++)

Vista previa del contenido

Quiz 7 C++GRADE A &A
Unlike regular variables, these can hold multiple values. - (correct answer)The correct
answer is: arrays



The individual values contained in array are known as ________. - (correct answer)The
correct answer is: elements



To access an array element, use the array name and the element's ________. - (correct
answer)The correct answer is: subscript



Which of the following is a valid C++ array definition? - (correct answer)The correct
answer is: int array[10];



The statement:



int grades [] = {100, 90, 99, 80};



shows an example of: - (correct answer)The correct answer is: implicit array sizing


By using the same ________ you can build relationships between data stored in two or
more arrays. - (correct answer)The correct answer is: subscript


The name of an array stores the ________ of the first array element. - (correct
answer)The correct answer is: memory address



A two-dimensional array is like ________ put together. - (correct answer)The correct
answer is: several identical arrays



A two-dimensional array can be viewed as ________ and ________. - (correct
answer)The correct answer is: rows, columns

, If you leave out the size declarator in an array definition: - (correct answer)The correct
answer is: you must furnish an initialization list



Which of the following is a valid C++ array definition? - (correct answer)The correct
answer is: int scores [10];



An element of a two-dimensional array is referred to by ________ followed by
________. - (correct answer)The correct answer is: the row subscript of the element,
the column subscript of the element



When writing functions that accept multi-dimensional arrays as arguments, ________
must be explicitly stated in the parameter list. - (correct answer)The correct answer is:
all but the first dimension



An array can store a group of values, but the values must be: - (correct answer)The
correct answer is: the same data type



An array's size declarator must be a ________ with a value greater than ________. -
(correct answer)The correct answer is: constant integer expression, zero



Subscript numbering in C++________. - (correct answer)The correct answer is: begins
with zero


Arrays may be ________ at the time they are ________. - (correct answer)The correct
answer is: initialized, declared



Given the following declaration, where is the value 77 stored in the scores array? -
(correct answer)The correct answer is: scores[2]

Información del documento

Subido en
26 de octubre de 2024
Número de páginas
6
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$10.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
douglasmugwe82
5.0
(1)
Vendido
2
Seguidores
0
Artículos
4215
Última venta
1 año hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes