Unit 12 : error no

Unit 12 : error no

University

6 Qs

quiz-placeholder

Similar activities

Unit 14: Abstract

Unit 14: Abstract

University

8 Qs

Java Basic Programming Quiz

Java Basic Programming Quiz

University

10 Qs

Basic C++ Program Structures

Basic C++ Program Structures

University

10 Qs

MS Excel - Day 03

MS Excel - Day 03

University

10 Qs

Techno India University Python Quiz Contest

Techno India University Python Quiz Contest

University

10 Qs

C MCQ's for Interview

C MCQ's for Interview

University

10 Qs

C Programming - Basics 001

C Programming - Basics 001

University

10 Qs

Unit13 File Management

Unit13 File Management

University

8 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