What are header files and what are its uses in C programming?

1 Answer

Answer :

Header files are also known as library files. They contain two essential things: the definitions and prototypes of functions being used in a program. Simply put, commands that you use in C programming are actually functions that are defined from within each header files. Each  header file contains a set of functions. For example: stdio.h is a header file that contains definition and prototypes of commands like printf and scanf.

Related questions

Description : is it possible to create your own header files?

Last Answer : Yes, it is possible to create a customized header file. Just include in it the function prototypes that you want to use in your program, and use the #include directive followed by the name of your header file.

Description : Match the following. a) Java 1) is a tool for debugging java program b) Javah 2) is a tool for creating C-like header files c) Javap 3) runs java bytecode d) jdb 4) prints java code representation A) a-3, b-2,c-1 B) a-3, b-1, c-4, d-2 C) a-1, b-2, c-3, d-4 D) a-2, b-1, c-3, d-4

Last Answer : B) a-3, b-1, c-4, d-2

Description : Which of the following is true about Java. A) Java does not support overloading. B) Java has replaced the destructor function of C++ C) There are no header files in Java. D) All of the above.

Last Answer : D) All of the above

Description : Which of the following cannot be passed to a function? A) Reference variable B) Arrays C) Class objects D) Header files

Last Answer : D) Header files

Description : Give the significance of and header files.

Last Answer : “math.h” header file supports all the mathematical related functions in C language.  stdio.h header file is used for input/output functions like scanf and printf.

Description : OOP uses a different set of programming languages than old procedural programming languages such as: a) C b) Pascal c) Both of Above d) None of These

Last Answer : c) Both of Above

Description : Which menu should you access if you need to edit header or footer of a document: a) Insert b) Edit c) View d) None of The Above

Last Answer : a) Insert

Description : _____refers to title for part of document: a) Header b) Indent c) Heading d) Leader Characters e) None of The Above

Last Answer : c) Heading

Description : Why are headers and footers used in the document: a) To mark the starting and ending of the page b) To allow page headers & footers to appear on document when it is printed c) To enhance the overall appearance of the document d) Each page of word must have header & footer. e) None of The Above

Last Answer : b) To allow page headers & footers to appear on document when it is printed

Description : In power point, the header and footre button can be found on the insert tab in what group? a) Illustrations group b) Object group c) Text group d) Tables group e) None of thes

Last Answer : c) Text group

Description : In packet-filtering router, the following information can be external from the packet header. i) Source IP address ii) Destination IP address iii) TCP/UDP source port iv) ICMP message type v) TCP/UDP destination port A) i, ii, ... iv and v only C) ii, iii, iv and v only D) All i, ii, iii, iv and v

Last Answer : D) All i, ii, iii, iv and v

Description : In.................. Mode, the authentication header is inserted immediately after the IP header. A) Tunnel B) Transport C) Authentication D) Both A and B

Last Answer : A) Tunnel

Description : The components of IP security includes …………………. A) Authentication Header (AH) B) Encapsulating Security Payload (ESP) C) Internet key Exchange (IKE) D) All of the above

Last Answer : D) All of the above

Description : What is PLC programming and who uses it?

Last Answer : PLC stands for "programmable logic controller". PLC's are usually used to control machinery in automated processes such as manufacturing. PLC programmers usually complete a trade school certificate before starting their careers.

Description : Data Integrity control uses ................ (A) Upper and lower limits on numeric data. (B) Passwords to prohibit unauthorised access to files. (C) Data dictionary to keep the data (D) Data dictionary to find last access of data

Last Answer : (B) Passwords to prohibit unauthorised access to files.

Description : Rules of content, interpretation and meaning are called semantic rules. A high - level programming language is determined by its _____rules: a) Semantic Rules b) Syntactic Rules c) Both of Above d) None of These

Last Answer : c) Both of Above

Description : ______ are words that a programming language has set aside for its own use: a) Control Words b) Control Structure c) Reserved Words d) Reserved Keys e) None of The Above

Last Answer : c) Reserved Words

Description : The brick laid with its length parallel to the face of a wall, is a known as (A) Header (B) Stretcher (C) Closer (D) None of the

Last Answer : Answer: Option B

Description : The brick laid with its breadth parallel to the face of a wall, is known as (A) Header (B) Stretcher (C) Closer (D) None of these

Last Answer : Answer: Option A

Description : What is Multi Programming Operating System ?

Last Answer : An operating system that can run multiple programs or process data simultaneously is called a multi-programming operating system.

Description : A _____ contains specific rules and words that express the logical steps of an algorithm. 1) Syntax 2) Programming structure 3) Programming language 4) Logic chart 5) None of these

Last Answer : Answer :3

Description : Which of the following is a programming language? A) Lotus B) Pascal C) MS-Excel D) Netscape

Last Answer : Answer : B

Description : Which of the following programming language started from second generation? A) LISP B) C C) QBASIC D) FORTRAN

Last Answer : Answer : D

Description : FORTRAN is a programming language. What does FORTRAN stand for? A) File Translation B) Format Translation C) Formula Translation D) Floppy Translation

Last Answer : Answer : C

Description : Which of the following programming language were used in first generation computers? A) Machine language B) Assembly language C) Both of above D) None of above

Last Answer : Answer : A

Description : Which of the following programming language started from second generation? A) Cobol B) BASIC C) C D) LISP

Last Answer : Answer : A

Description : What produces useful information out of data? A) Computer B) Processing C) Programming D) none of above

Last Answer : Answer : B

Description : Which programming languages are classified as low level languages? A) Basic, COBOL, FORTRAN B) Prolog 2, Expert Systems C) Knowledge based Systems D) Assembly Languages

Last Answer : Answer : D

Description : FORTRAN programming language is more suitable for

Last Answer : Answer : C

Description : Which of the following statement is valid? A) Lady Augusta is the first programmer B) Ada is the daughter of Lord Byron, a famous English poet C) ADA is a programming language developed by US Defense D) All of above

Last Answer : Answer : D

Description : When an algorithm is written in the form of a programming language, it becomes a _________ a) Flowchart b) Program c) Pseudo code d) Syntax

Last Answer : Answer: b Explanation: An algorithm becomes a program when it is written in the form of a programming language. Thus, any program is an algorithm

Description : A ________ is a special program that processes statements written in a particular programming language and turns them into machine language. A. Compiler B. Device Driver C. Assembler D. None of the above

Last Answer : A. Compiler

Description : A _________ helps in converting programming languages to machine language. A. Operating system B. System Utilities C. Language translator D. Application software

Last Answer : C. Language translator

Description : Programming that actually controls the path of signals or data within computer is called________ A. Assembly language Programming B. Machine language Programming C. Micro Programming D. None of the Above

Last Answer : C. Micro Programming

Description : Electronic Discrete Variable Automatic Computer(EDVAC) was designed on __________ concept. (A) Objective Programming (B) Stored program (C) Both (A) and (B) (D) None of the Above

Last Answer : (B) Stored program

Description : Instructions and data can be stored in the memory of Computer for automatically directing the flow of operations. It is called _____ concept. (A) Objective Programming (B) Stored program (C) Both (A) and (B) (D) None of the Above

Last Answer : (B) Stored program

Description : What is the significance of an algorithm to C programming?

Last Answer : Before a program can be written, an algorithm has to be created first. An algorithm provides a step by step procedure on how a solution can be derived. It also acts as a blueprint on how a program will start and end, including what process and computations are involved.

Description : The following is true for a Robot & NC Machine A : Similar power drive technology is used in both B : Different feedback systems are used in both C : Programming is same for both D : Programming is not same for both

Last Answer : A : Similar power drive technology is used in both

Description : PROLOG is an AI programming language which solves problems with a form of symbolic logic known as predicate calculus. It was developed in 1972 at the University of Marseilles by a team of specialists. Can you ... this team? A : Alain colmerauer B : Niklaus Wirth C : Seymour papert D : John McCarthy

Last Answer : A : Alain colmerauer

Description : The following is true for a Robot & NC Machine A : Similar power drive technology is used in both B : Different feedback systems are used in both C : Programming is same for both D : Programming is not same for both

Last Answer : A : Similar power drive technology is used in both

Description : The window version of Excel supports programming through Microsoft's Visual Basic for Applications (VBA), which is a dialect of _____: a) Visual Support b) Visual Basic c) Visual Format d) None of These

Last Answer : b) Visual Basic

Description : Java Programming Language was originally developed by Sun Micro-systems which was initiated by _______: a) James Gosling b) Charles Babbage c) Steford Pascal d) None of These

Last Answer : a) James Gosling

Description : _______ is a programming language that is interpreted & executed directly by the computer: a) Machine Language b) Assembly Language c) HTML d) None of These

Last Answer : a) Machine Language

Description : The simultaneous processing of two or more programs by multiple processor is a: a) Multi - Tasking b) Multi - Programming c) Multi - Processing d) None of These

Last Answer : c) Multi - Processing

Description : _________is popular object oriented programming language used for general purpose: a) C b) C++ c) FORTRAN d) None of These

Last Answer : b) C++

Description : _______is a structured programming language used for all purposes such as scientific application, commercial application, developing games etc. a) C b) C++ c) FORTRAN d) None of These

Last Answer : a) C

Description : ______ is an application that converts a programming language into a machine language program: a) Converter b) Compiler c) Encryption d) None of These

Last Answer : b) Compiler

Description : Which of the following is not a programming language: a) Java b) Basic c) Knuth d) None of These

Last Answer : c) Knuth

Description : PCI stands for: a) Peripheral Component Interconnect b) Personal Computer Interface c) Programming In Computer Interchange d) None of These

Last Answer : a) Peripheral Component Interconnect

Description : Java Programming language was invented by: a) Christopher Kelein b) Charles Babbage c) James Gosling d) Grace Hopper e) None of These

Last Answer : c) James Gosling