Professional Documents
Culture Documents
Dec -2018.
I-B.Tech 1-Semester Regular Examinations,
SOLVING
PROGRAMMING FOR PROBLEM
(Common to EEE, ECE, CSE, IT & ETM)
Time: 03 Hours
Max. Marks: 70
Note:
of Part A and Part B.
1. Question paper comprises
carries l10 marks. Answer all questions in Part A.
2. Part A is compulsory which
five questions with "either" "or" pattern. Each question
3. Part B (for 60 marks) consists of
The student has to answer any one full
carries 12 marks and may have a,b,c as sub questions.
question.
PART-A
(Answer 05 questions. Each question carries 2 marks)
5x2-10]
.1 a) Define Flow chart. List any two commonly used symbols and specify its [02
purpose.
b) How entry controlled loop is different from exit controlled loop? [02]
c) Define pointer. Write the advantages and disadvantages of using pointers. [02
d) What is the need of bit fields? [021
e) What is the use of the preprocessor directives? 02
END OF PART A
PART-B
(Answer 05full questions. Each question carries 12 marks)
OR
Q.3(a) Explain the elements supported in C programming language with its structure. 06
(b) Define Data type. Briefly discuss the fundamental data types supported in C. [06]
Q4(a) Discuss about arrays. And write a program to find sum of array clements.
06
(b) Write a C program to find given string is palindrome or not without using any
061
string lunctions.
OR
Page 1 of 2
GNITS-R-18-111AF
.5(a) Write a C program that uses functions to insert a
substring into given main
string at a given position.
a
[061
(b) Give a brief note on string manipulation functions.
061
---=.
END OF PART B
END OF THE QUESTION PAPER
Page 2 of 2
GNITS-R- 18 111AF
Science
Institute of Technology &
G. Narayanamma
(Autonomous) for Women)
104
Shaikpet, Hyderabacd- 500
Note:
Part A and Part B.
1. Question paper comprises of
carries 10 marks. Answer all questions in Part A.
2. Part A is compulsory which
3. Part B (for 60 marks) consists
of five questions with "either" "or" pattern. Each question
The student has to answer any one full
carries 12 marks and may have a,b,c as sub questions.
question.
PART-A
carries 2 mnarks)
(Answer 05 questions. Each question
5x2 10]
PART-B
(Answer 05fiull questions. Each question carries 12 marks)
OR
Q.3(a) Write a Cprogram to find GCD of given two numbers. 106]
(b) Write an algorithm to find the factorial of m 06
Q.4(u) Explain different ways to read a string through keyboard. 1061
(b) Write a C program to input number and find a largest digit in a given number and
[06
print it in word with an appropriate message. (Ex: u-5273-" SEVEN is largest".)
OR
Page 1 of 2
GNITS-R- 18 - 111AF
Q.5(a)
List the differences between static memory allocation and dynamic memory [06
allocation.
Q.6fa)
****
(b) Write a program to read student name, ID and marks in 6 subjects for a class of [06]
25 students. Display the student name, ID and total marks for each student.
--=-==a=a.-
Q.10(a) Write a C program to test a number is prime or not using command line 06]
parameters.
(b) Write a C program to rename a file. [06
OR
Q.11 (a) Write the differences between text file and binary file. [06
(b) Write a C program to append one file contents to another file.
[06
END OF PART B
END OF THE QUESTION PAPER
Page 2 of 2
GNITS-R-18-111AF
G. Narayanamma Institute of Technology & Science
(Autonomous) (for Womnen)
Shaikpet, Hyderabad- 500 104
(b) What are variables and constants? What are the rules for declaring the variables? 071
Q.3(a) What is an array? Explain the three dimensional array with an example. 08]
(b) Write a C program to find whether the given number is Armstrong or not. [061
PART-A
(Answer 05 questions. Each question carries 2 marks)
5x2- 10]
Q.No Question Marks
Bloom's
Level
Q.1 a) Explain about properties of algorithms.
121 L2
b) Give the use ofbreak and continue with an example. 121 Li
c) What is the output of the
following fragment of 'C' code? static int a[3][2][4] | 21 L2
=
{12, 1,4,7,2, 5, 8, 9}, {8, 6, 4, 4, 2, 5, 3, 5}, {2, 4, 5, 6, 1,9, 8, 7}};
printf%d", a2]]1 JO).
d) Explain about operations on structures.
21 L2
e)Write the difference between fputc() and fgetc() 121 L2
END OF PART A
PART-B
(Answer 05 full questions. Each question carries 12 marks)
Q.No Bloom's
Question Marks
Q.2(a) Level
Briefly explain about the basic data types that C language supports.
(b) Explain about Type conversions with
104 L2
examples. [04 L2
(c) Write a C program to
display sum of individual digits. 1041 L3
OR
Q.3(a) Compare the use of if-else construct with that of
conditional operator. Explain 1071 L2
with exanmples.
(b) Define Precedence? What is
the valuc of the 'C' expression: 9-9/5 *
5 %3 >
9
| %5 % 3? 05 LI
Page 1 of2
GNITS-R- 18 -
111AF
061 L2
ofarrays with an example.
Q4(a) Explain about applications L3
or not. [061
Write a C program to fínd whether
the given string is palindrome
(b)
OR
[05] L2
Q.5(a) functions with Examples.
Explain about string manipulation
[071 L3
about types of arrays with Example.
(b) Explain
06] L2
Define recursion? Explain it with
an example program.
Q.6(a)
examples. 106 L2
Explain about Pointer Arithmetic with
b)
OR
be used to access individual elements of an array? Explain| 06] L3
O.7(a) How can a pointer
with an example.
Write the procedure for swapping two strings using pointers. [06] L2
(b)
OR
Q.9(a) Explain about bit fields with an example. [061 L2