C programming

C

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

'C' language is called as the modified language of _________.

  1. C++
  2. Java
  3. BPCL
  4. None of these
Question 2 Multiple Choice (Single Answer)

In 'C', header files are declared in ___________ section.

  1. documentation
  2. link
  3. main program
  4. none of these
Question 3 Multiple Choice (Single Answer)

Which of the following backslash characters is called null character constant in 'C'?

  1. '\0'
  2. 'n'
  3. 't'
  4. 'b'
Question 4 Multiple Choice (Single Answer)

String constants are also called _________ in 'C' language.

  1. integer constants
  2. real constants
  3. character constants
  4. none of these
Question 5 Multiple Choice (Single Answer)

Which of the following data types requires the least amount of size in bits in 'C'?

  1. int
  2. long int
  3. unsigned short int
  4. none of these
Question 6 Multiple Choice (Single Answer)

Which library function in C is used to raise any number to the power of any other number?

  1. exp(x)
  2. pow(x,y)
  3. sqrt(x)
  4. None of these
Question 7 Multiple Choice (Single Answer)

What would be the result of the following statement in C?

printf(n %d,4%3)

  1. 1
  2. 4
  3. 3
  4. None of these
Question 8 Multiple Choice (Single Answer)

With which of the following formatted functions is the EOF() end of file function used?

  1. gets()
  2. getchar()
  3. printf()
  4. none of these
Question 9 Multiple Choice (Single Answer)

Which of the following data types is used in 'C' to deal with different data types in a single unit?

  1. Array
  2. Pointer
  3. Structure
  4. None of these
Question 10 Multiple Choice (Single Answer)

In 'C' by default, the main program returns _____________ value at the end of the program.

  1. int
  2. char
  3. float
  4. none of these
Question 11 Multiple Choice (Single Answer)

Which of the following format specifiers is used in 'C' to print an integer argument in hexadecimal base?

  1. %o
  2. %g
  3. %s
  4. %x
Question 12 Multiple Choice (Single Answer)

Which data type is/are more suitable to use database applications in 'C'?

  1. Arrays
  2. Pointers
  3. Structures
  4. All of the above
Question 13 Multiple Choice (Single Answer)

In 'C', if an array is declared with 100 size, then its subscript ends at _________.

  1. 100
  2. 99
  3. 101
  4. none of these
Question 14 Multiple Choice (Single Answer)

_____________ are the arguments that appear when the function is called.

  1. Formal arguments
  2. Default arguments
  3. Actual arguments
  4. None of these
Question 15 Multiple Choice (Single Answer)

Which of the following arrays is used for matrix application in 'C'?

  1. One-dimensional array
  2. Two-dimensional array
  3. Multi-dimensional array
  4. None of these
Question 16 Multiple Choice (Single Answer)

Which of the following statements indicates the base address of an array-named list to be passed as an argument in a function?

  1. list[1]
  2. list[2]
  3. list
  4. none of these
Question 17 Multiple Choice (Single Answer)

The 'Towers of Hanoi' is an example of ____________ function in 'C' program.

  1. inline
  2. recursion
  3. nested
  4. none of these
Question 18 Multiple Choice (Single Answer)

Which of the following is/are known as channels of communication within a program?

  1. Keywords
  2. Constants
  3. Variables
  4. All of the above
Question 19 Multiple Choice (Single Answer)

Who among the following developed 'C' language at Bell laboratories in 1972?

  1. Bjarne Stroustrup
  2. Blaise Pascal
  3. Dennis Ritchie
  4. None of these
Question 20 Multiple Choice (Single Answer)

Which of the following variables in 'C' retains its value throughout the execution of a program?

  1. Automatic variable
  2. External variable
  3. Static variable
  4. None of these
Question 21 Multiple Choice (Single Answer)

Which of the following library functions is used to break out of a program?

  1. break statement
  2. exit()
  3. continue statement
  4. none of these
Question 22 Multiple Choice (Single Answer)

Which of the following is not a keyword used in 'C' language?

  1. return
  2. sizeof
  3. end
  4. extern
Question 23 Multiple Choice (Single Answer)

Which of the following formatted input functions is used to read strings in 'C'?

  1. puts()
  2. getchar()
  3. gets()
  4. None of these
Question 24 Multiple Choice (Single Answer)

Which of the following library functions is used to compare two strings and give appropriate results?

  1. strcat()
  2. tolower()
  3. strcmp()
  4. none of these
Question 25 Multiple Choice (Single Answer)

____________ is a statement that allows a set of instructions to be performed repeatedly.

  1. Jump statement
  2. Iteration statement
  3. Selection statement
  4. None of these