• ¿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 8 páginas
Examen

Chapter 6 C++

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

Exam of 8 pages for the course Chapter 6 C++ at Chapter 6 C++ (Chapter 6 C++)

Vista previa del contenido

Chapter 6 C++ GRADE A QUESTIONS WITH
ANSWER

A(n) ________ argument is passed to a parameter when the actual argument is left out
of the function call. - (correct answer)default



A function ________ eliminates the need to place a function definition before all calls to
the function. - (correct answer)prototype



This is a statement that causes a function to execute. - (correct answer)function call



EXIT_FAILURE and ________ are named constants that may be used to indicate
success or failure when the exit( ) function is called. - (correct answer)EXIT_SUCCESS



What is the output of the following program?

#include <iostream>

using namespace std;



int getValue (int);



int main()

{

int x= 2;

cout<< getValue (x)<< endl;

return 0;

}

int getValue (int num)
{

, return num +5;

} - (correct answer)7



In a function header, you must furnish:

1) data types of the parameters

2) the name of function

3) names of parameter variables

4) data type of the return value
5) all of these - (correct answer)all of these



A(n) ________ is information that is passed to a function, and a(n) ________ is
information that is received by a function. - (correct answer)argument, parameter



What is the output of the following program?



#include <iostream>

using namespace std;



void showDub(int);



int main ()

{

int x=2;


showDub (x);

cout <<x<< endl;

return0;

Información del documento

Subido en
26 de octubre de 2024
Número de páginas
8
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