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

CNIT 105 Final Exam Questions with correct Answers

Puntuación
-
Vendido
-
Páginas
14
Grado
A+
Subido en
05-08-2024
Escrito en
2024/2025

Exam of 14 pages for the course CNIT at CNIT (CNIT 105 Final Exam)

Institución
CNIT
Grado
CNIT









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

Escuela, estudio y materia

Institución
CNIT
Grado
CNIT

Información del documento

Subido en
5 de agosto de 2024
Número de páginas
14
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

CNIT 105 Final Exam

Assume the following:

int num;
int * ptr;

Which statement will make the pointer point to variable num?

ptr = num;

ptr -> num;

ptr = &num - answerptr = &num

When should the end of the file be checked?

A. When opening the file.

B. When writing to the file.

C. When reading from the file.

D. When closing the file. - answerC. When reading from the file.

The text file scores.txt contains some integer numbers. It has been opened for reading
using the file pointer ptr.

Which statement will read the first number from the file into the variable score?

Assume: int score;


A. fscanf (ptr, "%d", score);

B. fscanf (ptr, "%d", &score);

C. fscanf ("%d", &score);

D. fscanf (ptr, &score); - answerB. fscanf (ptr, "%d", &score);

To work with a text file, which one of the following declarations is required?

, A. FILE ptr;

B. FILE * ptr;

C. File * ptr;

D. file * ptr; - answerB. FILE * ptr;

What does the function feof() return when the end of the file is reached?

A. it returns true (which is 1)

B. it returns the number of lines in the file.

C. It returns false (which is 0)

D. it returns -1 - answerA. it returns true (which is 1)

Assume the following declaration:

int num;
int * ptr;

Which statement will make the pointer point to variable num?

A. ptr = num;

B. ptr = #

C. ptr -> num;

D. ptr = # - answerD. ptr = #

Assume that the input file data.txt has been opened for reading using the file pointer
fptr.. The file contains several whole numbers:

34
55
90
22
100
16

Which of the following will read the third value into variable number?
Assume: int number;
$14.99
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


Documento también disponible en un lote

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.
julianah420 Phoenix University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
657
Miembro desde
2 año
Número de seguidores
324
Documentos
33952
Última venta
1 día hace
NURSING,TESTBANKS,ASSIGNMENT,AQA AND ALL REVISION MATERIALS

On this page, you find all documents, package deals, and flashcards offered by seller julianah420

4.3

149 reseñas

5
101
4
20
3
8
2
5
1
15

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