Unit 12 : error no

Unit 12 : error no

University

6 Qs

quiz-placeholder

Similar activities

File Type Extensions

File Type Extensions

8th Grade - University

10 Qs

Direct Execution

Direct Execution

University

9 Qs

File system

File system

University

10 Qs

Programming Principles Lec01

Programming Principles Lec01

University

10 Qs

TES AWAL MODUL 2

TES AWAL MODUL 2

University

10 Qs

hadoop-map reduce

hadoop-map reduce

University

11 Qs

Chapter 2

Chapter 2

University

11 Qs

Functions Pt. 2 + Separate Compilation

Functions Pt. 2 + Separate Compilation

9th Grade - University

10 Qs

Unit 12 : error no

Unit 12 : error no

Assessment

Quiz

Computers

University

Easy

Created by

Abhishek Pandey

Used 1+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which library function is used to display an error message corresponding to the error stored in errno?

perror()

printf()

strerror()

fprintf()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the function fopen() return if it fails to open a file?

EOF

0

-1

NULL

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file contains the definition of the errno variable?

stdio.h

assert.h

errno.h

time.h

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does EOF stand for in file handling?

End of File

Error on File

all

End of Frame

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many arguments does the main function take when using command-line arguments?

1

-1

2

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does argc represent in the main(int argc, char *argv[]) function?

Argument count

Array of arguments

Pointer to arguments

Argument vector