FirstRanker Logo

FirstRanker.com - FirstRanker's Choice is a hub of Question Papers & Study Materials for B-Tech, B.E, M-Tech, MCA, M.Sc, MBBS, BDS, MBA, B.Sc, Degree, B.Sc Nursing, B-Pharmacy, D-Pharmacy, MD, Medical, Dental, Engineering students. All services of FirstRanker.com are FREE

📱

Get the MBBS Question Bank Android App

Access previous years' papers, solved question papers, notes, and more on the go!

Install From Play Store

Download AKTU B-Tech 1st Sem 2015-2016 ECS 101 Computer Concepts Programming In C Question Paper

Download AKTU (Dr. A.P.J. Abdul Kalam Technical University (AKTU), formerly Uttar Pradesh Technical University (UPTU)) B-Tech 1st Semester (First Semester) 2015-2016 ECS 101 Computer Concepts Programming In C Question Paper

This post was last modified on 29 January 2020

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

  1. What is the need of function?
  2. Why operating system is required?
  3. What is the role of dynamic memory allocation?
  4. What do curly braces denote in C?
  5. Differentiate between do-while and while loop.
  6. --- Content provided by FirstRanker.com ---

  7. Explain the role of the C pre-processor.
  8. What is a string?
  9. What do you mean by an algorithm?
  10. Explain in brief the purpose of the 'strcmp' function.
  11. What is the meaning of prototype of a function?
  12. --- Content provided by FirstRanker.com ---


Section-B

Attempt any five questions from this section. (10×5=50)

2. Convert the following:

  1. (FA1.2C)16 = (?)10
  2. (756)10 = (?)4
  3. --- Content provided by FirstRanker.com ---

  4. (11011.011)2 = (?)16
  5. (574.32)8 = (?)10

3. A program in 'C' language contains the following declaration: static int x[8]={1,2,3,4,5,6,7,8}:

  1. What is the meaning of x?
  2. What is the meaning of (x+2)?
  3. --- Content provided by FirstRanker.com ---

  4. What is the meaning of *x?
  5. What is the meaning of (*x+2)?
  6. What is the meaning of *(x+2)?

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

  1. Interpreter
  2. Linker
  3. Editor
  4. 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:

  1. Scope of variables.
  2. Five mathematical library functions in C.
  3. Mixed operands and type conversion.
  4. --- 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 :

  1. Program executed, but no output.
  2. It produces incorrect answers.
  3. 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?

  1. malloc
  2. 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