100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

PRF192 Test Questions with Correct Answers 100% Solved

Puntuación
-
Vendido
-
Páginas
65
Grado
A+
Subido en
19-03-2025
Escrito en
2024/2025

PRF192 Test Questions with Correct Answers 100% Solved A - Answers Once the function ends, the control is returned back to the ... function and execution continues from the statement immediately after the function call a. executing d red ng A - Answers what number is equivalent to -4e3? a.-4000 b.-400 c..004 d..0004 e.-40 C - Answers what is the output when the sample code below executed? #include<stdio.h> int fn(int v){ if(v==1||v==0) return 1; if(v%2==0) return (fn(v/2)+2); else return(fn(v-1)+3); } int main() { printf("%dn",fn(5)); return (0); } a.6 b.9 c.8 d.7 e.5 B D - Answers which 2 options are correct about the function scanf? a.EOF indicates that scanf filled all addresses successfully b. scanf returns the number of addresses successfully filled of EOF n avoid type d.EOF indicates that scanf did not fill any address AND encountered an end of data character. D - Answers what is the output when the sample code below is executed? int s=35; printf("%d%d%d",s==35,s+20,s>40) a.1 35 1 b.1 55 1 c.0 55 0 d.1 55 0 C - Answers according to the standard C specification, what are the respective minimum sizes (in bytes) of the following two data type: int and long? a.2,8 b.4,8 c.2,4 d.2,2 B - Answers what does the following declaration mean (if there are more than one correct answers, choose the best one) int *ptr[10]; of 10 integer pointers ed to the array of 10 elements of 10 pointers D - Answers what would happen if the user types in the number 3 and presses Enter when running this program? main(){ int x=5; char c;

Mostrar más Leer menos
Institución
PRF192
Grado
PRF192











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
PRF192
Grado
PRF192

Información del documento

Subido en
19 de marzo de 2025
Número de páginas
65
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

PRF192 Test Questions with Correct Answers 100% Solved

A - Answers Once the function ends, the control is returned back to the ... function and execution
continues from the statement immediately after the function call

a. executing

b.called

c.declared

d.calling

A - Answers what number is equivalent to -4e3?

a.-4000

b.-400

c..004

d..0004

e.-40

C - Answers what is the output when the sample code below executed?

#include<stdio.h>

int fn(int v){

if(v==1||v==0)

return 1;

if(v%2==0)

return (fn(v/2)+2);

else

return(fn(v-1)+3);

}

int main()

{

printf("%d\n",fn(5));

,return (0);

}

a.6

b.9

c.8

d.7

e.5

B D - Answers which 2 options are correct about the function scanf?

a.EOF indicates that scanf filled all addresses successfully

b. scanf returns the number of addresses successfully filled of EOF

c.return avoid type

d.EOF indicates that scanf did not fill any address AND encountered an end of data character.

D - Answers what is the output when the sample code below is executed?

int s=35;

printf("%d%d%d",s==35,s+20,s>40)

a.1 35 1

b.1 55 1

c.0 55 0

d.1 55 0

C - Answers according to the standard C specification, what are the respective minimum sizes (in bytes)
of the following two data type: int and long?

a.2,8

b.4,8

c.2,4

d.2,2

,B - Answers what does the following declaration mean (if there are more than one correct answers,
choose the best one)

int *ptr[10];

a.array of 10 integer pointers

b.pointed to the array of 10 elements

c.array of 10 pointers

D - Answers what would happen if the user types in the number 3 and presses Enter when running this
program?

main(){

int x=5;

char c;

printf("Enter x=");

scanf("%d",&x);

printf("Calculate square(Y/N):");

c=getchar();

if(c==Y||c==y)

printf("sqr=%d",x*x);

}

a.sqr=9

b.Its depend on whether the user enters 'Y' or not, being asked "calculate square?"

c.sqr=25

d.the program exits without printing the square

D - Answers what is the output when the sample code below is executed?

int i,j,k,x=0;

for(i=1;i<5;i++)

for(j=0;j<i;++j){

, switch(i+j){

case 0:x=x+1;

break;

case 1:

case 2:

case 3: x=x+2;

break;

}}

printf("%d",x);

a.12

b.13

c.10

d.8

e.6

A - Answers the while loop can be written as a for loop

a.TRUE

b.FALSE

E - Answers what is the output when the sample code below is executed?

char fun[]="How are you?";

char **p;

p=fun;

while(***p!='\0'){

if(strlen(p)!=7) printf("%c",**p);

p++;}

a. How ar you
$10.49
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

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.
TutorJosh Chamberlain College Of Nursing
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
361
Miembro desde
1 año
Número de seguidores
16
Documentos
29477
Última venta
3 días hace
Tutor Joshua

Here You will find all Documents and Package Deals Offered By Tutor Joshua.

3.6

58 reseñas

5
20
4
15
3
12
2
0
1
11

Recientemente visto por ti

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