Pps May 2018
Pps May 2018
Pps May 2018
___________
GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER– 1st / 2nd EXAMINATION (NEW) – SUMMER 2018
(b) 07
1. ______ is generally used to increase the apparent size of physical memory.
(a) Secondary memory (b) Virtual memory
(c) Hard-disk (d) Disks
Q.2 (a) Name the major components of computer system and give their function. 03
(b) List out the operators used in C language and explain any three with example 04
(c) 1. Define algorithm and explain different symbols used in flowchart. 03
2. Draw a flow chart that shows how to find root of quadratic equation 04
ax2+bx+c.
Q.3 (a) Describe the four basic data types. How could we extend the range of values 03
they represent?
(b) Define variable and constant. Explain different types of constants. 04
(c) Write a C Program to convert temperature from Fahrenheit to Celsius and vice 07
versa.
Q.5 (a) Explain how string is defined in C. List the various inbuilt string functions. 03
(b) What is pointer? Explain how pointers are declared and initialized. State its 04
advantages.
(c) Write a C program to read 10 numbers from user and store them in an array. 07
Display Sum, Minimum and Average of the numbers.
Q.6 (a) What is structure? Explain with example how to declare a structure and how to 03
initialize it.
(b) What is dynamic memory allocation? Show the use of malloc() and calloc() 04
function with their syntax.
(c) Explain nested structure and array of structure with example. 07
Q.7 (a) Explain recursive function with proper syntax with small example. 03
(b) Describe file management? List the various file handling operations in c 04
(c) Explain call by value (pass by value) and call by reference (pass by reference) 07
with examples in brief.
***********