C Programming
Free Online Tests for C, C++, PHP, HTML Covers all the Concepts of Data Abstraction, Loops, Arrays, Structure, Pointer, Functions, OOPs, Objects, Classes, Inheritance, Data Encapsulation
Questions
Which header file(s) contains information about the size of data type?
- limit.h
- float.h
- Both of the above
- None of the above
The define preprocessor command can be used for defining
- macro
- for loop
- symbolic constant
- none of these
The function calloc is used
- to free memory space
- to allocate memory space
- both of the above
- none of the above
Define is used for
- logical constant
- real constant
- symbolic constant
- none of the above
A pointer is a/an
- address of a varible
- indication of a variable
- variable which stores the address of another varible
- none of the above
The loop which filters the source code before compilation is
- macro
- stack
- preprocessor
- none of the above
The unions are ____ data types.
- basic
- primary
- derived
- none of the above
In C, the numeric data stored is in ____form.
- binary
- octal
- hexadecimal
- none of the above
The repetitive calling of C function is called as
- iteration
- recursion
- repeater
- none of the above
Which of the following files is used to search the whole directory?
- < * . h >
- <* . * . h >
- < find.h >
- None of the above
If - else statement is used for
- looping
- iteration
- condition
- all of the above
The variables have ___ scopes.
- two
- one
- three
- none of the above
Header files generally contain _____ function.
- declaration
- initialization
- calling
- none of the above
The statement used to transfer the control to some other part of the program is known as
- skip
- next
- goto
- none of the above
Which function terminates the execution of the program?
- break
- exit()
- goto
- none of the above
The distributed variables are
- private
- local
- global
- none of the above
Arrays are passed as arguments to a function by some
- value
- reference
- both of the above
- none of the above
The looping do is in
- ending of the loop
- beginning of the loop
- middle of the loop
- none of the above
C has multiway decision control construct known as
- if statement
- if - else statement
- switch statement
- none of the above
The ____ variable is present in the short and selected programs.
- local
- global
- both of the above
- none of the above
Structure is a group of
- data type
- data items and data variables
- integers
- none of the above
A pointer is a/an
- address of a varible
- indication of a variable
- variable which stores the address of another variable
- none of the above
Stack follows
- LIFO
- FIFO
- FILO
- None of the above
The link between object and variable in a structure is shown by the operator
- .
- :
- +
- /
C does not use pointer with
- functions
- array
- structure
- union