0% found this document useful (0 votes)
10 views1 page

Gujarat Technological University

This document is an examination paper for the Computer Programming and Utilization subject at Gujarat Technological University, dated June 3, 2017. It consists of various questions covering topics such as programming languages, C program structure, operators, control statements, arrays, user-defined functions, dynamic memory allocation, structures, and file handling. Students are instructed to attempt any five questions, making suitable assumptions where necessary.

Uploaded by

masag24413
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Gujarat Technological University

This document is an examination paper for the Computer Programming and Utilization subject at Gujarat Technological University, dated June 3, 2017. It consists of various questions covering topics such as programming languages, C program structure, operators, control statements, arrays, user-defined functions, dynamic memory allocation, structures, and file handling. Students are instructed to attempt any five questions, making suitable assumptions where necessary.

Uploaded by

masag24413
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE SEMESTER– 1st / 2nd(OLD) EXAMINATION – SUMMER 2017

Subject Code:110003 Date: 03/06/2017


Subject Name: Computer Programming and Utilization
Time:2:30 pm to 5:00 pm Total Marks: 70
Instructions:
1. Attempt any five questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

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.4 (a) Write a program to print 1 07


121
12321
(b) Define array. Write a program to enter elements in a 2×2 array and print the 07
same.
Q.5 (a) Write a program to reverse a string without using inbuilt string reverse function. 07
(b) What is a user defined function? Explain function call by reference giving 07
example.

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

*************

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy