Site icon i2tutorials

C-Programming-Quiz-5

This Quiz contains totally 10 Questions each carry 1 point for you.

1.  Which of the following statements is true?
C Library functions provide I/O facilities
C inherent I/O facilities
C doesn’t have I/O facilities
Both 1 and 3

Correct!

Wrong!

2. Header files in C contain
Library functions
Compiler commands
Header information of C programs
Operators for files

Correct!

Wrong!

3.  The pair of functions used for single character I/O is
Input() and output()
Getchar() and putchar()
Scanf() and printf()
None of these

Correct!

Wrong!

4. When an error occurs printf() function returns which value?
Positive value
Positive value
zero
None of the above

Correct!

Wrong!

5. Which of the following statements is false?
putchar(65)
putchar('x')
putchar("x")
putchar('n')

Correct!

Wrong!

6. Which of the following is used for character oriented console I/O function?
getchar() and putchar()
gets and puts
scanf() and printf()
fgets() and fputs()

Correct!

Wrong!

7. The output of printf(“%u”, -1) is
minimum int value
maximum int value
-1
Error message

Correct!

Wrong!

8.  An Ampersand before the name of a variable denotes
Actual value
Variable Name
Address
Datatype

Correct!

Wrong!

9.  Symbolic constants can be defined using
symbols
const
# define
None of these

Correct!

Wrong!

10. Null character is represented by

n
o
e

Correct!

Wrong!

Share the quiz to show your results !

Subscribe to see your results

Ignore & go to results

C-Programming-Quiz-5

You got %%score%% of %%total%% right

%%description%%

%%description%%

Where to go ?

Quizzes

Loading...

Exit mobile version