Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

POORNIMA INSTITUTE OF ENGINEERING & TECHNOLOGY, JAIPUR

I B.TECH. (II Sem.) Roll No. __________________


FIRST MID TERM EXAMINATION 2020-21
Code: 2FY3-06 Category: ESC Subject Name–PROGRAMMING FOR PROBLEM SOLVING
(BRANCH – COMMON TO ALL)

Max. Time: 2 hrs. (Including written & copy submission work)


Max. Marks: 50
SET-1
NOTE:- Read the guidelines given with each part carefully.
CO statement:
1. To translate the flowchart to programs (in C language).
2. To execute the programs and correct syntax and logical errors.
3. Apply and analyze problem related conditional branching, iteration
PO Key Words:
1. Apply
2. Analyze

PART - A: (All questions are compulsory) Max. Marks (10)


CO PO
Q.1 3 1,2 Define the ASCII range of lower case letter, uppercase letter, and digit of character (2)
Q.2 2 1,2 Differentiate between entry control loop and exit control loop. (2)
Q.3 2 1,2 Differentiate between break and continue. (2)
Q.4 3 1,2 Define unary operators, binary operators and ternary operators (2)
Q.5 1 1 What is a Flow Chart? Explain with Example (2)
PART - B: (Numerical Compulsory) Max. Marks (10)
Q.6 2/3 1,2 Write a program to Draw following pattern :. (10)
(i) A (ii) *****
AB ****
ABC ***
ABC **
*

PART - C: (Both the questions are compulsory) Max. Marks (30)


Q.7 2/3 1,2 Write a program to take marks of a student as input and calculate the grade (15)
according to the following rules.
Marks Range Grade

>85 ‘S’

>75-<84 ‘A’

>65-<74 ‘B’

>55-<64 ‘C’

>50-<54 ‘D’

<50 ‘F’
Q.8 1/2/3 1,2 Explain Array in detail. Also WAP that checks and searches for elements in an (15)
array . Draw the flowchart to find the minimum element in the array.

You might also like