Paste
Copy
Cut
Options

¡Tu solución está lista!

Nuestra ayuda de expertos desglosó tu problema en una solución confiable y fácil de entender.

Mira la respuesta
  • Pregunta: Los errores que permiten que un programa se ejecute, pero hacen que produzca resultados erróneos se denominan PREGUNTA 1 | | errores lógicos. ---|---|--- | errores de sintaxis. | | errores del compilador. | | errores del enlazador. | | una de las anteriores. 2 puntos PREGUNTA 2 Una variable ________ se declara fuera de todas las funciones. | | global ---|---

    Los errores que permiten que un programa se ejecute, pero hacen que produzca resultados erróneos se denominan PREGUNTA 1 | | errores lógicos. ---|---|--- | errores de sintaxis. | | errores del compilador. | | errores del enlazador. | | una de las anteriores. 2 puntos PREGUNTA 2 Una variable ________ se declara fuera de todas las funciones. | | global ---|--- | | estática | | constante | | local | | contador 2 puntos PREGUNTA 3 Puede definir un(n) ________ en la expresión de inicialización de un bucle for. | | operador ---|--- | | variable | | constante | | ew tipo de datos | | ew palabra clave 2 puntos PREGUNTA 4 Los lenguajes de programación de alto nivel incluyen | | C++ y Java. ---|---|--- | C++ y JavaScript. | C++ y Visual Basic. | | Todos los anteriores. | A y B, pero no C. 2 puntos PREGUNTA 5 Las sentencias en el cuerpo de un bucle do-while se ejecutan hasta que la condición de prueba es verdadera. ---|---|--- | al menos una vez. | | exactamente una vez. | para siempre hasta que el usuario pulse la tecla de pausa. | | sólo si la condición de prueba es inicialmente verdadera. 2 puntos PREGUNTA 6 En una sentencia for, la expresión ________ se ejecuta sólo una vez. | | inicialización ---|--- | | actualización | | repetición | | validación | | prueba 2 puntos PREGUNTA 7 El código int x = 0; while (s[x] != 0) { x++;} | | calcula la longitud de la cadena C s en la variable x. ---|---|- | establece la variable x al código ASCII del último carácter de la cadena C s. | | establece la variable x para que apunte al último carácter de la cadena C s. | | establece el valor de la variable x a 0. | | Ninguna de las anteriores 2 puntos PREGUNTA 8 La sentencia ________ hace que otras sentencias del programa se ejecuten sólo bajo ciertas condiciones. | | lógico ---|------ | | cin | | if | | cout | | relacional 2 puntos PREGUNTA 9 En el corazón de un ordenador está su unidad central de procesamiento. El trabajo de la CPU es producir algún resultado. ---|---|--- Buscar instrucciones. | Realizar las operaciones ordenadas por las instrucciones. | Hacer todo lo anterior. | | no hacer ninguna de las anteriores. 2 puntos PREGUNTA 10 Para acceder a un elemento del array, utilice el nombre del array y el tipo de datos del elemento. ---|---|--- | valor. | | declarador de tamaño. | | subíndice. | | ame. 2 puntos PREGUNTA 11 Podemos medir la complejidad de un algoritmo que resuelve un problema computacional determinando el número de ________ para una entrada de tamaño n. | | variables que utiliza ---|---|--- | operaciones que realiza | | pasos básicos que requiere | | veces que hace un bucle | | declaraciones de salida que tiene 2 puntos PREGUNTA 12 IDE significa | | error de desarrollo inicial. ---|---|--- | ejecución directa interna. | entorno de desarrollo integrado. | motor de datos interno. | entrada de datos interactiva. 2 puntos PREGUNTA 13 Un paquete de software que incluye un editor de texto, un compilador, un depurador, y utilidades variadas para crear, probar, y ejecutar software se llama | | un paquete de utilidad de software (SUP). ---|---|--- Un sistema operativo. | Un lenguaje de programación de bajo nivel. | Un lenguaje de programación de alto nivel. | | una de las anteriores. 2 puntos PREGUNTA 14 Un array de 10 enteros llamado myArray puede tener su contenido mostrado con cuál de las siguientes declaraciones? | | cout << myArray[0-9]; ---|---|--- | | cout << myArray; | | cout << myArray[10]; | | cout << myArray[]; | | one of the above 2 points QUESTION 15 If you leave out the size declarator in an array declaratio | | the array size defaults to 100 elements. ---|---|--- | | you must furnish an initialization list. | | the array cannot be created. | | the array will contain no elements. | | the value of each array element is set to a default value of 0. 2 points QUESTION 16 A(n) ________ is a set of instructions that tells the computer how to solve a problem. | | linker ---|---|--- | | variable | | operator | | program | | compiler 2 points QUESTION 17 The statement cout << setw(4) << num4 << " "; | | outputs the value stored in num4 four times. ---|---|--- | | outputs the value of num4 rounded to 4 decimal places. | | outputs the first 4 digits of the number stored in num4. | | outputs "setw(4)" before the value in the variable num4. | | does none of above. 2 points QUESTION 18 Which of the following statements is not valid C++ code? | | float num1 = &ptr2; ---|---|--- | | int ptr = &num1; | | int ptr = int *num1; | | All of the above are valid. | | All of the above are invalid. 2 points QUESTION 19 To use the sqrt() function, or other mathematical library functions, you must #include the ________ header file in your program. | | algebra ---|---|--- | | mathlib | | iostream | | iomanip | | cmath 2 points QUESTION 20 The ________ statement executes one block of statements if a test condition is true, and another block if the condition is false. | | switch ---|---|--- | | if | | trailing else | | if/else | | if/else if 2 points QUESTION 21 The following 4 lines of C++ code, use strings. string firstName; // Define a string object char lastName[7]; // Define a C-string firstName = "Abraham"; // Assign a value to the string object lastName = "Lincoln"; // Assign a value to the C-string Which of the following statements is /are true? | | The string object is assigned a value correctly, but the C-string is not. ---|---|--- | | The 2 string definitions are correct, but the 2 assignment statements are wrong. | | The C-string is assigned a value correctly, but the string object is not. | | The string object is defined incorrectly because no size is given for it. | | All 4 lines of code are correct. 2 points QUESTION 22 Words with a special meaning that may be used only for their intended purpose are known as | | keywords. ---|---|--- | | single purpose words.. | | programmer-defined identifiers. | | syntax words. | | one of the above. 2 points QUESTION 23 The ________ directive causes the contents of another file to be inserted into a program. | | #getfile ---|---|--- | | #include | | #insert | | #library | | one of the above 2 points QUESTION 24 What literal(s) appear in the following C++ statement? int number = 4 + 8; | | 12 ---|---|--- | | 4 | | 8 | | umber | | both B and C 2 points QUESTION 25 The ________ object causes data to be input from the keyboard. | | dataIn ---|---|--- | | standard input | | cin | | cout | | keyboard buffer 2 points QUESTION 26 An array can store a group of values, but the values must be | | constants. ---|---|--- | | declared at the time the array is created. | | all the same data type. | | umeric, not characters or strings. | | one of the above. 2 points QUESTION 27 The expression 5 % 2 evaluates to | | 1 ---|---|--- | | 2 | | 2.5 | | 5.2 | | 10 2 points QUESTION 28 The linear search is adequate for searching through ________ arrays, but not through ________ ones. | | char, string ---|---|--- | | any regular, vector | | int, double | | ascending, descending | | small, large 2 points QUESTION 29 The ________ statement causes a loop to terminate early. | | break ---|---|--- | | stop | | continue | | terminate | | quit 2 points QUESTION 30 You may use the type pointer to a structure as the type of a | | structure member. ---|---|--- | | function return type. | | function parameter. | | All of the above | | None of the above 2 points QUESTION 31 A static local variable is one | | whose value never changes. ---|---|--- | | with the same name as a global variable. | | whose value is retained between function calls. | | whose scope is limited to the function it is defined in. | | that is reinitialized each time the function it is defined in is called. 2 points QUESTION 32 To locate a value that is in an ordered array of 50 items, linear search must examine at most ________ values. | | 1 ---|---|--- | | 6 | | 25 | | 50 | | 51 2 points QUESTION 33 A sorting algorithm can be used to arrange a set of ________ in ________ order. | | strings, ascending ---|---|--- | | umeric values, descending | | strings, descending | | umeric values, ascending | | All of the above. 2 points QUESTION 34 The ________ coordinates the computer's operations by fetching the next instruction and using control signals to regulate the other major computer components. | | control unit ---|---|--- | | arithmetic and logic unit (ALU) | | traffic controller | | instruction manager | | operating system 2 points QUESTION 35 A pointer may be initialized with | | the address of an existing object of the appropriate type. ---|---|--- | | the value of a floating-point variable. | | the value of a floating-point constant. | | All of the above | | None of the above 2 points QUESTION 36 What will the following statement do if x equals 17 and answer = 20? answer = x >? 0 : 1; | Asigne 0 a la respuesta. ---|---|--- Asigna 1 a la respuesta. | Asigna 17 a la respuesta. | Asigna 0 a x. | Asigne 1 a x. 2 puntos PREGUNTA 37 Suponga que str1 y str2 son objetos de la clase string. La expresión adecuada que se debe utilizar al compararlas para la igualdad es | | str1 == str2. ---|---|--- | | str1 = str2. | | str1.compare(str2). | | strcmp(str1, str2). | | Ninguna de las anteriores 2 puntos PREGUNTA 38 La sección por defecto de una sentencia switch realiza una tarea similar a la porción ________ de una sentencia if/else if. | | body ---|------ | else if | | trailing else | | conditional test | | break 2 puntos PREGUNTA 39 En C++ las variables globales numéricas son ________ por defecto y las variables locales numéricas son ________ por defecto. | | ot inicializadas, inicializadas a cero ---|---|- | | inicializadas a cero, no inicializadas | | inicializadas a cero | | ot inicializadas, no inicializadas | | Ninguna de las anteriores 2 puntos PREGUNTA 40 Una función sobrecargada es aquella | | que llama a otras funciones. ---|---|--- | que tiene demasiados parámetros. | | que intenta hacer demasiado en una sola función. | | que tiene el mismo nombre que otra función. | | que hace cosas diferentes dependiendo de quien la llame. 2 puntos PREGUNTA 41 ¿Qué sentencias convierten la cadena "10" en el valor entero 10? | | istringstream istr("10"); int x; istr >> x; ---|-|--- | | int x = stoi("10"); | | int x = str("10"):
  • Chegg Logo
    Hay 2 pasos para resolver este problema.
    Solución
    100(1 calificación)
    Paso 1

    solución:-


    Esta pregunta consta de 40 partes y solo puedo responder las primeras cinco partes. Por f...

    Mira la respuesta completa
    answer image blur
    Paso 2
    Desbloquea
    Respuesta
    Desbloquea