• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 7 páginas
Examen

C for Everyone: Programming Fundamentals Final UPDATED Exam Questions and CORRECT Answers

Document preview thumbnail
Vista previa 2 fuera de 7 páginas

C for Everyone: Programming Fundamentals Final UPDATED Exam Questions and CORRECT Answers Who invented the C language? - Correct Answer- Dennis Ritchie invented C at Bell Labs When you compile a correct C program you get a machine executable file such as produced by the gnu compiler gcc. - Correct Answer- True Which is true:

Vista previa del contenido

C for Everyone: Programming
Fundamentals Final UPDATED Exam
Questions and CORRECT Answers
Who invented the C language? - Correct Answer- Dennis Ritchie invented C at Bell Labs


When you compile a correct C program you get a machine executable file such as a.out
produced by the gnu compiler gcc. - Correct Answer- True


Which is true:


1. #define is a preprocessor command often used to introduce named constants
2. double and goto are keywords declaring types.
3. return (0); is normally the last statement in main()
4. The file stdio.h is where the compiler finds scanf(). - Correct Answer- 1, 3, 4


The statement printf("HELLO\t\tWORLD\n"); - Correct Answer- Prints HELLO WORLD
followed by a new line


The expression PI * radius * radius would be used to compute - Correct Answer- A circles
area


In a format string for printf which would you use to print an int? - Correct Answer- %d


The code


i = -10;
while ( i < 0)
{ ... do something ; i--; }


Displays a common error - Correct Answer- its an infinite loop

, The following program is suppose to write Hello World onto the screen but it has syntax
errors - find and correct.


#include <stdio.h>
int main(void)
{
printf(" Hello World\n");
return 0,
} - Correct Answer- It should be return 0;


Assume the given declarations and fill in the value of the expression . int a = 3, b = 4, c = 0, d
= '1';


Expression: a % b - Correct Answer- 3


Assume the given declarations and fill in the value of the expression . int a = 3, b = 4, c = 0, d
= '1';


Expression: b % a - Correct Answer- 1


Assume the given declarations and fill in the value of the expression . int a = 3, b = 4, c = 0, d
= '1';


Expression: a < b - Correct Answer- 1


Assume the given declarations and fill in the value of the expression . int a = 3, b = 4, c = 0, d
= '1';


Expression: c < b && a > 3 - Correct Answer- 0

Información del documento

Subido en
26 de agosto de 2024
Número de páginas
7
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$8.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
STANFORDGRADESS
4.0
(241)
Vendido
1682
Seguidores
109
Artículos
121806
Última venta
1 día hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes