Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 4 fuera de 92 páginas
Examen

PRF 192(questions with correct answers) already passed

Document preview thumbnail
Vista previa 4 fuera de 92 páginas

PRF 192(questions with correct answers) already passed

Vista previa del contenido

PRF 192(questions with correct
answers) already passed

B - correct answer ✔✔C99 standard guarantees uniqueness of ____ characters for internal names.

a) 31

b) 63

c) 12

d) 14



A - correct answer ✔✔C99 standard guarantess uniqueness of _____ characters for external names.

a) 31

b) 6

c) 12

d) 14



D - correct answer ✔✔Which of the following is not a valid variable name declaration?

a) int __a3;

b) int __3a;

c) int __A3;

d) None of the mentioned



C - correct answer ✔✔Which of the following is not a valid variable name declaration?

a) int _a3;

b) int a_3;

c) int 3_a;

d) int _3a

,C - correct answer ✔✔Variable names beginning with underscore is not encouraged. Why?

a) It is not standardized

b) To avoid conflicts since assemblers and loaders use such names

c) To avoid conflicts since library routines use such names

d) To avoid conflicts with environment variables of an operating system



A - correct answer ✔✔All keywords in C are in

a) LowerCase letters

b) UpperCase letters

c) CamelCase letters

d) None



A - correct answer ✔✔Variable name resolving (number of significant characters for uniqueness of
variable) depends on

a) Compiler and linker implementations

b) Assemblers and loaders implementations

c) C language

d) None



D - correct answer ✔✔Which of the following is not a valid C variable name?

a) int number;

b) float rate;

c) int variable_count;

d) int $main;



C - correct answer ✔✔Which of the following is true for variable names in C?

a) They can contain alphanumeric characters as well as special characters

b) It is not an error to declare a variable to be one of the keywords(like goto, static)

c) Variable names cannot start with a digit

,d) Variable can be of any length



B - correct answer ✔✔Which is valid C expression?

a) int my_num = 100,000;

b) int my_num = 100000;

c) int my num = 1000;

d) int $my_num = 10000;



C - correct answer ✔✔What is the output of this C code?



#include <stdio.h>

int main()

{

printf("Hello World! %d \n", x);

return 0;

}

a) Hello World! x;

b) Hello World! followed by a junk value

c) Compile time error

d) Hello World!



A - correct answer ✔✔What is the output of this C code?



#include <stdio.h>

int main()

{

int y = 10000;

int y = 34;

printf("Hello World! %d\n", y);

, return 0;

}

a) Compile time error

b) Hello World! 34

c) Hello World! 1000

d) Hello World! followed by a junk value



D - correct answer ✔✔Which of the following is not a valid variable name declaration?

a) float PI = 3.14;

b) double PI = 3.14;

c) int PI = 3.14;

d) #define PI 3.14



C - correct answer ✔✔What will happen if the below program is executed?



#include <stdio.h>

int main()

{

int main = 3;

printf("%d", main);

return 0;

}

a) It will cause a compile-time error

b) It will cause a run-time error

c) It will run without any error and prints 3

d) It will experience infinite looping



D - correct answer ✔✔What is the problem in following variable declaration?

float 3Bedroom-Hall-Kitchen?;

Información del documento

Subido en
27 de octubre de 2024
Número de páginas
92
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas
$23.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.
BravelRadon
3.5
(162)
Vendido
948
Seguidores
540
Artículos
52019
Última venta
2 días 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