# Programming for Problem Solving(3110003)

BE | Semester 1
Winter - 2019|07-01-2020
Total Marks 70

## Q1 (a) List out types of software with example.

Unit : Introduction to computer and programming |  Topic : Types of software

## Q1 (b) Distinguish the data types provided by C programming language.

Unit : Fundamentals of C |  Topic : Data types

## Q1 (c) Implement a C Program to convert temperature from Fahrenheit to Celsius and vice versa.

Unit : Fundamentals of C |  Topic : Evaluation of expressions

## Q2 (a) Define break and continue statement with example.

Unit : Control structure in C |  Topic : Break and continue

## Q2 (b) Categorize the major components of computer system and give their function.

Unit : Introduction to computer and programming |  Topic : Basic block diagram and functions of various components of computer

## Q2 (c) List all symbols used in flowchart and draw flowchart to find factorial number.

Unit : Introduction to computer and programming |  Topic : Flowcharts and Algorithms

## Q2 (c) Construct ‘C’ program to print the following pattern using loop statement. 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5

Unit : Control structure in C |  Topic : Nesting of control structures

## Q3 (a) Explain different types of constants.

Unit : Fundamentals of C |  Topic : Constants and Variables

## Q3 (b) Define algorithm and explain different symbols used in flowchart.

Unit : Introduction to computer and programming |  Topic : Flowcharts and Algorithms

## Q3 (c) Demonstrate a C program to input an integer number and check last digit of number is even or odd.

Unit : Fundamentals of C |  Topic : Evaluation of expressions

## Q3 (a) Explain getch(), getchar(), gets().

Unit : Fundamentals of C |  Topic : I/O Functions

## Q3 (b) List out the operators used in C language and explain any three with example.

Unit : Fundamentals of C |  Topic : Operators

## Q3 (c) Write a program to find sum of first N odd numbers. Ex. 1+3+5+7+………..+N .

Unit : Control structure in C |  Topic : Looping statements

## Q4 (a) Show the important of stdio.h header file.

Unit : Fundamentals of C |  Topic : Header files

## Q4 (b) Describe file management. And List the various file management functions.

Unit : File management |  Topic : Introduction to file management and its functions

## Q4 (c) Build a function to check number is prime or not. If number is prime then function return value 1 otherwise return 0.

Unit : Control structure in C |  Topic : Looping statements

## Q4 (a) Distinguish between Structure and Union.

Unit : Structure |  Topic : Basics of structure

## Q4 (b) Develop an algorithm to print first N Fibonacci numbers.

Unit : Introduction to computer and programming |  Topic : Flowcharts and Algorithms

## Q4 (c) Write a C program to read 10 numbers from user and store them in an array. Display Sum, Minimum and Average of the numbers.

Unit : Array & String |  Topic : Concepts of array

## Q5 (a) Write a program to illustrate the use of fputc ( ) and fputs( ).

Unit : File management |  Topic : Introduction to file management and its functions

## Q5 (b) Categorize User defined function’s components (elements).

Unit : Functions |  Topic : Parameters

## Q5 (c) Explain the function definition, function prototype and function call with relative example.

Unit : Functions |  Topic : Concepts of user defined functions