0% found this document useful (0 votes)
108 views

C Programming

1. This document contains 5 programming questions divided into 5 units that cover key concepts in C programming including data types, operators, control structures, functions, arrays, structures, and file handling. 2. The questions test understanding of topics like loops, functions, arrays, structures, pointers, files and input/output operations. Code snippets or full programs are required to be written for some questions. 3. Students need to attempt all questions with part (a) being compulsory in each and any two from remaining parts (b), (c), and (d). The exam is for 3 hours and carries a total of 100 marks with a minimum passing score of 35 marks.

Uploaded by

SAURABH NAMDEO
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views

C Programming

1. This document contains 5 programming questions divided into 5 units that cover key concepts in C programming including data types, operators, control structures, functions, arrays, structures, and file handling. 2. The questions test understanding of topics like loops, functions, arrays, structures, pointers, files and input/output operations. Code snippets or full programs are required to be written for some questions. 3. Students need to attempt all questions with part (a) being compulsory in each and any two from remaining parts (b), (c), and (d). The exam is for 3 hours and carries a total of 100 marks with a minimum passing score of 35 marks.

Uploaded by

SAURABH NAMDEO
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Printed Pages 4 Roll No.: ..

A000213(022)
B. Tech. (First and Second Semester)
Examination, Nov.-Dec. 2020

(New AICTE Scheme)

(AEI, Bio-Tech, Chem., Civil, CSE, Elect., EEE, EI,


ET&T, IT, Mech., Mining, Metallurgy,
Mechatronics, Production, Automobile,
Agriculture Branch)
PROGRAMMING for PROBLEM SOLVING

Time Allowed : Three hours

Maximum Marks : 100

Minimum Pass Marks : 35

Note: Attempt all the questions. All the questions


carry equal marks. In each question, Part
(a) carries 4 marks and part-(b), (c) and (d)
carry8 marks. Part (a) is compulsory and
attempt any two from part (b), () and (d).

Unit-I

1. (a) Define Keywords and write 5 Keywords of 'C'


with its meaning. 4

(b) Explain various operators in 'C 8

A000213(022) PTO
21 3
(c) What is flowchart? Also draw the flowchart to b) List and explain any 7 library functions on strings. 8
calculate area and circumference of circle for given
c)What is the difference between a character array
radius 8
and a string?
d)Explain the structure of C program with example
(d) Write a C code to Sort the elements of an integer
and features of C. 8
using Selection Sort. Demonstrate the working of
Selection Sorttechnique
Unit-II
2. (a) Differentiate, between while and do while loop. 4 Unit-IV
b) Write a program in C to print inverted pyramid: 8 4. (a) Define function and its types.
**** *
(b) Write a C program for Fibonacci series by using
function
(c) Write short notes on
) Call by Value
i) Call by Reference with example
(c) Explain the syntax of switoh-case statement. Also
mention the role of break; continue 'and default (d) Explain categories of function with example. 8
statement in switçh case. 8
Unit-V
(d) Write a program in C to calculate factorial of a
given number using for loop. 5. (a) Define structure and how it is declared?

Unit-1ll (6) Explain any 3 functions used for input/output in file


3. (a) What are arrays? Explain in brief how they simplify handling. 8

programming with suitableexample 4

A0002130022) A000213(022) PTO


I41
(c) Create a structure student to store the name, roll no

and percentage of the student. Enter some sample


values within the structure and print the details of
the student with maximum marks. 8

(d) What is a file in C? Discuss file handling mechanism


and steps to deal with a file in C. 8

1001 A000213(022)

You might also like