This download link is referred from the post: GTU BE 2019 Summer Question Papers || Gujarat Technological University
EnrolmentNo.
Firstranker's choice
GUJARAT TECHNOLOGICAL UNIVERSITY FirstRanker.com
--- Content provided by FirstRanker.com ---
BE - SEMESTER-I & II (NEW) EXAMINATION - SUMMER-2019
Subject Code: 3110003 Date: 10/06/2019
Subject Name: Programming for Problem Solving
Time: 10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
--- Content provided by FirstRanker.com ---
- Attempt all questions.
- Make suitable assumptions wherever necessary.
- Figures to the right indicate full marks.
- (a) Write flowchart or algorithm to find area of a triangle. 04
(b) Write a program to reverse a given number. 03--- Content provided by FirstRanker.com ---
(c) Explain various looping control structures with suitable example. 07 - (a) What are header files? Name at least 3 with its usage. 04
(b) Write a program to find 1+1/2+1/3+1/4+...+1/n. 03
(c) What is a string? Explain at least 4 built-in string functions with example. 07
OR--- Content provided by FirstRanker.com ---
(c) What is an array? Explain one dimensional and two dimensional array declarations and initialization with suitable example. - (a) What is formatted output? Using printf() statement explain it. 04
(b) Write a program to check whether entered character is vowel or not? 03
(c) Write a program to print all Armstrong numbers in a given range. Armstrong number is equal to sum of cubes of its individual digits. For example 153 = 13 + 53 + 33. So, 153 is Armstrong number. 07
OR--- Content provided by FirstRanker.com ---
(a) Why it is necessary to give the size of an array in array declaration? 04
(b) Explain break and continue with suitable example. 03
(c) Write a program to display transpose of given 3*3 matrix. 07 - (a) What is pointer? Which arithmetic operations are not valid on pointers? 04
(b) Explain array of pointers with suitable example. 03--- Content provided by FirstRanker.com ---
(c) Write a program to calculate nCr using user defined function. nCr=n! / (r! * (n-r)!) 07
OR
(a) What is pointer? Which arithmetic operations are valid on pointers? 04
(b) What is pointer to, pointer? Write suitable example to demonstrate the concept. 03
(c) What is recursive function? Explain with suitable example. 07 - (a) What care must be taken while writing a program with recursive function? 04
(b) Explain how structure variable is initialized with suitable example. 03
(c) What are command line arguments? Explain with suitable example. 07
OR
(a) In user defined function, what is actual argument and formal argument? 04--- Content provided by FirstRanker.com ---
(b) Explain with suitable example structure variable and pointer to structure variable. 03
(c) What is dynamic memory allocation? Explain important functions associated with it. 07
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU BE 2019 Summer Question Papers || Gujarat Technological University