You are on page 1of 7

GNITS-R- 18 -111AF

of Technology & Science


G. Narayanamma Institute
(Autonomous)
for Women)
Shaikpet, Hyderabad-500 104

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)

Q.2(a) Explain in detail about operators with examples. 081


(b) In C, any variable is auto storage class by default, then why auto keyword 041
introduced in C? Explain.

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
---=.

Q.6(a) List and cxplain the limitations of recursion.


[04]
(b) Write a
program to access the array clements using pointer. [08]
OR
Q.7(a) Discuss about static and register storage classes with examples.
06]
(b) What is meant by recursion'? Explain the recursive function with
example. 06]
------------=-

Q.8(a) Enumerate the differences between structures and unions.


06
(b) Explain with an
example the use of arrays of structures.
06
OR
Q.9 Write a C program that
performs the following operations (Use structures and [12]
functions)
i) Reading a complex number
ii) Writing a complex number
iii) Addition of two complex number

Q.10(a) How to handle errors with file functions? Explain. [061


(b) Write a
program in C that copies the contents of one file to another
file. [061
OR
Q.I1 (a) Write a C program to count number of
words, lines and characters in a file. [06]
(b) Explain about fscanf() and fprintf() 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

12xaminations, May/June -2019


I-B.Tech 1-Semester Supplementary

PROGRAMMING FOR PROBLEM SOLVING


IT& ETE)
(Common to EEE, ECE, CSE,
Time: 03 Hours
Max. Marks: 70

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]

a) Evaluate the expression 2*3-4/(4+5)*9. [02]


Q.1
b) What are the advantages of an array over a variable? [02
c)Write the syntax for declaring a pointer. [02]
d) Can a structure be a member of union? If yes give example? [02
e)What is the use ofr, rt, a and at modes? 02
END OF PART A

PART-B
(Answer 05fiull questions. Each question carries 12 marks)

Q.2(a) Draw a flow chart to find largest of three numbers. [06


(b) Write a C program to test a point (x,y) lies in 1,II,Ill,iV quadrants, x-axis, y-axis 106
or origin.

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.

(b) Write a C program to check whether thc given string is palindrome


or not without T06
functions.
using string handling

Q.6fa)
****

Explain ditferent types of storage classes in detail. [06)


(b) Write a recursive function to reverse a number. 06
OR
between automatic and static variables in C language with suitable 061
Q.7(a) Distinguish
examples.
(b) Write a C function to test a given matrix is symmetric or not. 06
Q.8ta) Explain in detail array of structure and pointer to structure. 06
(b) Write a program to demonstrate the use of unions in structure. [06
OR
.9(a) Explain about the different ways of passing an entire structure as an argument to [06]
a function.

(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.Tech 1-Semester Supple Examinations, November -2020.

PROGRAMMING FOR PROBILEM SOLVINCG


(Common to EEE, FCE, CSE, IT&ETE)

Max. Marks: 70 Time: 02 Hours


Note: Answer any 5 full questions
*****

Q.1(a) Explain about Arithmetic and Bitwise operators. 08]


(b) Explain about Program Developnment steps. 06
Q.2(a) Draw and explain flowchart for finding greatest among three given numbers. 071

(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

Q.44a) Describe the various control structures available in 'C'. 071


(b) Write a C program for addition oftwo 'mx n' matrices. [071

Q.5ta) Explain dynamic memory allocation functions with example. [071


(b) Explain about different parameter passing mechanisms with examples. [07]
What is a storage class? Briefly explain about types of storage classes. [071
(b) Write a recursive function and iterative function to find the power of a number.
07]
Q.7(a) Define a structure and explain the passing of structure as arguments with suitable
C program. 081
(b) Write the difference between Structures and Unions in C
language. [06]
Q.8 a) What is the filc? Explain the file
handling functions with examples. 081
(b) Write a program that opens a filel and
copy the content to file2. 06|

END OF THE QUESTION PAPER


GNITS-R- 18-111AF

G. Narayanamma Institute of Technology & Science


(Autonomous) for Wonen)
Shaikpet, Hyderabad- 500 104

I-B.Tech 1-Semester Regular Examinations, January -2020.

PROGRAMMING FOR PROBLEM SOLVING


(Common to EEE, ECE, CSE, IT & ET:)
Max. Marks: 70 Time: 03 Hours
Note:
1. Question paper comprises of Part A and Part B.
2. Part A is compulsory which carries 10 marks. Answer all questions in Part A.
3. Part B (for 60 marks) consists of five questions with "either" or" pattern. Each question
carries 12 marks and may have a,b,c as sub questions. The student has to answer any one full
question.

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)

Q.8(a) Explain about Nested structures with example. 06 L2


(b) Explain about arrays ofstructures with an example. [061 L2

OR
Q.9(a) Explain about bit fields with an example. [061 L2

(b) Explain about Passing structures through pointers. [06 L2

You might also like