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

C++ Quiz 3

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

Exam of 9 pages for the course Cef at Cef (C++ Quiz 3)

Vista previa del contenido

C++ Quiz 3 Grade A question with answer

________ reads a line of input, including leading and embedded spaces, and stores it in
a string object.

Select one:

a. cin.get

b. getline

c. cin.getline

d. get
e. None of these - (correct answer)b.(getline)



When this operator is used with string operands it concatenates them, or joins them
together.

Select one:

a. &

b. *

c. %

d. +

e. None of these - (correct answer)d. (+)



The ________ causes a program to wait until information is typed at the keyboard and
the Enter key is pressed.

Select one:

a. Output stream
b. cin object

c. cout object

d. Preprocessor

e. None of these - (correct answer)b. (cin object)

, This function tells the cin object to skip one or more characters in the keyboard buffer.

Select one:

a. cin.ignore

b. cin.jump

c. cin.hop

d. cin.skip;

e. None of these - (correct answer)a. (cin.ignore)


The function, pow(x, 5.0), requires this header file.

Select one:

a. cstdlib

b. iostream

c. cstring

d. cmath

e. iomanip - (correct answer)d.(cmath)



You want the user to enter the length, width, and height from the keyboard. Which cin
statement is correctly written?

Select one:

a. cin >> length, width, height;
b. cin << length, width, height;

c. cin << length; width; height;

d. cin.get(length, width, height);
e. cin >> length >> width >> height; - (correct answer)e. (cin >> length >> width >>
height;)



You can use these to override the rules of operator precedence in a mathematical
expression.

Información del documento

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