Gujarat Technological University
Gujarat Technological University
___________
Q.1 (a) Explain types of programming languages. Differentiate between compiler and 07
interpreter.
(b) Define flowchart and algorithm and give one example of each. 07
Q.2 (a) Explain the structure of a C program giving example. 07
(b) Name the operators in C language and give the precedence and associativity of 07
each.
Q.3 (a) Write a program for simple calculator using switch-case statement. 07
(b) Explain nested if-else statement giving example. 07
Q.6 (a) What is dynamic memory allocation? Define malloc ( ), calloc ( ), free ( ) and 07
realloc ( ).
(b) Explain scope and lifetime of a variable in detail. 07
Q.7 (a) Define structure. Write structure that named book which consists of three data 07
fields, namely name, price and pages. How can we access structure variables?
(b) What is a File? Explain the entire file handling functions and mode of a File. 07
*************