C

                              C INTERVIEW QUESTIONS AND ANSWERS

 

1. What is meant by C?

 

C is the result of the development process that started with an older language called B, which was invented by Ken Thompson.

 

2. What are the features of C?

 

The features of are:

 

1. Modularity

 

2. Portability

 

3. Code-reusability

 

4. Ability to extend itself

 

3. What is the characteristic of C?

 

1. Small size

 

2. Extensive use of function calls

 

3. Loose typing

 

4. Structured language

 

4. What are the reasons C language used for widely?

 

1. It has the high-level constructs

 

2. It can handle low-level activities

 

3. It produces efficient programmes

 

4. It can be compiled on a variety of computers.

 

5. What are the uses of C?

 

1. Operating systems

 

2. Interpreters

 

3. Compilers

 

4. File utilities

 

5. Editors

 

6. Performance and enhancers

 

6. What is meant by Preprocessors?

The Preprocessors accepts source code as input and is responsible for

 

1. Removing comments

 

2. Interpreting special Preprocessor directives denoted by #

 

7. What is meant by C Compiler?

 

The C Compiler translates source to assembly code.The source code is received from the

Preprocessor.

 

8. What are the types of Constants used in C?

 

C has four types of Constants

 

1. Integer Constants

 

2. Floating point Constants

 

3. Character Constants

 

4. String Constants

 

9. What is meant by Integer Constants?

 

An integer Constants is an integer-valued number. Thus it Consists of a sequence of numbers.Integer constants can be written in three different number system.

 

10. What is meant by Character Constants?

 

A character Constant is a single character, enclosed in single quotation marks.

 

11. What is meant by Expressions?

 

An expression represents single data item, such as a number or a character.The expression may consist of a single entity, such as a constant, a variable or reference too a function.

 

12. What is meant by Statements?

 

A statement causes the computer to carry out of some action.

 

13. What are the two types of statements in C?

 

1. Simple statements

 

2. Compound statements

 

 

14. What is meant by Simple statements?

 

The Simple statements consist of an expression, followed by a semicolon.

 

main( )

{

int X, Y;

X=Y+4;

 

 

15. What are the types of operators used in C?

 

1. Arithmetic Operator

 

2. Unary Operators

 

3. Relational and Logical Operators

 

4. Assignment Operators

 

5. Conditional Operators

 

6. Bitwise Operators

 

16. What are the types of tokens available in C?

 

In a passage of text, Individual words and punctuation marks are called “tokens”.

 

17. What are the types of tokens available in C?

 

1. Keywords

 

2. Constants

 

3. Identifiers

 

4. Strings

 

5. Operators

 

6. Special symbols

 

18. What are three different data types available in C?

 

1. Primary data types

 

2. Derived data types

 

3. User-defined data types

 

 

19. What are the rules for Evaluated expressions?

 

1. Parenthesized expressions are evaluated from left to right.

 

2. If Parentheses are nested, the evaluation begins with innermost sub-expression.

 

3. Arithmetic expressions are evaluated from left to right using the rules of precedence.

 

4. When parentheses are used, the expression within parentheses assumes the highest priority.

 

20. What are the types of Control statements?

 

1. Decision making or Conditional statements

 

2. Looping statements

 

3. Jumping statements

 

21. Give the syntax of the if statement in C?

 

if(condition) // condition is true

Statement;

 

22. Give the syntax of the If else construct?

 

if(condition)

{

Statements I

}

else

{

Statements II

}

 

 

23. What is meant by Switch Case in C?

 

The Switch-Case statement causes a particular group of statements to be selected from a group of options.The selection is based upon the current value of the expression which is specified with the switch statement.

 

24. What are the types of the Looping Statements?

 

1. While statement

 

2. Do while statement

 

3. For statement

 

4. Nested for statement

 

25. What is the use of the While statement in C?

 

The while statement is used to carry out looping operations.Hence the loop is executed until the expression evaluates to TRUE.

 

 

26. What is meant by Nesting For loops and give the syntax?

 

The for loop can be nested within a while loop or another for a loop.

 

Syntax:

for(expression 1;expression 2;expression )

{

Statements;

for(expression 1;expression 2;expression 2)

{

Statements;

}

}

 

27. What are the types of Jumping statements in C?

 

There are four types of Jumping statements in C

 

1. Break statement

 

2. Continue statement

 

3. Return statement

 

4. Goto statement

 

28. What is the use of the break statement in C?

 

The use of the break statements is used to terminate the loops or exit. And it is also used to allow the programmer to effectively alter the path.

 

30. What is the use of the Continue statement in C?

The continue statement is used to bypass the remainder of the current pass through a loop. The loop doesn’t terminate when a continue statement is encountered.

 

37. What is meant by the array?

An array is a collection or group of elements that have a common characteristic and share a common name.

 

38. What are the types of an array?

 

1. One dimensional array

 

2. Multidimensional array

 

 

39. What is meant by functions in C?

1. A function is a self-contained program segment that carries out some specific, well-defined

tasks.

 

2. Functions break large computing tasks into smaller ones.

 

3. The functions are used to avoids redundant programming of the same instructions.

 

40. What are the two types of functions?

 

1. Predefined

 

2. Used defined

 

41. What is meant by predefined functions?

Pre-defined functions are built-in functions that are already defined and stored in the header in files.

 

42. What are the types of predefined functions available in C?

 

1. Numeric Functions or Mathematical Functions

 

2. String Functions

3. Character Functions

 

43. What is meant by Numeric Functions in C?

 

The numeric functions are defined in the header file <mnath.h> before using math functions we should include the header file.

 

44. What are the advantages of the functions?

 

1. Functions make the program much easier to understand, debug and test

 

2. Functions save time and memory space.

 

45. What are the Steps involved in the function?

 

1. Function declaration

 

2. Function calling

 

3. Function definition

 

46. What is the syntax of the Function declaration?

 

returndatatype funcname(argument datatype,argument datatype..)

 

47. What is meant by static variables in C?

 

Static variables are similar to external variables.Storage is allocated at compile time rather than a runtime.

 

48. What is meant by Recursion?

 

It is a process whereby a function calls itself repeatedly until some specified conditions have been satisfied.

 

49. What is meant by pointers in C?

 

A pointer is a variable which holds the address of another variable.By using this pointer variable we may call that particular memory allocation.

 

50. What is the classification of pointers available in C?

 

1. Integer pointer

 

2. Real pointer

 

3. String Pointer

 

4. Void Pointer

 

5. Null pointer

 

51. What is meant by Structure?

 

Structures are collections on or more variables possibly of different datatypes grouped

together.

52. What is meant by Union in C?

 

A Union is a different datatype used in the same memory location.

 

Syntax:

 

Union union type


{

member_type 1 member_name1;

member_type 2 member_name2;

...........................


member_typen member-namen;

};

 

 

53. What are the two different types of data files in C?

 

1. System-oriented

 

2. Stream-oriented

 

54. What are the data types available in C?

 

1. Derived data types

 

2. Fundamental data types

 

3. User-defined data types

 

55. What is the characteristic of the modular programming?

 

1. Each module should do only one thing.

 

2. Communication between module allowed only by a calling module

 

3. A module can be called one and only one higher module.

 

56. What is the difference between C and C++?

 

C:

1. C is a procedure-oriented language

 

2. C does not support a polymorphism

 

3. C does not support functions and operator overloading

 

4. C does not support reference variable.

 

5. It supports the Top-down approach

 

C++ :

 

1. C++ is a object-oriented programming language.

 

2. It supports polymorphism

 

3. It supports functions and operator overloading

 

4. It supports reference variable.

 

5. It supports the Bottom-up approach

 

57. When the C program was developed?

 

The C program was developed in the year of 1972 in Bell Lab by Dennis Rritchie.

 

C interview questions and answers are used to prepared for the examination in the college level and it is also used for the school students in the recent years.

 

Here is the list of the top 57 most important C interview questions and answers are mentioned to the peoples.

 

This C interview questions and answers are used based on the user knowledge.