0% found this document useful (0 votes)
2 views4 pages

Iare Cp Model Question Paper

This document is a model question paper for the B.Tech I Semester End Examinations in Computer Programming at the Institute of Aeronautical Engineering. It includes various questions from different units covering topics such as computer system components, algorithms, control statements, pointers, structures, and file handling in C language. Additionally, it outlines course objectives and learning outcomes aligned with Bloom's Taxonomy.

Uploaded by

Gopi Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

Iare Cp Model Question Paper

This document is a model question paper for the B.Tech I Semester End Examinations in Computer Programming at the Institute of Aeronautical Engineering. It includes various questions from different units covering topics such as computer system components, algorithms, control statements, pointers, structures, and file handling in C language. Additionally, it outlines course objectives and learning outcomes aligned with Bloom's Taxonomy.

Uploaded by

Gopi Krishna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Hall Ticket No Question Paper Code: ACS001

INSTITUTE OF AERONAUTICAL ENGINEERING


(Autonomous)
Dundigal, Hyderabad - 500 043

MODEL QUESTION PAPER

Four Year B.Tech I Semester End Examinations, December-2017


Regulations: IARE - R16
COMPUTER PROGRAMMING
(Common to CSE / IT / ECE / EEE)
Time: 3 hours Max. Marks: 70

Answer ONE Question from each Unit


All Questions Carry Equal Marks
All parts of the question must be answered in one place only

UNIT – I

1. a) Explain in detail with neat diagram about the computer system components. [7M]
b) Write an algorithm that calculates the sum of the digits of an integer. For example, the [7M]
sum of the digits of the number 2155 is 13 (i.e. 2+1+5+5).

2. a) What is an operator? Explain different types of operators in C language. [7M]

b) Write a program that estimates the temperature in a freezer (in °C) given the elapsed [7M]
time (hours) since a power failure. Assume this temperature ( T ) is given by
4𝑡 2
𝑇= − 20
𝑡+2
Where t is the time since the power failure. Your program should prompt the user to
enter how long it has been since the start of the power failure in whole hours and
minutes. Note that you will need to convert the elapsed time into hours. For example, if
the user entered 2 30 (2 hours 30 minutes), you would need to convert this to 2.5 hours.

UNIT – II

3. a) Explain loop control statements in C language. [7M]

b) Write a C program to arrange the numbers stored in the array in such a way that the [7M]
array will have the odd numbers followed by the even numbers. For example Input
array is IN[]={1,23,4,12,5,6}, output array is OUT[]={1,23,5,4,12,6}.

4. a) What is an array? What type and range must an array subscript have? Demonstrate the [7M]
storage of two-dimensional arrays in memory with the help of a diagram.

b) Given a string, find the longest substring which is palindrome. For example, if the [7M]
given string is “abaccddccefe”, the output should be “ccddcc”.
UNIT – III

5. a) What is a pointer? Why are they important? Why pointers should have data types when [7M]
their size is always 4 bytes (in a 32-bit machine), irrespective of the variable they are
pointing to?
b) A year is called leap year if it is divisible by 400. If it is not divisible by 400 as well as [7M]
100 but it is divisible by 4 then that year is also leap year. Example 1600, 2000 etc leap
year while 1500, 1700 is not leap year. Write a function definition to check whether a
given year is a leap year or not.

6. a) How is a multidimensional array defined in terms of an array of pointers? What does [7M]
each pointer represent? How does this definition differ from a pointer to a collection of
contiguous array of lower dimensionality?

b) Using pointers, write a function that receives a character string and a character as [7M]
argument and deletes all occurrences of this character in the string. The function
should return corrected string with no holes. For example input string is “hello world”,
character to be deleted is „l‟, output string is “heo word”

UNIT – IV

7. a) Define Structure and write the general format for declaring and accessing structure [7M]
members. Why can‟t structures be compared?

b) Write a C program to maintain a book structure containing name, author and pages as [7M]
structure members. Pass the address of structure variable to a user defined function and
display the contents.

8. a) How Structure and unions are assigned in memory? Explain with diagram. [7M]

b) Define a structure called Cricket that will have player name, team name, and batting [7M]
average of the player. Using Cricket, declare an array player with 10 elements. Write a
program to read the information about all the 10 players and print a team wise list
containing names of players with their batting average.

UNIT – V

9. a) What is the purpose of fopen() function? Describe the different file opening used with [7M]
the fopen() function.

b) Write a program that opens an existing text file and copies it to a new text file with all [7M]
lowercase letters changed to capital letters and all other characters unchanged.

10 a) Is it possible to pass arguments to C programs when they are being executed? Justify. [7M]
.
b) Write a C program to write employee name, department and salary of seven employess [7M]
using an array of structures to a file via fwrite(). Further, the program must read the
array from the file and display the details of employees on the screen.
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)

COURSE OBJECTIVES
The course should enable the students to:

S .No Description
I Learn adequate knowledge by problem solving techniques.
II Understand programming skills using the fundamentals and basics of C Language.
III Improve problem solving skills using arrays, strings, and functions.
IV Understand the dynamics of memory by pointers.
V Study files creation process with access permissions.

COURSE LEARNING OUTCOMES


Students, who complete the course, will have demonstrated the ability to do the following:

S. No Description Blooms
Taxonomy
Level
ACS001.01 Identify and understand the working of key components of a computer Understand
system.
ACS001.02 Analyze a given problem and develop an algorithm to solve the problem Understand
ACS001.03 Describe the fundamental programming constructs and articulate how they Remember
are used to develop a program with a desired runtime execution flow.
ACS001.04 Gain knowledge to identify appropriate C language constructs to solve Remember
problems.
ACS001.05 Identify the right data representation formats based on the requirements of Understand
the problem.
ACS001.06 Describe the operators, their precedence and associativity while evaluating Understand
expressions in program statements.
ACS001.07 Understand branching statements, loop statements and use them in Understand
problem solving.
ACS001.08 Learn homogenous derived data types and use them to solve statistical Analyze
problems.
ACS001.09 Understand procedural oriented programming using functions. Analyze
ACS001.10 Understand how recursion works and write programs using recursion to Understand
solve problems.
ACS001.11 Differentiate call by value and call by reference parameter passing Understand
mechanisms.
ACS001.12 Understand pointers conceptually and apply them in C programs. Understand
ACS001.13 Distinguish homogenous and heterogeneous data types and apply them in Understand
solving data processing applications.
ACS001.14 Explain the concept of file system for handling data storage and apply it Remember
for solving problems.
ACS001.15 Differentiate text files and binary files and write the simple C programs Analyze
using file handling functions.
ACS001.16 Apply the concepts to solve real-time applications using the features of C Apply
language.
ACS001.17 Possess the knowledge and skills for employability and to succeed in national and Remember
international level competitive examinations.
MAPPING OF SEMESTER END EXAM TO COURSE LEARNINIG OUTCOMES
SEE Blooms
Question Course Learning Outcomes Taxonomy
No. Level
a ACS001.01 Identify and understand the working of key components of Understand
1 a computer system.
b ACS001.02 Analyze a given problem and develop an algorithm to solve Understand
the problem.
a ACS001.06 Describe the operators, their precedence and associativity Understand
2 while evaluating expressions in program statements.
b ACS001.05 Identify the right data representation formats based on the Understand
requirements of the problem.
a ACS001.07 Understand branching statements, loop statements and use Understand
them in problem solving.
3
b ACS001.04 Gain knowledge to identify appropriate C language Apply
constructs to solve problems.
a ACS001.08 Learn homogenous derived data types and use them to Understand
solve statistical problems.
4
b ACS001.08 Learn homogenous derived data types and use them to Understand
solve statistical problems.
a ACS001.12 Understand pointers conceptually and apply them in C Understand
programs.
5
b ACS001.09 Understand procedural oriented programming using Analyze
functions.
a ACS001.12 Understand pointers conceptually and apply them in C Understand
programs.
6
b ACS001.11 Differentiate call by value and call by reference parameter Understand
passing mechanisms.
a ACS001.13 Distinguish homogenous and heterogeneous data types and Understand
7 apply them in solving data processing applications.
b ACS001.13 Distinguish homogenous and heterogeneous data types and Analyze
apply them in solving data processing applications.
a ACS001.13 Distinguish homogenous and heterogeneous data types and Understand
apply them in solving data processing applications.
8
Distinguish homogenous and heterogeneous data types and Understand
b ACS001.13
apply them in solving data processing applications.
a ACS001.14 Explain the concept of file system for handling data storage Remember
9 and apply it for solving problems.
b ACS001.14 Explain the concept of file system for handling data storage Remember
and apply it for solving problems
a ACS001.09 Differentiate call by value and call by reference parameter Analyze
10 passing mechanisms.
b ACS001.16 Apply the concepts to solve real-time applications using the Analyze
features of C language.

Signature of Course Coordinator HOD

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy