Unit 12 : error no

Unit 12 : error no

University

6 Qs

quiz-placeholder

Similar activities

Topic 4 System Software

Topic 4 System Software

University

10 Qs

Python Week 1 & 2

Python Week 1 & 2

University

10 Qs

CS100||MsWord

CS100||MsWord

University

10 Qs

DSA quiz 3 set 1

DSA quiz 3 set 1

University

10 Qs

CBA Excel 1

CBA Excel 1

University

10 Qs

Tin học 7 Bài 1. Chương trình bảng tính là gì?

Tin học 7 Bài 1. Chương trình bảng tính là gì?

11th Grade - University

10 Qs

Linked List 2

Linked List 2

University

10 Qs

Website Usability and UX

Website Usability and UX

University

10 Qs

Unit 12 : error no

Unit 12 : error no

Assessment

Quiz

Computers

University

Practice Problem

Easy

Created by

Abhishek Pandey

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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