Files

Files

University

8 Qs

quiz-placeholder

Similar activities

PHP File Handling

PHP File Handling

University

12 Qs

SK F5 (3.2.2/3.2.4/3.2.5 Fail teks.txt)

SK F5 (3.2.2/3.2.4/3.2.5 Fail teks.txt)

10th Grade - University

10 Qs

Quiz de Linguagem C

Quiz de Linguagem C

University

10 Qs

COMP130_IO_Selection

COMP130_IO_Selection

University

9 Qs

Strings

Strings

University

6 Qs

Práctica 7 - Ficheros en C

Práctica 7 - Ficheros en C

University

5 Qs

ôn tập

ôn tập

University

12 Qs

C File Management

C File Management

University

10 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