What is a C header file used for?

MEcp1LABwth230

Quiz
•
Science
•
University
•
Hard
Armilyn Martinez
Used 1+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Storing data
Storing function definitions and macro declarations
Declaring main function
For file management
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What is the extension for C header files?
.cpp
.hdr
.c
.h
3.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What directive is used to include a header file in a C program?
#define
#include
#ifdef
#undef
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which header file is required for using the printf() function?
stdlib.h
stdio.h
conio.h
math.h
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What does the %d format specifier represent in printf()?
Floating-point number
String
Integer
Character
6.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What will printf("%f", 3.14); output?
3.14
3
3.140000
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Which format specifier is used to print a character in C?
%s
%d
%f
%c
Create a free account and access millions of resources
Similar Resources on Quizizz
50 questions
Ear Surgery Part-1

Quiz
•
University
53 questions
Quiz on Earth's Atmosphere

Quiz
•
11th Grade - University
49 questions
script_programming_part_2+3

Quiz
•
University
48 questions
States of Matter Quiz

Quiz
•
9th Grade - University
50 questions
Weather Test #3 Review

Quiz
•
10th Grade - University
54 questions
Waves and Electromagnetic Spectrum

Quiz
•
8th Grade - University
50 questions
Grade 2 Force

Quiz
•
2nd Grade - University
49 questions
Midterm Revision G3

Quiz
•
3rd Grade - University
Popular Resources on Quizizz
20 questions
math review

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions

Interactive video
•
6th - 8th Grade
19 questions
Math Review

Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review

Quiz
•
7th Grade