This download link is referred from the post: GTU BE/B.Tech 2019 Winter Question Papers || Gujarat Technological University
GUJARAT TECHNOLOGICAL UNIVERSITY
SEMESTER- I & II (NEW) EXAMINATION — WINTER 2019
--- Content provided by FirstRanker.com ---
Subject Code: 3110003 Date: 07/01/2020Subject Name: Programming for Problem Solving
Time: 10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
- Attempt all questions.
- Make suitable assumptions wherever necessary.
- Figures to the right indicate full marks.
--- Content provided by FirstRanker.com ---
MARKS
Q.1 (a) List out types of software with Examples. 03
(b) Distinguish the data types provided by C programming language. 04
--- Content provided by FirstRanker.com ---
(c) Implement a C Program to convert temperature from Fahrenheit to Celsius and vice versa. 07
Q.2 (a) Define break and continue statement with example. 03
(b) Categorize the major components of computer system and give their function. 04
(c) List all symbols used in flowchart and draw flowchart to find factorial number. 07
OR
--- Content provided by FirstRanker.com ---
(c) Construct ‘C’ program to print the following pattern using loop statement. 07
1 22 333 4444 55555
Q.3 (a) Explain different types of Constants. 03
(b) Define algorithm and explain different symbols used in flowchart. 04
(c) Demonstrate a C program to input an integer number and check last digit of number is even or odd. 07
OR
--- Content provided by FirstRanker.com ---
Q.3 (a) Explain getch(), getchar(), gets(). 03
(b) List out the operators used in C language and explain any three with example 04
(c) Write a program to find sum of first N odd numbers. Ex. 07
[1+3+5+7+... +N]
Q.4 (a) Show the important of stdio.h header file. 03
--- Content provided by FirstRanker.com ---
(b) Describe file management. And List the various file management functions. 04
(c) Build a function to check number is prime or not. If number is prime then function return value 1 otherwise return 0. 07
OR
Q.4 (a) Distinguish between Structure and Union. 03
(b) Develop an algorithm to print first N Fibonacci numbers. 04
--- Content provided by FirstRanker.com ---
(c) Write ‘C’ program to accept N numbers from user and store it into an array. Display Sum, Minimum and Average of the numbers 07
Q.5 (a) Write a program to illustrate the use of fputc () and fputs( ) 03
(b) Categorize User defined function’s components (elements). 04
(c) Explain the function definition, function prototype and function call with relative example. 07
OR
--- Content provided by FirstRanker.com ---
Q.5 (a) List the advantages of recursion. 03
(b) Explain for loop with example. 04
(c) Explain call by value (pass by value) and call by reference (pass by reference) with examples in brief. 07
--- Content provided by FirstRanker.com ---
This download link is referred from the post: GTU BE/B.Tech 2019 Winter Question Papers || Gujarat Technological University