Wednesday 23 September 2015

Freshers C Language Interview Questions and Answers pdf

21) What is a keyword?
Keywords are those words of C which have predefined meaning assigned by the C language.
They form a part of the database required by the C compiler.

22) What are the different types of c instructions?
=> There are basically three types of instructions in C are :
=> Type Declaration Instruction
=> Arithmetic Instruction
=> Control Instruction

23) What is an expression?
Expression is defined as a combination of operands and operators to obtain some computation. Operands represent variables or values and The operator tells is what operation to be performed.

24) What are the types of data files?
=> There are two types of data files :
=> stream oriented or standard data files
=> system oriented or low level data files

25) Why C is called a middle level language?
C combines the features of both Assembly Level Languages (Low Level Languages) and Higher Level Languages. For this reason, C is referred to as a Middle Level Language. The feature of ALLs is that of enabling us to develop system level programs and the features of HLLs are those of higher degree of readability and machine independence.

26) How can variables be characterized?
The variables can be categorized by storage class as well as by data type. The storage class specifies the portion of the program within which the variables are recognized.

27) Give the rules for variable declaration?
=> The rules for variable declaration in C are given below :
=> A variable name consists of alphabets, digits and the underscore (_) character
=> The length of variable should be kept upto 8 characters though your system may allow upto 40 characters
=> They must begin with an alphabet
=> Some systems also recognize an underscore as the first character
=> White space and commas are not allowed
=> Any reserved word (keyword) cannot be used as a variable name.

28) What is the purpose of type declarations?
The type declaration allow to create a synonym for other data types. Its syntax is typedef type identifier; The declaration typedef unsigned long int INTEGER

29) What is recursion?
C language a function may call another function. When a function calls itself, it is referred to as recursive call and the process is known as recursion. C provides very good facilities for recursion.

30) What is data types?
Data types refer to the classes of data that can be manipulated by C programs. The three fundamental data types supported by C are character, integer and real type.

More Questions & Answers:-

No comments:

Post a Comment