Questions
'C' language is called as the modified language of _________.
- C++
- Java
- BPCL
- None of these
In 'C', header files are declared in ___________ section.
- documentation
- link
- main program
- none of these
Which of the following backslash characters is called null character constant in 'C'?
- '\0'
- 'n'
- 't'
- 'b'
String constants are also called _________ in 'C' language.
- integer constants
- real constants
- character constants
- none of these
Which of the following data types requires the least amount of size in bits in 'C'?
- int
- long int
- unsigned short int
- none of these
Which library function in C is used to raise any number to the power of any other number?
- exp(x)
- pow(x,y)
- sqrt(x)
- None of these
What would be the result of the following statement in C?
printf(n %d,4%3)
- 1
- 4
- 3
- None of these
With which of the following formatted functions is the EOF() end of file function used?
- gets()
- getchar()
- printf()
- none of these
Which of the following data types is used in 'C' to deal with different data types in a single unit?
- Array
- Pointer
- Structure
- None of these
In 'C' by default, the main program returns _____________ value at the end of the program.
- int
- char
- float
- none of these
Which of the following format specifiers is used in 'C' to print an integer argument in hexadecimal base?
- %o
- %g
- %s
- %x
Which data type is/are more suitable to use database applications in 'C'?
- Arrays
- Pointers
- Structures
- All of the above
In 'C', if an array is declared with 100 size, then its subscript ends at _________.
- 100
- 99
- 101
- none of these
_____________ are the arguments that appear when the function is called.
- Formal arguments
- Default arguments
- Actual arguments
- None of these
Which of the following arrays is used for matrix application in 'C'?
- One-dimensional array
- Two-dimensional array
- Multi-dimensional array
- None of these
Which of the following statements indicates the base address of an array-named list to be passed as an argument in a function?
- list[1]
- list[2]
- list
- none of these
The 'Towers of Hanoi' is an example of ____________ function in 'C' program.
- inline
- recursion
- nested
- none of these
Which of the following is/are known as channels of communication within a program?
- Keywords
- Constants
- Variables
- All of the above
Who among the following developed 'C' language at Bell laboratories in 1972?
- Bjarne Stroustrup
- Blaise Pascal
- Dennis Ritchie
- None of these
Which of the following variables in 'C' retains its value throughout the execution of a program?
- Automatic variable
- External variable
- Static variable
- None of these
Which of the following library functions is used to break out of a program?
- break statement
- exit()
- continue statement
- none of these
Which of the following is not a keyword used in 'C' language?
- return
- sizeof
- end
- extern
Which of the following formatted input functions is used to read strings in 'C'?
- puts()
- getchar()
- gets()
- None of these
Which of the following library functions is used to compare two strings and give appropriate results?
- strcat()
- tolower()
- strcmp()
- none of these
____________ is a statement that allows a set of instructions to be performed repeatedly.
- Jump statement
- Iteration statement
- Selection statement
- None of these