logo

Crowdly

Browser

Add to Chrome

Pensamiento Computacional

Looking for Pensamiento Computacional test answers and solutions? Browse our comprehensive collection of verified answers for Pensamiento Computacional at campusvirtual.usergioarboleda.edu.co.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

¿Cuál es el propósito principal de las funciones en programación?

0%
0%
0%
0%
0%
View this question

Del siguiente fragmento de código:

int x = 10;

int y = 0;

int z = 1;

for (int i = 1; i <= x; i++){

if (i % 2 == 0){

y += i;

}else {

z += i;

};

i++;

};

cout << "x = " << x << ", ";

cout << "y = " << y << ", ";

cout << "z = " << z << endl;

¿Qué valores se imprimen por consola para las variables x, y y z?

0%
0%
0%
0%
View this question

¿Cuáles son las variables que surgen en programación cuando se utilizan funciones?

0%
0%
0%
0%
0%
100%
100%
0%
View this question

¿Según el profesor cuál es la diferencia entre Pensamiento Algorítmico y Pensamiento Computacional?

View this question

Suponiendo que se hace el llamado de la siguiente función f

int f(int n, int m) {

int aux = 0;

for(int i = 1; i <= n; i++){

for(int j = m; j > i; j--){

aux = j * i % j + i;

};

};

return aux;

};

con los parámetros n = 6 y m = 4, es decir se hace el llamado de f(6,4), entonces ¿Qué valor retornará la función al evaluarla en dichos valores?

0%
0%
0%
0%
View this question

int z=0;

while (z < 9){

while (z > 3){

cout << 1;

z++;

};

};

Considerando el fragmento de código anterior. ¿Cuántos unos (1) se imprimen en pantalla al completar la ejecución?

0%
0%
0%
0%
View this question

Del siguiente fragmento de código:

int x = 5;

int y = 0;

int z = 1;

while(x > y){

if (y % 2 == 0){

z += (y * 2);

}else if (z % y == 0){

z = x;

}

y++;

}

cout << "x = " << x << ", ";

cout << "y = " << y << ", ";

cout << "z = " << z << endl;

¿Qué valores se imprimen por consola para las variables x, y y z?

0%
0%
0%
0%
View this question

¿Cuáles son los pasos que hay que seguir para usar funciones en programación?

0%
0%
0%
0%
View this question

¿Cuál es la operación matemática que representa los ciclos?

100%
0%
0%
0%
View this question

Analizar el siguiente fragmento de código y determinar el resultado mostrado en consola si n = 5.

int main(){

cout << "Ingrese un valor numerico" << endl;

int n;

int x = 0;

cin >> n;

int i = 0;

while(i <= n){

if ((i % 2) == 0){

x += n / 2;

};

i++;

};

cout << "El resultado es:\t" << x << endl;

return 0;

};

0%
0%
0%
100%
View this question

Want instant access to all verified answers on campusvirtual.usergioarboleda.edu.co?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome