Computer Science Archive: Questions from June 13, 2022
-
handwritten please write down the output of each printf() and if there's any value
int x = 2,y = 5; printf("b"); y = 6; do { } while (y < 3); printf(" +%d %d\n+", y,x); printf("b"); x = 0; y = 0; printf("##"); while ( x < 10) { y = 0; if (x > 6) { } while (y 3){ } printf("+%d %d\n+"1 answer -
1. Represent the following values in polynomial form and convert to base 10. (20 points of 100)
1.- Representa los siguientes valores en su forma polinomial y realiza la conversión a base 10. (20 pts.) a) 6352 base 7 b) 31021 base 4 c) CAFE base 16 d) 8755 base 9 e) 431241 base 53 answers -
2. Fill in the values in this table. You must include images of the procedure performed for each of the lines, otherwise, the exercise will not be taken into account. You can use bit grouping to repre
2.- Completa los valores de esta tabla. Deberás incluir imágenes del procedimiento realizado para cada uno de los renglones, en caso contrario, no se te tomará en cuenta el ejercicio. Puedes utiliz1 answer -
3. Using the method of successive divisions, perform the following conversions of decimal numbers to the indicated base. (20 points of 100) "Binario" = Binary "a" means "to"; like: "12451 to Binary."
3.- Utilizando el método de divisiones sucesivas, realiza las siguientes conversiones de números decimales a la base que se indica. (20 pts.) a) 12451 a Binario b) 64515 a base 4 c) 21430 a Octal d)1 answer -
4. Performs the conversion of specified bases. (20 points of 100)
4.- Realiza la conversión de bases que se especifican. (20 pts.) a) 7451.48 base 9 a base 12 b) 3441.33 base 5 a base 9 c) A94.43 base 11 a base 61 answer -
1.- Make the following sums in the indicated base. (10 points of 100)
1.- Efectúe las siguientes sumas en la base indicada. (10 pts.) a) 13456 + 51146 b) 1AB116 + 311216 c) 141518 + 16178 d) 4379 + 78191 answer -
2.- Carry out the following subtractions in the indicated base. (10 points of 100)
2.- Efectúe las siguientes restas en la base indicada. (10 pts.) a) 51146 - 13456 b) 311216-1AB116 c) 316178 - 141518 d) 7819 - 43791 answer -
3.- Obtain the complement to the base and the diminished base of the following numbers in the indicated base. (n = 6) (10 pts. of 100)
3.- Obtenga el complemento a la base y a la base disminuida de los siguientes números en la base indicada. (n = 6) (10 pts.) a) 101101₂ b) AF1D1716 c) 1441325 d) 462443,1 answer -
5.- Carry out the following operations with signed integers assuming that they are in sign and magnitude using 8 bits (n=8) in total. For each case get the decimal equivalent of the result. (20 points
5.- Efectúe las siguientes operaciones con números enteros con signo suponiendo que están en signo y magnitud usando 8 bits (n=8) en total. Para cada caso obtenga el equivalente decimal del resulta1 answer