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

25 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which header file(s) contains information about the size of data type?

  1. limit.h
  2. float.h
  3. Both of the above
  4. None of the above
Question 2 Multiple Choice (Single Answer)

The define preprocessor command can be used for defining

  1. macro
  2. for loop
  3. symbolic constant
  4. none of these
Question 3 Multiple Choice (Single Answer)

The function calloc is used

  1. to free memory space
  2. to allocate memory space
  3. both of the above
  4. none of the above
Question 4 Multiple Choice (Single Answer)

Define is used for

  1. logical constant
  2. real constant
  3. symbolic constant
  4. none of the above
Question 5 Multiple Choice (Single Answer)

A pointer is a/an

  1. address of a varible
  2. indication of a variable
  3. variable which stores the address of another varible
  4. none of the above
Question 6 Multiple Choice (Single Answer)

The loop which filters the source code before compilation is

  1. macro
  2. stack
  3. preprocessor
  4. none of the above
Question 7 Multiple Choice (Single Answer)

The unions are ____ data types.

  1. basic
  2. primary
  3. derived
  4. none of the above
Question 8 Multiple Choice (Single Answer)

In C, the numeric data stored is in ____form.

  1. binary
  2. octal
  3. hexadecimal
  4. none of the above
Question 9 Multiple Choice (Single Answer)

The repetitive calling of C function is called as

  1. iteration
  2. recursion
  3. repeater
  4. none of the above
Question 10 Multiple Choice (Single Answer)

Which of the following files is used to search the whole directory?

  1. < * . h >
  2. <* . * . h >
  3. < find.h >
  4. None of the above
Question 11 Multiple Choice (Single Answer)

If - else statement is used for

  1. looping
  2. iteration
  3. condition
  4. all of the above
Question 12 Multiple Choice (Single Answer)

The variables have ___ scopes.

  1. two
  2. one
  3. three
  4. none of the above
Question 13 Multiple Choice (Single Answer)

Header files generally contain _____ function.

  1. declaration
  2. initialization
  3. calling
  4. none of the above
Question 14 Multiple Choice (Single Answer)

The statement used to transfer the control to some other part of the program is known as

  1. skip
  2. next
  3. goto
  4. none of the above
Question 15 Multiple Choice (Single Answer)

Which function terminates the execution of the program?

  1. break
  2. exit()
  3. goto
  4. none of the above
Question 16 Multiple Choice (Single Answer)

The distributed variables are

  1. private
  2. local
  3. global
  4. none of the above
Question 17 Multiple Choice (Single Answer)

Arrays are passed as arguments to a function by some

  1. value
  2. reference
  3. both of the above
  4. none of the above
Question 18 Multiple Choice (Single Answer)

The looping do is in

  1. ending of the loop
  2. beginning of the loop
  3. middle of the loop
  4. none of the above
Question 19 Multiple Choice (Single Answer)

C has multiway decision control construct known as

  1. if statement
  2. if - else statement
  3. switch statement
  4. none of the above
Question 20 Multiple Choice (Single Answer)

The ____ variable is present in the short and selected programs.

  1. local
  2. global
  3. both of the above
  4. none of the above
Question 21 Multiple Choice (Single Answer)

Structure is a group of

  1. data type
  2. data items and data variables
  3. integers
  4. none of the above
Question 22 Multiple Choice (Single Answer)

A pointer is a/an

  1. address of a varible
  2. indication of a variable
  3. variable which stores the address of another variable
  4. none of the above
Question 23 Multiple Choice (Single Answer)

Stack follows

  1. LIFO
  2. FIFO
  3. FILO
  4. None of the above
Question 24 Multiple Choice (Single Answer)

The link between object and variable in a structure is shown by the operator

  1. .
  2. :
  3. +
  4. /
Question 25 Multiple Choice (Single Answer)

C does not use pointer with

  1. functions
  2. array
  3. structure
  4. union