C Programming

Description: 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
Number of Questions: 25
Created by:
Tags: C++ quiz Introduction to C++ OOPS Objects Classes Inheritance Data Encapsulation Data Abstraction Loops Arrays Structures Pointers Functions Programming
Attempted 0/25 Correct 0 Score 0

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


Correct Option: C

The define preprocessor command can be used for defining

  1. macro

  2. for loop

  3. symbolic constant

  4. none of these


Correct Option: C

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


Correct Option: B

Define is used for

  1. logical constant

  2. real constant

  3. symbolic constant

  4. none of the above


Correct Option: C

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


Correct Option: C

The loop which filters the source code before compilation is

  1. macro

  2. stack

  3. preprocessor

  4. none of the above


Correct Option: C

The unions are ____ data types.

  1. basic

  2. primary

  3. derived

  4. none of the above


Correct Option: C

In C, the numeric data stored is in ____form.

  1. binary

  2. octal

  3. hexadecimal

  4. none of the above


Correct Option: A

The repetitive calling of C function is called as

  1. iteration

  2. recursion

  3. repeater

  4. none of the above


Correct Option: B

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

  1. < * . h >

  2. <* . * . h >

  3. < find.h >

  4. None of the above


Correct Option: A

If - else statement is used for

  1. looping

  2. iteration

  3. condition

  4. all of the above


Correct Option: C

The variables have ___ scopes.

  1. two

  2. one

  3. three

  4. none of the above


Correct Option: A

Header files generally contain _____ function.

  1. declaration

  2. initialization

  3. calling

  4. none of the above


Correct Option: A

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


Correct Option: C

Which function terminates the execution of the program?

  1. break

  2. exit()

  3. goto

  4. none of the above


Correct Option: B

The distributed variables are

  1. private

  2. local

  3. global

  4. none of the above


Correct Option: C

Arrays are passed as arguments to a function by some

  1. value

  2. reference

  3. both of the above

  4. none of the above


Correct Option: B

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


Correct Option: B

C has multiway decision control construct known as

  1. if statement

  2. if - else statement

  3. switch statement

  4. none of the above


Correct Option: C

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

  1. local

  2. global

  3. both of the above

  4. none of the above


Correct Option: A

Structure is a group of

  1. data type

  2. data items and data variables

  3. integers

  4. none of the above


Correct Option: B

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


Correct Option: C

Stack follows

  1. LIFO

  2. FIFO

  3. FILO

  4. None of the above


Correct Option: A

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

  1. .

  2. :

  3. +

  4. /


Correct Option: A

C does not use pointer with

  1. functions

  2. array

  3. structure

  4. union


Correct Option: D
- Hide questions