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
Printed Pages: 4
802
ECS-101
--- Content provided by FirstRanker.com ---
(Following Paper ID and Roll No. to be filled in your Answer Book)
Paper ID: 110111
Roll No.
B.Tech.
(SEM. I) THEORY EXAMINATION, 2015-16
--- Content provided by FirstRanker.com ---
COMPUTER CONCEPTS & PROGRAMMING INC
[Time:3 hours]
[Total Marks:100]
Section-A
1. Attempt All parts of this section. Answer in brief. (10×2=20)
--- Content provided by FirstRanker.com ---
- What is the need of function?
- Why operating system is required?
- What is the role of dynamic memory allocation?
- What do curly braces denote in C?
- Differentiate between do-while and while loop.
- Explain the role of the C pre-processor.
- What is a string?
- What do you mean by an algorithm?
- Explain in brief the purpose of the 'strcmp' function.
- What is the meaning of prototype of a function?
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
Section-B
Attempt any five questions from this section. (10×5=50)
2. Convert the following:
- (FA1.2C)16 = (?)10
- (756)10 = (?)4
- (11011.011)2 = (?)16
- (574.32)8 = (?)10
--- Content provided by FirstRanker.com ---
3. A program in 'C' language contains the following declaration: static int x[8]={1,2,3,4,5,6,7,8}:
- What is the meaning of x?
- What is the meaning of (x+2)?
- What is the meaning of *x?
- What is the meaning of (*x+2)?
- What is the meaning of *(x+2)?
--- Content provided by FirstRanker.com ---
4. Describe structure. Differentiate between structure and array. Define a structure data type called time_structure containing three member's integer hour, integer minute and integer second. Write a program in 'C' that would assign values to the individual members and display the time in the following form: 16:40:52
5. Define the following terms and give at least one example of each:
--- Content provided by FirstRanker.com ---
- Interpreter
- Linker
- Editor
- Procedural Programming
6. Simulate calculator using switch statement.
--- Content provided by FirstRanker.com ---
7. (a) Differentiate between iteration and recursion.
(b) Write a function in C language to find the reverse of a given integer number.
8. A number is said to be an Armstrong number if the sum of the cube of its digit is equal to the number itself. For example, 153 is an Armstrong number as 153 = 13+53+33. Write a C program to check whether a given number is Armstrong or not.
9. Write the various input functions used in file handling in C. A file name DATA contains a series of integer numbers, write a program to read these numbers and then write all 'odd' numbers to a file to be called ODD and all even numbers to a file to be called EVEN.
Section-C
--- Content provided by FirstRanker.com ---
Answer any two questions from this section: (2×15=30)
10. Discuss the following:
- Scope of variables.
- Five mathematical library functions in C.
- Mixed operands and type conversion.
--- Content provided by FirstRanker.com ---
11. A program has been compiled and linked successfully. When you run this program you face one or more of the following situations :
- Program executed, but no output.
- It produces incorrect answers.
- It does not stop running.
Explain all above condition in detail.
--- Content provided by FirstRanker.com ---
12. What is dynamic memory allocations? How does it help in building complex programs? What is the task of following memory allocation functions?
- malloc
- calloc
Visit FirstRanker.com for more information.
--- 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