null
US
Iniciar Sesión
Regístrate Gratis
Registro
Hemos detectado que no tienes habilitado Javascript en tu navegador. La naturaleza dinámica de nuestro sitio requiere que Javascript esté habilitado para un funcionamiento adecuado. Por favor lee nuestros
términos y condiciones
para más información.
Siguiente
Copiar y Editar
¡Debes iniciar sesión para completar esta acción!
Regístrate gratis
21785778
C++ Quiz 1
Descripción
control io, namespaces & data types.
Sin etiquetas
computer science
Test por
Oscar Rojas
, actualizado hace más de 1 año
Más
Menos
Creado por
Oscar Rojas
hace más de 4 años
1
0
0
Resumen del Recurso
Pregunta 1
Pregunta
Check all that are valid declarations:
Respuesta
long n = 100;
int a = 25
double {0.07};
unsigned __int16 = -69;
unsigned long double = 4.444;
Pregunta 2
Pregunta
What will the following code return: #include <iostream> int main() { __int16 t = 1400; std::cout << t + sizeof(t); }
Respuesta
1402
1416
1432
Pregunta 3
Pregunta
Which of the following may not be of type void?
Respuesta
Objects
Arrays
Functions
References
Pregunta 4
Pregunta
The range of values that a 32 bit int can hold are from [+/- [blank_start]2,147,000,000[blank_end]]
Respuesta
32,768
1,200,000,000
2,147,000,000
9,000,000,000
Pregunta 5
Pregunta
List the Floating Point types from least to greatest: [blank_start]float, long double, double[blank_end]
Respuesta
double, long double, float
long double, double, float
double, float, long double
float, double, long double
Pregunta 6
Pregunta
Debug the following code: #include <iostream> #include <string> // Allows use of strings // [blank_start]missing namespaces[blank_end] int main() { std::string n; // [blank_start]Debug[blank_end] int num // [blank_start]Debug[blank_end] std::cout<<"Enter a #"<< std::endl; // [blank_start]Debug[blank_end] std::getline(cin, n); // [blank_start]Debug[blank_end] [blank_start]function[blank_end] >> num; } For lines w/o mistakes return 0
Respuesta
#include <sstream>
0
int num;
0
std::getline(std::cin, n);
std::stringstream n
Mostrar resumen completo
Ocultar resumen completo
¿Quieres crear tus propios
Tests
gratis
con GoConqr?
Más información
.
Similar
Computing Hardware - CPU and Memory
ollietablet123
SFDC App Builder 2
Parker Webb-Mitchell
Data Types
Jacob Sedore
Intake7 BIM L1
Stanley Chia
Software Processes
Nurul Aiman Abdu
Design Patterns
Erica Solum
CCNA Answers – CCNA Exam
Abdul Demir
Abstraction
Shannon Anderson-Rush
Spyware
Sam2
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Data Analytics
anelvr
Explorar la Librería