JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
R18 B.Tech I Year I Semester Examinations, December - 2018
COMPUTER PROGRAMMING IN C
(Common to EEE, ECE, CSE, EIE, IT, MCT, ETM, MMT, AE, MIE, PTM, CEE, MSNT)
--- Content provided by FirstRanker.com ---
Time: 3 hours Max. Marks: 75
Note: This question paper contains two parts A and B.
Part A is compulsory which carries 25 marks. Answer all questions in Part A.
Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks.
PART - A (25 Marks)
-
Answer all questions
--- Content provided by FirstRanker.com ---
- What is an algorithm? List the properties of an algorithm. [2M]
- Define keyword. List out any four keywords in C. [3M]
- Explain the difference between 'while' and 'do-while' loop. [2M]
- Write a C program to print the factorial of a given number using recursion. [3M]
- Define pointer. How can you declare a pointer? [2M]
- Differentiate between structure and union. [3M]
- What is preprocessor? List out any four preprocessor directives. [2M]
- How to open and close a file in C? Explain with example. [3M]
- What are command line arguments? [2M]
- What is meant by type conversion? How is it useful? [3M]
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
PART - B (50 Marks)
(Answer any one full question from each unit)
UNIT - I
-
a) Explain the different types of operators used in C language. [5M]
b) Draw a flowchart to find the largest of three numbers. [5M]
OR
--- Content provided by FirstRanker.com ---
-
a) Write an algorithm to find the roots of a quadratic equation. [5M]
b) Explain about the different data types available in C language. [5M]
UNIT - II
-
a) Explain the concept of nested if-else statement with example. [5M]
--- Content provided by FirstRanker.com ---
b) Write a C program to generate prime numbers between 1 and n. [5M]
OR
-
a) Explain the difference between 'break' and 'continue' statements with example. [5M]
b) Write a C program to check whether a given number is Armstrong number or not. [5M]
--- Content provided by FirstRanker.com ---
UNIT - III
-
a) Explain the concept of call by value and call by reference with example. [5M]
b) Write a C program to find the sum of diagonal elements of a matrix. [5M]
OR
-
a) Write a C program to sort an array of elements using bubble sort technique. [5M]
b) Explain the concept of multidimensional arrays with example. [5M]
--- Content provided by FirstRanker.com ---
UNIT - IV
-
a) Explain how to declare and initialize a structure with example. [5M]
b) Write a C program to store student information using structure. [5M]
--- Content provided by FirstRanker.com ---
OR
-
a) Explain the concept of pointers to structures with example. [5M]
b) Write a C program to demonstrate the use of unions. [5M]
--- Content provided by FirstRanker.com ---
UNIT - V
-
a) Explain the different file opening modes in C. [5M]
b) Write a C program to count the number of characters, words and lines in a file. [5M]
OR
-
a) Explain the concept of dynamic memory allocation with example. [5M]
--- Content provided by FirstRanker.com ---
b) Write a C program to copy the contents of one file to another. [5M]
---oo0oo---
--- Content provided by FirstRanker.com ---
This download link is referred from the post: AKTU B-Tech Last 10 Years 2010-2020 Previous Question Papers || Dr. A.P.J. Abdul Kalam Technical University