Files

Files

University

8 Qs

quiz-placeholder

Similar activities

CSC1003-QUIZ-1

CSC1003-QUIZ-1

University

10 Qs

TES AWAL MODUL 2

TES AWAL MODUL 2

University

10 Qs

ITP  Quiz

ITP Quiz

University

10 Qs

File Handling in C

File Handling in C

University

10 Qs

Quiz de Linguagem C

Quiz de Linguagem C

University

10 Qs

Rekurzió, sorozatok

Rekurzió, sorozatok

University

8 Qs

C_Basic.c

C_Basic.c

University

13 Qs

Unit 12 : error no

Unit 12 : error no

University

6 Qs

Files

Files

Assessment

Quiz

Computers

University

Easy

Created by

Carol Redfield

Used 4+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to open a file?

fopen

fclose

fgets

fprintf

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For every fopen command in a program, there should be an _____ command?

fopen

fclose

fgets

fprintf

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command writes text to a file?

fopen

fclose

fgets

fprintf

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command reads lines of text from a file?

fopen

fclose

fgets

fprintf

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the code that declares a pointer to a file?

afile * file;

FILE *afile;

file *afile;

*afile FILE;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: In order to get data from a file, we need to know where the file is located.

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To find a location of file with its path, in every place there is a \, we need to change it to ___.

_

.

\\

/

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the fopen command, which one is not an input parameter for the mode.

r

w

d

a