Exam Details
Subject | computer programming | |
Paper | ||
Exam / Course | b.tech | |
Department | ||
Organization | Vardhaman College Of Engineering | |
Position | ||
Exam Date | January, 2018 | |
City, State | telangana, hyderabad |
Question Paper
(AUTONOMOUS)
B. Tech I Semester Regular/Supplementary Examinations, January 2018
(Regulations: VCE-R15)
COMPUTER PROGRAMMING
(Common for All Branches)
Date: 03 January, 2018
Time: 3 hours
Max Marks: 75
Answer ONE question from each Unit
All Questions Carry Equal Marks
Unit I
1.
Why C language supports many data types? What is the effect of mixing types in Explain briefly the numeric types supported by C.
9M
Write a C Program to find largest of three integers using Conditional Operator.
Note: The program must find the largest of the three integers in a single C statement.
6M
2.
Write a C Program to find the roots of a quadratic equation.
7M
Consider the following code snippets:
i.
#include<stdio.h>
int main(void)
int x 19;
printf 1 x
printf 1 x
return
ii.
#include<stdio.h>
int main()
int
a
printf("%d",
return
iii.
#include <stdio.h>
int main()
int i
printf("%d",
return
iv.
#include <stdio.h>
int main(void)
int i
printf("%d",
return
Do the codes execute? If yes, write the output and one line explanation for that output. If no, identify and fix the bug.
8M
Unit II
3.
Differentiate while and do-while loop giving suitable examples.
5M
Upper triangular matrix can be extracted from a square matrix by extracting the elements of principle diagonal and the elements that lie above it. Write a C program to extract the upper triangular matrix from a square matrix.
10M
Cont…2
4.
Develop a C program that checks whether two matrices can be multiplied or not. If yes, multiply them and display the resultant matrix in the matrix format.
8M
Develop a C program to check whether the string given by the user is a palindrome or not without using string library functions.
7M
Unit III
5.
What is the relationship between array and pointers? Illustrate with suitable examples.
7M
Define recursion. Making use of recursion to:
i. Find the factorial of a given number
ii. Generate the Fibonacci numbers up to N
8M
6.
Why are pointers passed to functions as arguments? Like other variables, pointer variables can be used in expressions Comment.
7M
Write a C program to find the sum of the elements in one dimension array using pointers.
8M
Unit IV
7.
Discuss the uses of typedef and Enumerations with suitable example.
5M
Define a structure by name 'complex' consisting of real and imaginary parts of a complex number. Write a C program to add and multiply two such complex numbers.
10M
8.
Write a short note on the following:
i. Structure with in a structure
ii. Array of structures
iii. Self-referential structures
8M
Write a C program to demonstrate passing structures through pointers.
7M
Unit V
9.
What are the various file access modes? Demonstrate various file accessing modes.
7M
Develop a program that counts the number of characters present in a file.
8M
10.
Explain the general format of rewind() and fseek() functions.
5M
Write a program in C to append the contents of one file to the end of another file.
10M
B. Tech I Semester Regular/Supplementary Examinations, January 2018
(Regulations: VCE-R15)
COMPUTER PROGRAMMING
(Common for All Branches)
Date: 03 January, 2018
Time: 3 hours
Max Marks: 75
Answer ONE question from each Unit
All Questions Carry Equal Marks
Unit I
1.
Why C language supports many data types? What is the effect of mixing types in Explain briefly the numeric types supported by C.
9M
Write a C Program to find largest of three integers using Conditional Operator.
Note: The program must find the largest of the three integers in a single C statement.
6M
2.
Write a C Program to find the roots of a quadratic equation.
7M
Consider the following code snippets:
i.
#include<stdio.h>
int main(void)
int x 19;
printf 1 x
printf 1 x
return
ii.
#include<stdio.h>
int main()
int
a
printf("%d",
return
iii.
#include <stdio.h>
int main()
int i
printf("%d",
return
iv.
#include <stdio.h>
int main(void)
int i
printf("%d",
return
Do the codes execute? If yes, write the output and one line explanation for that output. If no, identify and fix the bug.
8M
Unit II
3.
Differentiate while and do-while loop giving suitable examples.
5M
Upper triangular matrix can be extracted from a square matrix by extracting the elements of principle diagonal and the elements that lie above it. Write a C program to extract the upper triangular matrix from a square matrix.
10M
Cont…2
4.
Develop a C program that checks whether two matrices can be multiplied or not. If yes, multiply them and display the resultant matrix in the matrix format.
8M
Develop a C program to check whether the string given by the user is a palindrome or not without using string library functions.
7M
Unit III
5.
What is the relationship between array and pointers? Illustrate with suitable examples.
7M
Define recursion. Making use of recursion to:
i. Find the factorial of a given number
ii. Generate the Fibonacci numbers up to N
8M
6.
Why are pointers passed to functions as arguments? Like other variables, pointer variables can be used in expressions Comment.
7M
Write a C program to find the sum of the elements in one dimension array using pointers.
8M
Unit IV
7.
Discuss the uses of typedef and Enumerations with suitable example.
5M
Define a structure by name 'complex' consisting of real and imaginary parts of a complex number. Write a C program to add and multiply two such complex numbers.
10M
8.
Write a short note on the following:
i. Structure with in a structure
ii. Array of structures
iii. Self-referential structures
8M
Write a C program to demonstrate passing structures through pointers.
7M
Unit V
9.
What are the various file access modes? Demonstrate various file accessing modes.
7M
Develop a program that counts the number of characters present in a file.
8M
10.
Explain the general format of rewind() and fseek() functions.
5M
Write a program in C to append the contents of one file to the end of another file.
10M
Other Question Papers
Subjects
- advanced computer networks
- advanced database management systems
- advanced digital signal processing
- advanced structural design
- air line management
- air pollution and control methodologies
- aircraft systems and instrumentation
- analog communications
- artificial intelligence
- automobile engineering
- basic electrical engineering
- basic mechanical engineering
- cad/cam
- cellular and mobile comunications
- cloud computing
- coding theory and techniques
- compiler design
- computational fluid dynamics
- computer architecture and parallel processing
- computer graphics
- computer graphics concepts
- computer networks
- computer organization and architecture
- computer programming
- computer vision and pattern recognition
- concrete technology
- control systems
- cyber security
- data mining and data warehousing
- database management systems
- design and drawing of hydraulic structures
- design for testability
- digital image processing
- distributed databases
- distributed operating systems
- electrical machines-ii
- electromagnetics and transmission lines
- electronic measurements and instrumentation
- embedded netwrok and protocols
- embedded software design
- embedded systems
- engineering drawing-i
- engineering mechanics-i
- engineering physics
- entrepreneurship
- environmental engineering-ii
- environmental science
- finite elements methods in civil engineering
- flexible ac transmission systems
- formal language and automata theory
- grid and cloud computing
- hardware software co-design
- heat transfer
- high voltage engineering
- hydraulic machines
- hydraulics and hydraulic machines
- image processing
- image processing and pattern recognition
- industrial management and psychology
- information retrieval systems
- instrumentation and control systems
- kinematics of machinery
- low power cmos vlsi design
- managerial economics and financial analysis
- microwave engineering
- mobile application development through j2me
- national service scheme
- network security and cryptography
- operating systems
- operations research
- pavement analysis and design
- planning and drawing
- power electronic control of ac drives
- power electronic converters-ii
- power semiconductor drives
- power system generation
- power system switchgear and protection
- principles of electrical engineering
- principles of programming languages
- probability theory and numerical methods
- production technology-i
- programmable logic controllers and applications
- project planning and management
- pulse and digital circuits
- reactive power compensation and management
- refrigeration and air conditioning
- rehabilitation and retrofitting structures
- reliability engineering
- renewable energy sources
- robotics and automation
- satellite and radar communications
- service oriented architecture
- signals and systems
- software architecture
- software engineering
- software project management
- software testing and quality assurance
- speech signal processing
- strength of materials-iibuilding
- structural analysis-i
- surveying-ii
- technical english
- thermal engineering-i
- utilization of electrical energy
- vlsi design
- web technologies
- wireless and mobile computing
- wireless communications and networks