You are on page 1of 2

CODE No.

:16BT10501 SVEC16

SREE VIDYANIKETHAN ENGINEERING COLLEGE


(An Autonomous Institution, Affiliated to JNTUA, Anantapur)
I B.Tech I Semester (SVEC16) Regular Examinations December - 2016
PROGRAMMING IN C
[ Civil Engineering, Electrical and Electronics Engineering, Mechanical Engineering,
Electronics and Communication Engineering, Computer Science and Engineering,
Electronics and Instrumentation Engineering, Information Technology,
Computer Science and Systems Engineering ]
Time: 3 hours Max. Marks: 70
Answer One Question from each Unit
All questions carry equal marks

1. a) Illustrate the structure of 'C' program with an example. 7 Marks


b) List various steps to develop programs in 'C'. 7 Marks
(OR)
2. a) What happens to symbolic constants that appear within a 'C' program during the 7 Marks
compilation process?
b) In what order the operations are carried out within an expression that contains 7 Marks
nested parentheses?

3. a) Write the difference between break and continue statement with examples. 7 Marks
b) Suppose a break statement is included with in the innermost of several nested 7 Marks
control statement, what happens when break statement is executed.
(OR)
4. a) Given the marks obtained by the students, maximum marks and pass marks in 7 Marks
three subjects. Design an algorithm and draw flowchart to find whether the
student passed or not, if the student passes determine the percentage marks and
grade.
The grade is determined as follows:
i) percentage marks >=80 grade is A
ii) percentage marks >=70 and <80 grade is B
iii) percentage marks >=60 and <70 grade is C
iv) percentage marks >=50 and <60 grade is D
v) percentage marks <50 grade is F

b) Can a default alternative be defined within a switch statement? If so, how 7 Marks
would the default alternative is labeled?

5. a) Define function. Explain its syntax and advantages. 7 Marks


b) Write a 'C' Program to compute Xn where X and n are valid Integers. 7 Marks
(OR)
6. a) Write short notes on usage of Pre-Processor directives in 'C' programming. 7 Marks
b) Write a 'C' program to find out whether a number is Perfect or not. 7 Marks

1
7. a) Develop a program to read two strings str1 and str2 and then find out whether 7 Marks
the string str2 is the substring of str1or not.
b) Develop a program to read two strings str1 and str2 from the user and then find 7 Marks
whether the given two strings are equal or not without using string.h library
functions.
(OR)
8. a) Compare array of Characters and Pointer to characters. 7 Marks
b) Explain how to pass a Pointer array to a function. 7 Marks

9. a) With an example, explain how to declare and access structures. 7 Marks


b) Write a 'C' program to initialize Structure Members. 7 Marks
(OR)
10. a) What is the use of typedef in structure declaration? Explain. 7 Marks
b) Write a 'C' program to copy one structure into another. 7 Marks



You might also like