Search Header Logo

Cuestionario de C++

Authored by Luis Tejeda

Computers

University

Used 1+ times

Cuestionario de C++
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

¿Cuál de los siguientes operadores en C++ devuelve el residuo de una división entre enteros?

/

*

%

//

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

En C++, si escribo el siguiente código: double x = 5, y = 2; cout << x / y; El resultado será 2 porque se trata de división entera.

Verdadero

Falso

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Observa el siguiente programa y responde: #include using namespace std; int main() { int a = 10, b = 4; cout << "Suma: " << a + b << endl; cout << "Division: " << a / b << endl; cout << "Residuo: " << a % b << endl; return 0; } ¿Cuál será la salida correcta?

Suma: 14 Division: 2 Residuo: 2

Suma: 14 Division: 2.5 Residuo: 2

Suma: 14 Division: 10/4 Residuo: 2

4.

OPEN ENDED QUESTION

3 mins • 1 pt

Escribe la instrucción en C++ para leer un nombre completo del usuario y almacenarlo en un arreglo de char llamado nombre de tamaño 30.

Evaluate responses using AI:

OFF

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Si queremos calcular el promedio de 3 números reales, ¿cuál de estas expresiones es la correcta en C++?

(n1 + n2 + n3) / 3

(n1 + n2 + n3) / 3.0

(n1 + n2 + n3) % 3

(n1 + n2 + n3) * 3

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?