0% found this document useful (0 votes)
3 views2 pages

ProgrammingforProblemSolving OR1768485084991

This document outlines the examination details for the B. Tech. First Semester CSE (AIML) Programming for Problem Solving course, including instructions and a series of programming questions. The exam covers topics such as flowcharts, C programming tasks, loops, recursion, and data structures. Each question is designed to assess the students' understanding and application of programming concepts.

Uploaded by

rocira2477
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)
3 views2 pages

ProgrammingforProblemSolving OR1768485084991

This document outlines the examination details for the B. Tech. First Semester CSE (AIML) Programming for Problem Solving course, including instructions and a series of programming questions. The exam covers topics such as flowcharts, C programming tasks, loops, recursion, and data structures. Each question is designed to assess the students' understanding and application of programming concepts.

Uploaded by

rocira2477
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

RDAR/2KVN/OR – 16081

B. Tech. First Semester CSE ( AIML ) / B. Tech. – 21-22 – SOE –


AML - 203 Examination

Course Code : AIML 2105 Course Name : Programming for


Problem Solving

Time : 2 Hours ] [ Max. Marks : 40

Instructions to Candidates :—
(1) All questions are compulsory.
(2) All questions carry marks as indicated.
(3) Illustrate your answers wherever necessary with the help of neat sketches.

1. (A) Draw the flowchart to find whether a given integer triplet (set of three
integers) is a Pythagorean triplet. 3 (CO 1)
(B) What is flowchart ? Explain different symbols used for flowchart.
3 (CO 1)

2. (A) Write a C program to enter any number as input and check whether the
entered number is greater than zero, less than zero or exact zero.
3 (CO 2)
(B) Write a C program to enter electricity unit and calculate the total electricity
bill according to the given condition :
= For 0-100 units — Rs. 3.44/unit.
= For 101-300 units — Rs. 7.34/unit.
= For 301-500 units — Rs. 10.36/unit.
= For 501-1000 units — Rs. 11.82/unit.
= For units above 1000 — Rs. 12.50/unit and an additional surcharge
112 is to added to the bill. 4 (CO 2)

RDAR/2KVN/OR – 16081 Contd.


3. (A) Write a program to print following pattern using nested for loop :—

yyyyy
yyyy
yyy
yy
y 3 (CO 2)
(B) Differentiate between while and do – while loop, with the help of suitable
example. 4 (CO 2)

4. (A) Write a program to find factorial of entered number by using recursion.


3 (CO 3)
(B) Write a C program to find whether a number is prime or not using a
user defined function. 4 (CO 3)

5. (A) Write a C program to enter elements for 2–D Matrix using keyboard and
find the Transpose of a matrix. Also print transposed matrix. 4 (CO 3)
(B) Write a C program to copy a string into another string. 3 (CO 3)

6. (A) Write a program to store the information (name, roll no and percentage)
of ten students and display it on the screen using structure. 3 (CO 4)
(B) Write a program to count the number of vowels in a file. 3 (CO 4)

RDAR/2KVN/OR – 16081 2 15

You might also like