Вы находитесь на странице: 1из 9

C QUESTIONS

1.

Explain the Basic Structure of C program and write the features of


C-Language.

2.

What is an identifier, constant, variable and give the rules for


identifier and variables.

3.

Explain Different Data types in C language.

4.

Explain Different Operators available in C language.

5.

Explain the Order of precedence and associativity or hierarchy of


Operators.

6.

What are Input/Output functions available in C and explain in detail


the I/O functions with examples.

7.

What is C preprocessor and explain the different types of


preprocessor directives.

8.

Explain the different control statements available in C with


examples.

9.

What is an array? And Explain different types of arrays we are using


in C with examples.

10.

Explain the uses of arrays?

11.

Explain different string Handling functions in C ?

12.

What is a function and what are the advantages of using functions?

13.

Explain the different categories of functions?

14.

Explain the recursion process and write the advantages (Pros.) and
disadvantages (Cons.) of using recursion?

15.

Explain the function prototyping, function definition and function call


concepts?

16.

Explain the scope and lifetime of variables in C (Explain storage


classes in C).

17.

What is a Pointer and what are the advantages of using Pointers?

18.

Explain how to declare a pointer variable and initialization of


pointer?

How to access the address of memory variables with

examples.
19.

Explain in detail array of pointers and pointer to array concepts.

20.

Explain representation of Pointers with arrays, Pointers in functions


and Pointers with strings.

21.

Explain Dynamic Memory Allocation Process and the functions


malloc(), calloc() and realloc().

22.

What is a structure and how to declare a structure, Explain it with


examples?

23.

Explain the difference between arrays and structures.

24.

Explain the self referential structure concept?

25.

Explain different types of passing structures to a function with


examples?

26.

Explain how to declare pointers with structures.

27.

Explain the difference between structures and unions.

28.

What is a file and what are different operations on a file.

29.

What are the I/O functions used in file handling?

30.

Explain error handling functions in FILE I/O operations.

PROGRAMS IN THEORY PAPERS


1.

Define algorithm and flowchart.

What are the basic components of a

flowchart and given one example?


2.

Write short notes on call by value and call by reference with examples.

3.

Write a C program to convert the lower case string to upper case string
using Pointers.

4.

Write a C program to calculate the sum of digits in a given integer.

5.

Write a C program to find the factors of given number using do while


statement.

6.

Write a C program to read a number and print the number in words.

7.

Write a C program to find whether the given number is prime or not.

8.

Write a C program to check whether the given string is Palindrome or not


using Pointers.

9.

Write a C program to concatenate the given two strings without using


standard library function.

10.

Write a C program to find the length of string using Pointers?

11.

Write a C program to sort list of names into alphabetical order using


Pointers.

12.

Write a C program to count the number of Vowels, Consonants, Digits,


Words and other special characters in a given line of text.

13.

Write a function to find the product of Matrix A and Matrix B of order mn


and pq respectively and store the result in Matrix C.

14.

Write a function to find the Transpose of the given Matrix A.

15.

Write a function to check whether the given matrix is Symmetric or not.

16.

Write C functions using Pointers on the following techniques.

17.

(a) Bubble Sort

(b) Insertion Sort

(d) Linear Search

(e) Binary Search

(c) Selection Sort

Write C functions using recursion process.


(a) Factorial (b) Fibonacci Series

(c) GCD

(d) LCM

C - SHORT QUESTIONS
1.

What is the basic structure of the 'c' program?

2.

Distinguish between Global and Local variables ?

3.

Name and describe the four data types in C?

4.

What is a flowchart?

5.

Define algorithm?

6.

Write the syntax of the scanf ( ) and printf ( ) function?

7.

What is escape sequence character? Mention any four?

8.

Why 'C' is a Middle language. Justify your answer?

9.

What is keyword? List out type - modifier keywords?

10.

Mention any four format specifiers of the scanf ( ) function?

11.

What is the meaning and purpose of sizeof keyword?

12.

Distinguish between the Actual and formal arguments.

13.

Describe the limitations of using getchar and scanf functions

for reading strings?


14.

What is the output of the following statement?


Int x;

x=a+z-10;

printf(x=%c,x);

15.

What are the important characteristics of C?

16.

What is the difference between 'const' and 'volatile' keywords?

17.

Define a variable?

18.

List out different I/O functions?

19.

What different Qualifiers in C?

20.

What is the difference between external variable declaration

and external variable definition?


21.
22.

What is the purpose of return keyword?


What is the difference between actual argument and formal

arguments?
23.

What is the significance of Null Character?

24.

Define data types in C?

25.

When do you use CONTINUE?

26.

When do you use BREAK?

27.

State void specifier?

28.

Define scope and life of a variable?

29.

Write various format specifiers?

30.

Write various escape sequence characters?

31.

What do you understand by decision statements?

32.

Define a compound statement?

33.

What is a NULL statement? Explain its usefulness?

34.

State difference between library functions and user defined

functions?
35.

What is the scope of a variable?

36.

Write the syntax of switch statement?

37.

Differentiate between while and do -while?

38.

Differentiate between break and continue

39.

Write the syntax of conditional operator.

40.

What are nested loops?

41.

In what ways does a switch statement differ from an if

statement?
42.

What is a bit - wise operator? Give any two?

43.

What are different loop statements and give the syntax for

each?
44.

What is the precedence and associatively of an operator?

45.

How do you define an infinite loop in C?

46.

What is the difference between the while and do-while loops

in C?
47.

What is the purpose of Boolean operator in C?

48.

Write the syntax of switch-case construct?

49.

Write the syntax of nested if-else statement?

50.

What is a null statement? What is its USE?

51.

Write the syntax of the scanf ( ) and printf ( ) function?

52.

What is the purpose of puts ( ) and gets ( ) functions?

53.

Define Ternary operator and give an example?

54.

Define typecasting?

55.

Define type - coercion?

56.

What is meant by coercion?

57.

How do you define assignment and conditional operators in

C?
58.

What is a operator precedence? Give the following operators

precedence: ( ), ^, *, +.
59.

Explain the difference between a relational operator and a

logical operator?
60.

What do you understand by signed character?

61.

. What is an array? What is need of an array'?

62.

What are 'ragged arrays?

63.

What is a character array or string?

64.

What is an array of pointers?

65.

Distinguish between (*R)[lO] and *R[lO].

66.

What is the significance of array name?

67.

What is the

difference between the array and ordinary

variable
68.

What are the advantages and the disadvantages of arrays?

69.

How do you initialize a single dimensional array?

70.

How can you initialize a 2-Dimensional array?

71.

What is the difference between declaration of an ordinary

variable and an array


72.

Define function prototype?

73.

What is the difference between extern and auto storage class?

74.

What is a call- by - value?

75.

What is a call - by - reference?

76.

What are different parameter passing mechanisms?

77.

Mentions various String functions?

78.

Distinguish between local and global variables?

79.

What is meant by prototype?

80.

Define a function? What are the advantages of functions?

81.

What is mean by recursion? What are the different conditions

of recursion?
82.

What is the difference between recursion and iteration?

83.

What is meant by call by reference method?

84.

Define an array?

85.

What is meant by function prototype?

86.

Write different storage classes?

87.

Explain static storage class?

88.

. What is the default storage class in 'C' and default return

data type?
89.

What is the difference between static and register?

90.

Distinguish between register and other storage classes?

91.

Explain about return?

92.

How does main () differ from other user-defined functions?

93.

Write syntax of function definition?

94.

Explain pointer to a function?

95.

What are the differences between internal and external

variables?
96.

Can a function have more than one return statement?

97.

Explain various disk I/O functions in C?

98.

Distinguish between high and low level disk I/O functions?

99.

What is the difference between call by value and call by

reference?
100.

What is the strings assignment operator giving its syntax?

101.

How many null characters ('/0) are stored in the following


string declaration?
Char RVR [50] [100];

102.

What is use of preprocessor statement?

103.

Mention any four string handling functions in 'c'?

104.

What is meant by recursion?

105.

What are preprocessing directive in 'c' given any four?

106.

What is a structure?

107.

Distinguish between structures and unions?

108.

Write the syntax of structure declaration.

109.

What is a pointer?

110.

How is a pointer initialized?

111.

Define dynamic memory allocation?

112.

What are the advantages of pointers, give any two?

113.

What is the need of dynamic memory allocation?

114.

How can the size of a structure be determined? In What units


is the size reported?

115.

Two pointers addition and multiplication is possible if yes


justifies your answer?

116.

Give example and initialization of arrays of structures?

117.

What is the size of the pointer variable?

118.

What is meant by array of structures?

119.

State the use of typedef?

120.

What is meant by Macro?

121.

Is the pointer an integer? Justify your answer?

122.

What is a pointer?

123.

What is the format used to get the address of a pointer?

124.

How do you define a pointer to a linear array?

125.

Define Dynamic memory allocation?

126.

What is the difference between structure and union?

127.

Explain Array of structures?

128.

Explain pointers to structures?

129.

What are different memory management functions?

130.

What is the difference between the malloc() and calloc()?

131.

What is the role played by the sizeoff in dynamic memory

allocation?
132.

How do you define a pointer to a structure?

133.

Distinguish

between

structure

and

structure

variable

declaration?
134.

What is the purpose of Header file having the predefined


function by using or including?

135.

What are the advantages of pointers?

136.

Define a structure?

137.

What is a file?

138.

Distinguish between printf() and fprintf()?

139.

What is meant by multi file compilation?

140.

Write the different modes for opening a file?

141.

State the disadvantages of sequential file processing?

142.

What is the difference between fscanf (

) and scanf (

functions?
143.

What are Command line arguments?

144.

What is a file? What is its use?

145.

What is the significance of 'EOF'?

146.

What is the use ENUM data type?

147.

What are enumeration variables? How are they declared?

Вам также может понравиться