100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

CNIT 105 Final Exam Questions with correct Answers

Beoordeling
-
Verkocht
-
Pagina's
14
Cijfer
A+
Geüpload op
05-08-2024
Geschreven in
2024/2025

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

Instelling
CNIT
Vak
CNIT









Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
CNIT
Vak
CNIT

Documentinformatie

Geüpload op
5 augustus 2024
Aantal pagina's
14
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

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;
€13,12
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
julianah420 Phoenix University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
657
Lid sinds
2 jaar
Aantal volgers
324
Documenten
33952
Laatst verkocht
1 dag geleden
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 beoordelingen

5
101
4
20
3
8
2
5
1
15

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen